30 lines
805 B
YAML
30 lines
805 B
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: acme-dns
|
|
namespace: "{{apps.acme_dns.namespace}}"
|
|
annotations:
|
|
kubernetes.io/ingress.class: "traefik"
|
|
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
# traefik.ingress.kubernetes.io/router.tls: "true"
|
|
# cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
spec:
|
|
rules:
|
|
- host: dns-api.xai-corp.net
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: dns-api
|
|
port:
|
|
number: 80
|
|
|
|
# tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
|
|
# - secretName: xai-corp-production-tls-ap1
|
|
# hosts:
|
|
# - dns-api.xai-corp.net
|