2023-02-02 11:01:05 -08:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: {{ .NAME }}
|
|
|
|
namespace: {{ .NAMESPACE }}
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: alb
|
|
|
|
alb.ingress.kubernetes.io/healthcheck-interval-seconds: "15"
|
|
|
|
alb.ingress.kubernetes.io/healthcheck-path: /api/v1/health
|
|
|
|
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
|
|
|
|
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
|
|
|
|
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: "5"
|
|
|
|
alb.ingress.kubernetes.io/healthy-threshold-count: "2"
|
2023-02-28 10:44:45 -08:00
|
|
|
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
|
2023-02-02 11:01:05 -08:00
|
|
|
alb.ingress.kubernetes.io/scheme: internet-facing
|
|
|
|
alb.ingress.kubernetes.io/success-codes: "200"
|
|
|
|
alb.ingress.kubernetes.io/tags: createdBy=aws-controller
|
|
|
|
alb.ingress.kubernetes.io/target-type: ip
|
|
|
|
alb.ingress.kubernetes.io/unhealthy-threshold-count: "2"
|
2023-02-28 10:44:45 -08:00
|
|
|
alb.ingress.kubernetes.io/group.name: {{ .ALB_GROUP_NAME }}
|
|
|
|
alb.ingress.kubernetes.io/certificate-arn: {{ .ALB_SSL_CERT }}
|
|
|
|
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
|
2023-02-02 11:01:05 -08:00
|
|
|
external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }}
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: {{ .HOSTNAME }}
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: "/"
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: {{ .NAME }}
|
|
|
|
port:
|
|
|
|
number: 80
|