ingress-nginx-helm/docs/examples/tls-termination/ingress.yaml

21 lines
485 B
YAML
Raw Normal View History

2017-01-28 01:51:00 +00:00
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-test
spec:
tls:
2017-11-13 15:58:19 +00:00
- hosts:
- foo.bar.com
# This assumes tls-secret exists and the SSL
# certificate contains a CN for foo.bar.com
secretName: tls-secret
2017-01-28 01:51:00 +00:00
rules:
2017-11-13 15:58:19 +00:00
- host: foo.bar.com
http:
paths:
- path: /
backend:
# This assumes http-svc exists and routes to healthy endpoints
serviceName: http-svc
servicePort: 80