diff options
author | lukegleeson <luke.gleeson@est.tech> | 2022-05-20 15:09:35 +0100 |
---|---|---|
committer | Fiachra Corcoran <fiachra.corcoran@est.tech> | 2022-05-27 13:17:23 +0000 |
commit | 3f11e4452f703798a093187ad763493f290374e4 (patch) | |
tree | 99692993ea0088da2198865c9b2df500ebaa0a66 /kubernetes/cps/components | |
parent | d577b9b05a10227f07247517ba30b9b8aaff1cd8 (diff) |
[CPS] Adding startup probe to CPS deployment
Adding 5 minute startup probe to prevent forced restart during cps deployment
Issue-ID: CPS-1032
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I9d1be569f8f5e6f40cc1918ba6b2a5f4a86ef699
Diffstat (limited to 'kubernetes/cps/components')
-rw-r--r-- | kubernetes/cps/components/cps-core/templates/deployment.yaml | 6 | ||||
-rw-r--r-- | kubernetes/cps/components/cps-core/values.yaml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/kubernetes/cps/components/cps-core/templates/deployment.yaml b/kubernetes/cps/components/cps-core/templates/deployment.yaml index 54e2cc6cdf..a247f148a7 100644 --- a/kubernetes/cps/components/cps-core/templates/deployment.yaml +++ b/kubernetes/cps/components/cps-core/templates/deployment.yaml @@ -88,6 +88,12 @@ spec: path: {{ .Values.readiness.path }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} + startupProbe: + httpGet: + path: {{ .Values.startup.path }} + port: {{ .Values.startup.port }} + failureThreshold: {{ .Values.startup.failureThreshold }} + periodSeconds: {{ .Values.startup.periodSeconds }} env: - name: SPRING_PROFILES_ACTIVE value: {{ .Values.config.spring.profile }} diff --git a/kubernetes/cps/components/cps-core/values.yaml b/kubernetes/cps/components/cps-core/values.yaml index c548abbd23..5a10b2f4ae 100644 --- a/kubernetes/cps/components/cps-core/values.yaml +++ b/kubernetes/cps/components/cps-core/values.yaml @@ -145,6 +145,12 @@ readiness: path: /manage/health port: *mgt_port +startup: + failureThreshold: 5 + periodSeconds: 60 + path: /manage/health + port: *mgt_port + ingress: enabled: true service: |