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