aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/bots/king-arthur/deployment.yaml
blob: 16f3a2c682be4a93a8b6d723e9ffe6d6cb564235 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: king-arthur
  namespace: bots
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: king-arthur
  template:
    metadata:
      labels:
        app: king-arthur
    spec:
      serviceAccountName: king-arthur
      containers:
      - name: king-arthur
        image: ghcr.io/python-discord/king-arthur:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 600m
            memory: 500Mi
          limits:
            cpu: 800m
            memory: 800Mi
        envFrom:
        - secretRef:
            name: king-arthur-env
        securityContext:
          readOnlyRootFilesystem: true
        volumeMounts:
          - name: tmpfs
            mountPath: /tmp
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
      volumes:
        - name: tmpfs
          emptyDir:
            medium: Memory