dhall-kubernetes/examples/out/ingress.yaml

35 lines
763 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.allow-http: 'false'
kubernetes.io/ingress.class: nginx
name: nginx
spec:
rules:
- host: foo.example.com
http:
paths:
- backend:
service:
name: foo
port:
number: 80
pathType: Exact
- host: default.example.com
http:
paths:
- backend:
service:
name: default
port:
number: 80
pathType: Exact
tls:
- hosts:
- foo.example.com
secretName: foo-certificate
- hosts:
- default.example.com
secretName: default-certificate