Skip to content

Commit 00c559f

Browse files
add readiness and liveness probe
1 parent d45185b commit 00c559f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deploy/manifests/imageswap-deploy.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ spec:
2020
securityContext:
2121
runAsUser: 1898
2222
runAsGroup: 1898
23+
restartPolicy: Always
2324
initContainers:
2425
- name: imageswap-init
2526
image: thewebroot/imageswap-init:v1.5.3
@@ -77,6 +78,26 @@ spec:
7778
mountPath: /tls
7879
- name: imageswap-maps
7980
mountPath: /app/maps
81+
readinessProbe:
82+
failureThreshold: 5
83+
httpGet:
84+
path: /healthz
85+
port: 5000
86+
scheme: HTTPS
87+
initialDelaySeconds: 15
88+
periodSeconds: 10
89+
successThreshold: 1
90+
timeoutSeconds: 5
91+
livenessProbe:
92+
failureThreshold: 5
93+
httpGet:
94+
path: /healthz
95+
port: 5000
96+
scheme: HTTPS
97+
initialDelaySeconds: 15
98+
periodSeconds: 10
99+
successThreshold: 1
100+
timeoutSeconds: 5
80101
volumes:
81102
- name: imageswap-mwc
82103
configMap:

0 commit comments

Comments
 (0)