-
Notifications
You must be signed in to change notification settings - Fork 29
/
deployment.yml
94 lines (94 loc) · 2.45 KB
/
deployment.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jupyter
annotations:
description: Jupyter - Web Application for IPython Notebooks Data Science and Analysis
runtime: python3
labels:
app: jupyter
purpose: analysis
layer: web
users: data-scientists
auth: basic
messaging: redis
cache: redis
pubsub: publisher
spec:
replicas: 1
selector:
matchLabels:
app: jupyter
datascience: enabled
template:
metadata:
labels:
app: jupyter
purpose: analysis
layer: web
users: data-scientists
auth: basic
messaging: redis
cache: redis
pubsub: publisher
datascience: enabled
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: datascience
operator: In
values:
- enabled
hostname: jupyter
restartPolicy: Always
containers:
- image: jayjohnson/antinex-jupyter:latest
name: jupyter
ports:
- containerPort: 8888
- containerPort: 8889
- containerPort: 8890
- containerPort: 6006
resources: {}
command:
- /bin/bash
- -c
- cd /opt/antinex/core/docker/jupyter &&
export HOME=/opt/antinex/core/docker/jupyter &&
. /opt/venv/bin/activate &&
source /opt/antinex/api/envs/k8.env &&
/opt/antinex/core/docker/jupyter/start-container.sh &&
tail -f /var/log/antinex/jupyter/jupyter.log
env:
- name: ANTINEX_USER
valueFrom:
secretKeyRef:
name: jupyter.api.user
key: username
- name: ANTINEX_PASSWORD
valueFrom:
secretKeyRef:
name: jupyter.api.user
key: password
- name: JUPYTER_PASS
valueFrom:
secretKeyRef:
name: jupyter.user
key: password
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: minio-s3-access
key: access_key
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
name: minio-s3-access
key: secret_key
- name: S3_ADDRESS
value: minio-service:9000
- name: S3_REGION_NAME
value: us-east-1