-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
deployment.yaml
41 lines (41 loc) · 1.04 KB
/
deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: snekbox
namespace: snekbox
spec:
replicas: 1
selector:
matchLabels:
app: snekbox
template:
metadata:
labels:
app: snekbox
spec:
initContainers:
- name: deps-install
image: ghcr.io/python-discord/snekbox:latest
imagePullPolicy: Always
volumeMounts:
- name: snekbox-user-base-volume
mountPath: /snekbox/user_base
command:
- /bin/bash
- scripts/install_eval_deps.sh
containers:
- name: snekbox
image: ghcr.io/python-discord/snekbox:latest
imagePullPolicy: Always
ports:
- containerPort: 8060
securityContext:
privileged: true
volumeMounts:
- name: snekbox-user-base-volume
mountPath: /snekbox/user_base
volumes:
- name: snekbox-user-base-volume
hostPath:
path: /snekbox_dep_cache
type: DirectoryOrCreate