annotate 20-kube/20-pom-deploy.yaml @ 22:c2e12ba4d0b2

update past CVE-2023-33189
author drewp@bigasterisk.com
date Tue, 06 Jun 2023 10:52:50 -0700
parents 021ddfa73806
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
drewp@bigasterisk.com
parents:
diff changeset
1 apiVersion: apps/v1
drewp@bigasterisk.com
parents:
diff changeset
2 kind: Deployment
drewp@bigasterisk.com
parents:
diff changeset
3 metadata:
drewp@bigasterisk.com
parents:
diff changeset
4 labels: { app.kubernetes.io/name: pomerium }
drewp@bigasterisk.com
parents:
diff changeset
5 name: pomerium
drewp@bigasterisk.com
parents:
diff changeset
6 namespace: pomerium
drewp@bigasterisk.com
parents:
diff changeset
7 spec:
20
021ddfa73806 try things to get sessions that don't quickly expire (fetch requests have CORS errors). these may not be working
drewp@bigasterisk.com
parents: 19
diff changeset
8 replicas: 1
19
76e097b3e248 reformat
drewp@bigasterisk.com
parents: 18
diff changeset
9 strategy: { type: RollingUpdate }
0
drewp@bigasterisk.com
parents:
diff changeset
10 selector:
drewp@bigasterisk.com
parents:
diff changeset
11 matchLabels: { app.kubernetes.io/name: pomerium }
drewp@bigasterisk.com
parents:
diff changeset
12 template:
drewp@bigasterisk.com
parents:
diff changeset
13 metadata:
drewp@bigasterisk.com
parents:
diff changeset
14 labels: { app.kubernetes.io/name: pomerium }
drewp@bigasterisk.com
parents:
diff changeset
15 spec:
drewp@bigasterisk.com
parents:
diff changeset
16 containers:
drewp@bigasterisk.com
parents:
diff changeset
17 - args:
drewp@bigasterisk.com
parents:
diff changeset
18 - all-in-one
drewp@bigasterisk.com
parents:
diff changeset
19 - --pomerium-config=global
drewp@bigasterisk.com
parents:
diff changeset
20 - --update-status-from-service=$(POMERIUM_NAMESPACE)/pomerium-proxy
drewp@bigasterisk.com
parents:
diff changeset
21 - --metrics-bind-address=$(POD_IP):9090
drewp@bigasterisk.com
parents:
diff changeset
22 env:
drewp@bigasterisk.com
parents:
diff changeset
23 - { name: TMPDIR, value: /tmp }
drewp@bigasterisk.com
parents:
diff changeset
24 - { name: XDG_CACHE_HOME, value: /tmp }
drewp@bigasterisk.com
parents:
diff changeset
25 - name: POMERIUM_NAMESPACE
drewp@bigasterisk.com
parents:
diff changeset
26 valueFrom:
drewp@bigasterisk.com
parents:
diff changeset
27 fieldRef:
drewp@bigasterisk.com
parents:
diff changeset
28 apiVersion: v1
drewp@bigasterisk.com
parents:
diff changeset
29 fieldPath: metadata.namespace
drewp@bigasterisk.com
parents:
diff changeset
30 - name: POD_IP
drewp@bigasterisk.com
parents:
diff changeset
31 valueFrom:
drewp@bigasterisk.com
parents:
diff changeset
32 fieldRef:
drewp@bigasterisk.com
parents:
diff changeset
33 fieldPath: status.podIP
19
76e097b3e248 reformat
drewp@bigasterisk.com
parents: 18
diff changeset
34 # see https://hub.docker.com/r/pomerium/ingress-controller/tags but idk how to get the version number!
16
d8b3c6fa64a3 upstream pom image upgrade
drewp@bigasterisk.com
parents: 14
diff changeset
35 # It's not even in the startup logs, just this: "pomerium_version":""
22
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
36 #
16
d8b3c6fa64a3 upstream pom image upgrade
drewp@bigasterisk.com
parents: 14
diff changeset
37 # I think sha-2c8038a is v0.21.3 (by date, https://www.pomerium.com/docs/releases/changelog)
22
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
38 #
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
39 # sha-dd49d67 is 2023-05-30,
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
40 # https://github.com/pomerium/ingress-controller/commit/dd49d679ea077930229dff8aa319c58c77a767dc
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
41 # including 'current main branch' as of 2023-05-23 per
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
42 # https://github.com/pomerium/ingress-controller/commit/f79735129577344cc9fd766ff1b51df324990771
c2e12ba4d0b2 update past CVE-2023-33189
drewp@bigasterisk.com
parents: 20
diff changeset
43 image: pomerium/ingress-controller:sha-dd49d67
0
drewp@bigasterisk.com
parents:
diff changeset
44 imagePullPolicy: IfNotPresent
drewp@bigasterisk.com
parents:
diff changeset
45 name: pomerium
drewp@bigasterisk.com
parents:
diff changeset
46 ports:
drewp@bigasterisk.com
parents:
diff changeset
47 - { containerPort: 8443, name: https, protocol: TCP }
drewp@bigasterisk.com
parents:
diff changeset
48 - { containerPort: 8080, name: http, protocol: TCP }
drewp@bigasterisk.com
parents:
diff changeset
49 - { containerPort: 9090, name: metrics, protocol: TCP }
drewp@bigasterisk.com
parents:
diff changeset
50 resources:
drewp@bigasterisk.com
parents:
diff changeset
51 limits: { cpu: 5000m, memory: 1Gi }
drewp@bigasterisk.com
parents:
diff changeset
52 requests: { cpu: 300m, memory: 200Mi }
drewp@bigasterisk.com
parents:
diff changeset
53 securityContext:
drewp@bigasterisk.com
parents:
diff changeset
54 allowPrivilegeEscalation: false
drewp@bigasterisk.com
parents:
diff changeset
55 readOnlyRootFilesystem: true
drewp@bigasterisk.com
parents:
diff changeset
56 runAsGroup: 1000
drewp@bigasterisk.com
parents:
diff changeset
57 runAsNonRoot: true
drewp@bigasterisk.com
parents:
diff changeset
58 runAsUser: 1000
drewp@bigasterisk.com
parents:
diff changeset
59 volumeMounts:
drewp@bigasterisk.com
parents:
diff changeset
60 - { mountPath: /tmp, name: tmp }
drewp@bigasterisk.com
parents:
diff changeset
61 - { mountPath: /data/autocert, name: autocert }
9
c9e2108bb271 pom deploy touchups
drewp@bigasterisk.com
parents: 8
diff changeset
62 - { mountPath: /.local, name: autocert }
0
drewp@bigasterisk.com
parents:
diff changeset
63 nodeSelector:
drewp@bigasterisk.com
parents:
diff changeset
64 kubernetes.io/os: linux
drewp@bigasterisk.com
parents:
diff changeset
65 securityContext:
drewp@bigasterisk.com
parents:
diff changeset
66 runAsNonRoot: true
drewp@bigasterisk.com
parents:
diff changeset
67 serviceAccountName: pomerium-controller
drewp@bigasterisk.com
parents:
diff changeset
68 terminationGracePeriodSeconds: 10
drewp@bigasterisk.com
parents:
diff changeset
69 volumes:
drewp@bigasterisk.com
parents:
diff changeset
70 - { name: tmp, emptyDir: {} }
drewp@bigasterisk.com
parents:
diff changeset
71 - { name: autocert, persistentVolumeClaim: { claimName: autocert-data } }
drewp@bigasterisk.com
parents:
diff changeset
72 affinity:
drewp@bigasterisk.com
parents:
diff changeset
73 nodeAffinity:
drewp@bigasterisk.com
parents:
diff changeset
74 requiredDuringSchedulingIgnoredDuringExecution:
drewp@bigasterisk.com
parents:
diff changeset
75 nodeSelectorTerms:
drewp@bigasterisk.com
parents:
diff changeset
76 - matchExpressions:
drewp@bigasterisk.com
parents:
diff changeset
77 - key: "kubernetes.io/hostname"
drewp@bigasterisk.com
parents:
diff changeset
78 operator: In
14
290342e75927 move to ditto
drewp@bigasterisk.com
parents: 9
diff changeset
79 values: ["ditto"]
0
drewp@bigasterisk.com
parents:
diff changeset
80 ---
drewp@bigasterisk.com
parents:
diff changeset
81 apiVersion: networking.k8s.io/v1
drewp@bigasterisk.com
parents:
diff changeset
82 kind: IngressClass
drewp@bigasterisk.com
parents:
diff changeset
83 metadata:
drewp@bigasterisk.com
parents:
diff changeset
84 labels:
drewp@bigasterisk.com
parents:
diff changeset
85 app.kubernetes.io/name: pomerium
drewp@bigasterisk.com
parents:
diff changeset
86 name: pomerium
drewp@bigasterisk.com
parents:
diff changeset
87 spec:
drewp@bigasterisk.com
parents:
diff changeset
88 controller: pomerium.io/ingress-controller