aboutsummaryrefslogtreecommitdiffstats
path: root/deployment.yaml
blob: b0856f3f2a2cfa519f53674d38a2ec0f9c81e478 (plain) (blame)
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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: snekbox
spec:
  replicas: 1
  selector:
    matchLabels:
      app: snekbox
  template:
    metadata:
      labels:
        app: snekbox
    spec:
      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
          lifecycle:
            postStart:
              exec:
                command:
                  - "/bin/sh"
                  - "-c"
                  - >-
                    PYTHONUSERBASE=/snekbox/user_base
                    pip install --user --upgrade
                    anyio[trio]~=3.6
                    arrow~=1.2
                    attrs~=22.2
                    beautifulsoup4~=4.11
                    einspect~=0.5
                    fishhook~=0.2
                    forbiddenfruit~=0.1
                    fuzzywuzzy~=0.18
                    lark~=1.1
                    matplotlib~=3.6
                    more-itertools~=9.0
                    networkx~=3.0
                    numpy~=1.24
                    pandas~=1.5
                    pendulum~=2.1
                    python-dateutil~=2.8
                    pyyaml~=6.0
                    scipy~=1.10
                    sympy~=1.11
                    toml~=0.10
                    typing-extensions~=4.4
                    tzdata~=2022.7
                    yarl~=1.8
      volumes:
        - name: snekbox-user-base-volume
          hostPath:
            path: /snekbox_dep_cache
            type: DirectoryOrCreate