Skip to content
Prev Previous commit
Add healthcheck-path for services - alb
  • Loading branch information
Rub21 committed Oct 8, 2025
commit 697bb28fe664d55a6f194255ee134a257327450e
4 changes: 4 additions & 0 deletions osm-seed/templates/nominatim-api/nominatim-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ metadata:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.nominatimApi.healthCheckPath | default "/" }}
{{- end }}
spec:
type: {{ .Values.serviceType }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/templates/overpass-api/overpass-api-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ metadata:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.overpassApi.healthCheckPath | default "/" }}
{{- end }}
spec:
type: {{ .Values.serviceType }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/templates/taginfo/taginfo-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ metadata:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.taginfo.healthCheckPath | default "/" }}
{{- end }}
spec:
type: {{ .Values.serviceType }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/templates/tasking-manager-api/tm-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ metadata:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.tmApi.healthCheckPath | default "/api/docs" }}
{{- end }}
spec:
type: {{ if eq .Values.ingressClassNameType "nlb" }}{{ default "LoadBalancer" .Values.serviceType }}{{ else }}ClusterIP{{ end }}
ports:
Expand Down
5 changes: 5 additions & 0 deletions osm-seed/templates/tiler-server/tiler-server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ metadata:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.tilerServer.healthCheckPath | default "/" }}
{{- end }}

spec:
type: {{ .Values.serviceType }}
ports:
Expand Down
4 changes: 4 additions & 0 deletions osm-seed/templates/web/web-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ metadata:
cert-manager.io/cluster-issuer: {{ .Release.Name }}-letsencrypt-prod-issuer
{{- end }}

{{- if and (eq .Values.ingressClassNameType "alb" ) (eq .Values.serviceType "ClusterIP") }}
alb.ingress.kubernetes.io/healthcheck-path: {{ .Values.web.healthCheckPath | default "/" }}
{{- end }}

spec:
type: {{ .Values.serviceType }}
selector:
Expand Down
Loading