aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/bots/bot/deployment.yaml
blob: d61d3ad242c0c1d70f380325891b30ccb32fcaf0 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bot
  namespace: bots
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bot
  template:
    metadata:
      labels:
        app: bot
    spec:
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
      containers:
      - name: bot
        image: ghcr.io/python-discord/bot:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 750m
            memory: 800Mi
          limits:
            cpu: 1000m
            memory: 1400Mi
        envFrom:
        - secretRef:
            name: bot-env
        - secretRef:
            name: redis-credentials
        - configMapRef:
            name: bot-config-env
        volumeMounts:
        - mountPath: /bot/logs
          name: logs-vol
        - mountPath: /.cache/python-tldextract
          name: tldextract-cache
        securityContext:
          readOnlyRootFilesystem: true
      volumes:
      - name: logs-vol
        emptyDir: {}
      - name: tldextract-cache
        emptyDir: {}