aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/sir-robin/deployment.yaml
blob: dc2a8396cbd707d518d82e199b78bd253579a150 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sir-robin
spec:
  replicas: 1
  selector:
    matchLabels:
      app: sir-robin
  template:
    metadata:
      labels:
        app: sir-robin
    spec:
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
      containers:
      - name: sir-robin
        image: ghcr.io/python-discord/sir-robin:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 500m
            memory: 300Mi
          limits:
            cpu: 750m
            memory: 500Mi
        envFrom:
        - secretRef:
            name: sir-robin-env
        - secretRef:
            name: redis-credentials
        securityContext:
          readOnlyRootFilesystem: true