aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/tooling/ff-bot/deployment.yml
blob: fcc21d2b3921f6b1b1cc10c8a5fcdf4d19fde2c4 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ff-bot
  namespace: tooling
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ff-bot
  template:
    metadata:
      labels:
        app: ff-bot
    spec:
      containers:
        - name: ff-bot
          image: ghcr.io/jb3/ff_bot:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 4000
          envFrom:
            - secretRef:
                name: ff-bot-env
          securityContext:
            readOnlyRootFilesystem: true
          volumeMounts:
            - name: tmpfs
              mountPath: /tmp
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
      volumes:
        - name: tmpfs
          emptyDir:
            medium: Memory
            sizeLimit: 500Mi