aboutsummaryrefslogtreecommitdiff
path: root/manifest/patreon-saasproxy/deployment.yaml
blob: 4f065216fe16a43b68b56f899e5d381a1dd680a3 (plain)
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
42
43
44
45
apiVersion: apps/v1
kind: Deployment
metadata:
  name: patreon-saasproxy
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: patreon-saasproxy
  template:
    metadata:
      labels:
        app.kubernetes.io/name: patreon-saasproxy
    spec:
      serviceAccountName: xesite-patreon-saasproxy
      containers:
      - name: web
        image: ghcr.io/xe/site/patreon:latest
        imagePullPolicy: Always
        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"
        env:
        - name: "BIND"
          value: ":8080"
        - name: "KUBERNETES_NAMESPACE"
          valueFrom:
            fieldRef:
              fieldPath: "metadata.namespace"
        - name: KUBERNETES_SECRET_NAME
          value: "xesite-patreon-saasproxy-state"
        envFrom:
        - secretRef:
            name: xesite-patreon-saasproxy-creds
        ports:
        - containerPort: 8080
        livenessProbe:
          httpGet:
            path: /healthz
            port: 8080
            httpHeaders:
            - name: X-Kubernetes
              value: "Is alright, I guess"
          initialDelaySeconds: 3
          periodSeconds: 3