diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2022-10-27 09:12:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-10-27 09:12:00 +0000 |
commit | 0a7981b8125990b667aa0814b2a65c976fa0f6d6 (patch) | |
tree | e84439c903f0773db98e2eed7df428ea7447b170 /kubernetes | |
parent | e0b29d467b5672b594806914fc1129677fffc993 (diff) | |
parent | c113ef388745640ef6ea424c890f91d6f6307cde (diff) |
Merge "[AAI] Enhancement of AAI-traversal healthcheck"
Diffstat (limited to 'kubernetes')
-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 }} |