Files
dancefinder-app/k8s/ingress-prod.yaml
argoyle 0f0553f756 feat(ingress): add health check configuration for ALB
Add health check settings to the ALB ingress configuration to ensure 
better reliability and monitoring. The changes include defining the 
health check path, interval, timeout, and threshold counts, which 
enhance the resilience of the service by enabling quicker detection 
and response to unhealthy instances.
2025-11-04 11:33:05 +01:00

30 lines
1.0 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dancefinder-app-ingress
annotations:
alb.ingress.kubernetes.io/group.name: "default"
alb.ingress.kubernetes.io/group.order: "101"
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
alb.ingress.kubernetes.io/healthcheck-path: "/health"
alb.ingress.kubernetes.io/healthcheck-interval-seconds: "30"
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: "5"
alb.ingress.kubernetes.io/healthy-threshold-count: "2"
alb.ingress.kubernetes.io/unhealthy-threshold-count: "2"
spec:
ingressClassName: "alb"
rules:
- host: "dancefinder.unbound.se"
http:
paths:
- path: /*
pathType: ImplementationSpecific
backend:
service:
name: dancefinder-app
port:
number: 80