From 09fe1d95cd10aa0c06b608722dbcc9372d81b528 Mon Sep 17 00:00:00 2001 From: Hechmi Dammak Date: Tue, 30 Jul 2024 09:31:18 +0200 Subject: [PATCH] fix ingress & nginx --- xenit-aps/templates/ingress/ingress.yaml | 2 +- xenit-aps/templates/ingress/nginx-default-config.yaml | 5 +++++ xenit-aps/templates/ingress/nginx-default-service.yaml | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/xenit-aps/templates/ingress/ingress.yaml b/xenit-aps/templates/ingress/ingress.yaml index 95c4030..804694b 100644 --- a/xenit-aps/templates/ingress/ingress.yaml +++ b/xenit-aps/templates/ingress/ingress.yaml @@ -2,7 +2,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: ingress + name: aps-ingress namespace: {{ .Release.Namespace | quote }} annotations: {{- if .Values.ingress.ingressAnnotations}} diff --git a/xenit-aps/templates/ingress/nginx-default-config.yaml b/xenit-aps/templates/ingress/nginx-default-config.yaml index 55ceb58..710dc0d 100644 --- a/xenit-aps/templates/ingress/nginx-default-config.yaml +++ b/xenit-aps/templates/ingress/nginx-default-config.yaml @@ -18,6 +18,11 @@ data: server { listen 80; server_name _; + location /ngnxhealth { + add_header 'Content-Type' 'application/json'; + access_log off; + return 200 '{"status":"UP"}'; + } {{- if .Values.ingress.blockedPaths.enabled -}} {{- range $.Values.ingress.blockedPaths.paths }} location {{ . }} { diff --git a/xenit-aps/templates/ingress/nginx-default-service.yaml b/xenit-aps/templates/ingress/nginx-default-service.yaml index dc04896..2667202 100644 --- a/xenit-aps/templates/ingress/nginx-default-service.yaml +++ b/xenit-aps/templates/ingress/nginx-default-service.yaml @@ -2,6 +2,8 @@ apiVersion: v1 kind: Service metadata: name: nginx-default-service + annotations: + alb.ingress.kubernetes.io/healthcheck-path: /ngnxhealth namespace: {{ .Release.Namespace | quote }} spec: {{- if .Values.general.serviceType }}