From d41919202bd70fe5f04b1752cae04d4ff3ab28fd Mon Sep 17 00:00:00 2001 From: Aron Kaufmann Date: Thu, 7 Dec 2023 16:50:01 +0100 Subject: [PATCH] add variable hostAliases to apigw --- apigateway/helm/templates/deployment.yaml | 5 ++++- apigateway/helm/values.yaml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/templates/deployment.yaml b/apigateway/helm/templates/deployment.yaml index fef3e9b..41c1cc0 100644 --- a/apigateway/helm/templates/deployment.yaml +++ b/apigateway/helm/templates/deployment.yaml @@ -176,7 +176,6 @@ spec: periodSeconds: 30 successThreshold: 1 timeoutSeconds: 1 - readinessProbe: httpGet: path: /rest/apigateway/health @@ -219,6 +218,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.hostAliases }} + hostAliases: + {{- toYaml .Values.hostAliases | nindent 8 }} + {{- end }} volumes: - name: apigw-config configMap: diff --git a/apigateway/helm/values.yaml b/apigateway/helm/values.yaml index 72ac1cc..07908a1 100644 --- a/apigateway/helm/values.yaml +++ b/apigateway/helm/values.yaml @@ -201,6 +201,9 @@ tolerations: [] affinity: {} +# -- Value to add extra host aliases to APIGW container. +hostAliases: [] + global: curlImage: "curlimages/curl" # -- Protocol for health check for kibana startup, must be http / https