aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/pixels/pixels-modsite/deployment.yaml
blob: cba13816bba322aaac806cc4a1037c8c275bf9e6 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pixels-modsite
  namespace: pixels
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pixels-modsite
  template:
    metadata:
      labels:
        app: pixels-modsite
    spec:
      containers:
        - name: pixels-modsite
          image: ghcr.io/python-discord/pixels-modsite:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 3000
          envFrom:
            - secretRef:
                name: pixels-modsite-env
          securityContext:
            readOnlyRootFilesystem: true
      imagePullSecrets:
        - name: ghcr-pull-secret
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true