-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwes-dev-notebook.yaml
More file actions
99 lines (99 loc) · 2.61 KB
/
wes-dev-notebook.yaml
File metadata and controls
99 lines (99 loc) · 2.61 KB
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
95
96
97
98
99
apiVersion: v1
kind: Service
metadata:
name: wes-dev-notebook
spec:
selector:
app: wes-dev-notebook
ports:
- name: http
protocol: TCP
port: 8888
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wes-dev-notebook
spec:
selector:
matchLabels:
app: wes-dev-notebook
template:
metadata:
labels:
app: wes-dev-notebook
role: plugin
sagecontinuum.org/plugin-job: sage
sagecontinuum.org/plugin-task: wes-dev-notebook
sagecontinuum.org/role: plugin
spec:
containers:
- name: wes-dev-notebook
image: docker.io/waggle/plugin-base:1.1.1-ml
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8888
command:
- "jupyter"
- "lab"
- "--LabApp.token=waggle"
- "--LabApp.ip=0.0.0.0"
- "--LabApp.allow_root=True"
env:
- name: PULSE_SERVER
value: tcp:wes-audio-server:4713
- name: WAGGLE_PLUGIN_HOST
value: wes-rabbitmq
- name: WAGGLE_PLUGIN_PORT
value: "5672"
- name: WAGGLE_PLUGIN_USERNAME
value: plugin
- name: WAGGLE_PLUGIN_PASSWORD
value: plugin
- name: WAGGLE_APP_ID
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.uid
resources: {}
# securityContext:
# privileged: true
volumeMounts:
- mountPath: /run/waggle/uploads
name: uploads
- mountPath: /run/waggle/data-config.json
name: waggle-data-config
subPath: data-config.json
- mountPath: /etc/asound.conf
name: wes-audio-server-plugin-conf
subPath: asound.conf
nodeSelector:
node-role.kubernetes.io/master: "true"
restartPolicy: Always
securityContext: {}
volumes:
- hostPath:
path: /media/plugin-data/uploads/wes-dev-notebook/0.0.0
type: DirectoryOrCreate
name: uploads
- configMap:
defaultMode: 420
name: waggle-data-config
name: waggle-data-config
- configMap:
defaultMode: 420
name: wes-audio-server-plugin-conf
name: wes-audio-server-plugin-conf
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: wes-plugin-network-policy-dev-notebook
spec:
podSelector:
matchLabels:
app: wes-dev-notebook
egress:
- {}
policyTypes:
- Egress