wormhole-explorer/deploy/api/api-ingress.yaml

37 lines
1.2 KiB
YAML

{{ if eq .ENVIRONMENT "production" }}
---
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"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80} ]'
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"
alb.ingress.kubernetes.io/group.name: wormscan-group
external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }}
spec:
rules:
- host: {{ .HOSTNAME }}
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: {{ .NAME }}
port:
number: 80
{{ end }}