aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/sir-lancebot/deployment.yaml
blob: 826af5b5bde2b85147513b46fb983e2b1f97729a (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sir-lancebot
spec:
  replicas: 1
  selector:
    matchLabels:
      app: sir-lancebot
  template:
    metadata:
      labels:
        app: sir-lancebot
    spec:
      containers:
      - name: sir-lancebot
        image: ghcr.io/python-discord/sir-lancebot:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 400m
            memory: 100Mi
          limits:
            cpu: 500m
            memory: 200Mi
        envFrom:
        - secretRef:
            name: sir-lancebot-env
        - secretRef:
            name: redis-credentials
        securityContext:
          readOnlyRootFilesystem: true
        volumeMounts:
            - name: lancebot-data-vol
              mountPath: /bot/bot/exts/fun/_latex_cache
            - name: lancebot-logs-vol
              mountPath: /bot/bot/log
            - name: lancebot-tmp-vol
              mountPath: /tmp
      volumes:
      - name: lancebot-data-vol
        emptyDir: {}
      - name: lancebot-logs-vol
        emptyDir: {}
      - name: lancebot-tmp-vol
        emptyDir:
          medium: Memory
      securityContext:
        fsGroup: 1000
        runAsUser: 1000
        runAsNonRoot: true