diff options
author | 2022-10-12 09:50:46 +0200 | |
---|---|---|
committer | 2022-10-12 11:18:07 +0200 | |
commit | c113ef388745640ef6ea424c890f91d6f6307cde (patch) | |
tree | 897e200a144cac75b2d7e5217cbeeb4b29b7af58 /kubernetes/aai/components/aai-traversal/templates | |
parent | 1712ea65fb6d28e88bcf579dad6b980ea002432e (diff) |
[AAI] Enhancement of AAI-traversal healthcheck
- use the EchoResponse endpoint for the traversal healthcheck
- proof read the CONTRIBUTING.md
Issue-ID: AAI-3547
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: Ic07a194f2e42185dfb0cc43fffc7f805663447d9
Diffstat (limited to 'kubernetes/aai/components/aai-traversal/templates')
-rw-r--r-- | kubernetes/aai/components/aai-traversal/templates/deployment.yaml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/kubernetes/aai/components/aai-traversal/templates/deployment.yaml b/kubernetes/aai/components/aai-traversal/templates/deployment.yaml index ed8cde7a88..b9f2a802f2 100644 --- a/kubernetes/aai/components/aai-traversal/templates/deployment.yaml +++ b/kubernetes/aai/components/aai-traversal/templates/deployment.yaml @@ -221,18 +221,35 @@ spec: # so K8s doesn't restart unresponsive container {{ if .Values.liveness.enabled }} livenessProbe: - tcpSocket: + httpGet: + path: /aai/util/echo?action=checkDB port: {{ .Values.service.internalPort }} + scheme: HTTP{{ (eq "true" (include "common.needTLS" .)) | ternary "S" "" }} + httpHeaders: + - name: X-FromAppId + value: LivenessCheck + - name: X-TransactionId + value: LiveCheck_TID + - name: Accept + value: application/json initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} {{ end }} readinessProbe: - tcpSocket: + httpGet: + path: /aai/util/echo?action=checkDB port: {{ .Values.service.internalPort }} + scheme: HTTP{{ (eq "true" (include "common.needTLS" .)) | ternary "S" "" }} + httpHeaders: + - name: X-FromAppId + value: ReadinessCheck + - name: X-TransactionId + value: ReadinessCheck_TID + - name: Accept + value: application/json initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} - resources: -{{ include "common.resources" . }} + resources: {{ include "common.resources" . | nindent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} |