Skip to content

Commit

Permalink
fix ingress & nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
hechmi-dammak-xenit committed Jul 30, 2024
1 parent 94a9561 commit 09fe1d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xenit-aps/templates/ingress/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
5 changes: 5 additions & 0 deletions xenit-aps/templates/ingress/nginx-default-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {{ . }} {
Expand Down
2 changes: 2 additions & 0 deletions xenit-aps/templates/ingress/nginx-default-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 09fe1d9

Please sign in to comment.