aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/bots/sir-lancebot/deployment.yaml
blob: 981107c37f755fff9787b913353029970a90d430 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sir-lancebot
  namespace: bots
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: 200Mi
          limits:
            cpu: 500m
            memory: 400Mi
        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
      volumes:
      - name: lancebot-data-vol
        emptyDir: {}
      - name: lancebot-logs-vol
        emptyDir: {}
      securityContext:
        fsGroup: 1000
        runAsUser: 1000
        runAsNonRoot: true