aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/codejam-winners/monsteras/deployment.yaml
blob: 30277cdfb4805ed50ac57f874f2b41da59566ff7 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: monsteras
  namespace: codejam-winners
spec:
  replicas: 1
  selector:
    matchLabels:
      app: monsteras
  template:
    metadata:
      labels:
        app: monsteras
    spec:
      containers:
        - name: monsteras
          image: ghcr.io/python-discord/cj-monsteras
          imagePullPolicy: Always
          ports:
            - containerPort: 80
              name: http
          securityContext:
            readOnlyRootFilesystem: true
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true