Skip to content

Commit da3ff97

Browse files
build health checks into default deployment (#1233)
## Summary <!-- For example... The existing implementation has poor numerical properties for large arguments, so use the McGillicutty algorithm to improve accuracy above 1e10. The algorithm is described at https://wikipedia.org/wiki/McGillicutty_Algorithm --> ## Related issues <!-- For example... Fixes #159 --> ## Checklist - [ ] reference any related issues - [ ] updated docs - [ ] updated unit tests - [ ] updated UPGRADING.md - [ ] add appropriate tag (`improvement` / `bug` / etc) - [ ] ready for review
1 parent 9a6adbc commit da3ff97

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

config/pomerium/deployment/healthcheck.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
httpGet:
1212
path: /startupz
1313
port : 28080
14+
failureThreshold: 40
15+
periodSeconds: 15
1416
livenessProbe:
1517
httpGet:
1618
path: /healthz

config/pomerium/deployment/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ patches:
99
- path: resources.yaml
1010
- path: no-root.yaml
1111
- path: readonly-root-fs.yaml
12+
- path: healthcheck.yaml

deployment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,13 @@ spec:
10021002
fieldPath: status.podIP
10031003
image: pomerium/ingress-controller:main
10041004
imagePullPolicy: Always
1005+
livenessProbe:
1006+
failureThreshold: 10
1007+
httpGet:
1008+
path: /healthz
1009+
port: 28080
1010+
initialDelaySeconds: 15
1011+
periodSeconds: 60
10051012
name: pomerium
10061013
ports:
10071014
- containerPort: 8443
@@ -1016,6 +1023,13 @@ spec:
10161023
- containerPort: 9090
10171024
name: metrics
10181025
protocol: TCP
1026+
readinessProbe:
1027+
failureThreshold: 5
1028+
httpGet:
1029+
path: /readyz
1030+
port: 28080
1031+
initialDelaySeconds: 15
1032+
periodSeconds: 60
10191033
resources:
10201034
limits:
10211035
cpu: 5000m
@@ -1032,6 +1046,12 @@ spec:
10321046
runAsGroup: 65532
10331047
runAsNonRoot: true
10341048
runAsUser: 65532
1049+
startupProbe:
1050+
failureThreshold: 40
1051+
httpGet:
1052+
path: /startupz
1053+
port: 28080
1054+
periodSeconds: 15
10351055
volumeMounts:
10361056
- mountPath: /tmp
10371057
name: tmp

0 commit comments

Comments
 (0)