Skip to content

Commit

Permalink
update: standalone notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 12, 2023
1 parent b7f82f6 commit 4f9ef58
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ spec:
# - /bin/bash
# - -c
image: quay.io/opendatahub-contrib/workbench-images:rstudio-c9s-py39_2023b_latest
envFrom:
- secretRef:
name: jupyter-login
ports:
- containerPort: 8787
protocol: TCP
name: api
name: notebook
- containerPort: 8000
protocol: TCP
name: console
name: demo
resources:
requests:
cpu: 200m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ resources:
- deployment.yaml
- pvc.yaml
- route.yaml
- secret.yaml
- service.yaml
- template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: jupyter-console
name: jupyter
labels:
app: jupyter
annotations:
Expand Down
8 changes: 0 additions & 8 deletions components/configs/kustomized/standalone-notebook/secret.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions components/configs/kustomized/standalone-notebook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
apiVersion: v1
kind: Service
metadata:
name: jupyter
labels:
app: jupyter
annotations:
argocd.argoproj.io/sync-wave: "1"
service.alpha.openshift.io/serving-cert-secret-name: jupyter
labels:
app: jupyter
name: jupyter
spec:
ports:
- name: demo
port: 8000
targetPort: 8000
- name: console
- name: notebook
port: 8787
targetPort: 8787
- name: oauth-proxy
port: 8080
targetPort: 8080
selector:
app: jupyter
sessionAffinity: None
Expand Down

0 comments on commit 4f9ef58

Please sign in to comment.