aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/apis/patsy/deployment.yaml
blob: bb6f9a032cd9d55151dfe1298c4c09de64e2f38f (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
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
  name: patsy
  namespace: apis
spec:
  replicas: 0
  selector:
    matchLabels:
      app: patsy
  template:
    metadata:
      labels:
        app: patsy
    spec:
      containers:
        - name: patsy
          image: ghcr.io/python-discord/patsy:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 80
              name: http
          envFrom:
            - secretRef:
                name: patsy-env
          startupProbe:
            httpGet:
              path: /ping
              port: http
              httpHeaders:
                - name: Host
                  value: patsy.pythondiscord.com
            failureThreshold: 3
            periodSeconds: 1
            initialDelaySeconds: 10
          securityContext:
            readOnlyRootFilesystem: true
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true