-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnew_yaml.yml
76 lines (76 loc) · 2.41 KB
/
new_yaml.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: kubeflow.org/v1
kind: Notebook
metadata:
name: openad-notebook
annotations:
notebooks.opendatahub.io/inject-oauth: "true"
spec:
template:
spec:
containers:
- name: openad-notebook
image: docker.io/phildowney/openshift_ai:latest
imagePullPolicy: Always
workingDir: /opt/app-root/src
env:
- name: NOTEBOOK_ARGS
value: |
--ServerApp.port=8888
--ServerApp.token=''
--ServerApp.password=''
--ServerApp.base_url=/notebook/openad/phil
- name: JUPYTER_IMAGE
value: >-
docker.io/phildowney/openshift_ai:latest
- name: PIP_CERT
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: REQUESTS_CA_BUNDLE
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: SSL_CERT_FILE
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: PIPELINES_SSL_SA_CERTS
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: GIT_SSL_CAINFO
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: NB_PREFIX
value: /notebook/openad/phil
securityContext:
capabilities:
drop:
- ALL
runAsUser: 1001090000
runAsNonRoot: true
allowPrivilegeEscalation: false
ports:
- name: notebook-port
containerPort: 8888
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: phil-notebook-storage
mountPath: /opt/app-root/src
- name: shm
mountPath: /dev/shm
- name: trusted-ca
readOnly: true
mountPath: /etc/pki/tls/custom-certs/ca-bundle.crt
subPath: ca-bundle.crt
terminationMessagePolicy: File
resources:
requests:
cpu: "2"
memory: 8Gi
limits:
cpu: "2"
memory: 8Gi
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
httpGet:
scheme: HTTP
path: /notebook/openad/phil/api
port: notebook-port
EOF