aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/modmail/bot/deployment.yaml
blob: ae135e2dafb39478fd74cd8fcc5536c541de8548 (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: modmail-bot
  namespace: modmail
spec:
  replicas: 1
  selector:
    matchLabels:
      app: modmail-bot
  template:
    metadata:
      labels:
        app: modmail-bot
    spec:
      containers:
        - name: modmail-bot
          image: ghcr.io/python-discord/modmail:latest
          resources:
            requests:
              cpu: 75m
              memory: 600Mi
            limits:
              cpu: 125m
              memory: 1000Mi
          imagePullPolicy: "Always"
          volumeMounts:
          - mountPath: /modmailbot/plugins
            name: plugins-vol
          - mountPath: /modmailbot/temp
            name: temp-vol
          env:
          - name: TMPDIR
            value: /modmailbot/temp
          envFrom:
            - secretRef:
                name: modmail
            - configMapRef:
                name: modmail-config-env
          securityContext:
            readOnlyRootFilesystem: true
      volumes:
      - name: plugins-vol
        emptyDir: {}
      - name: temp-vol
        emptyDir:
          medium: Memory
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true