Merge pull request #1702 from aledbf/tls-docs

Fix TLS example [ci skip]
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-11-13 12:58:52 -03:00 committed by GitHub
commit 0e91c52adc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,12 +4,17 @@ metadata:
name: nginx-test
spec:
tls:
# This assumes tls-secret exists.
- secretName: tls-secret
- hosts:
- foo.bar.com
# This assumes tls-secret exists and the SSL
# certificate contains a CN for foo.bar.com
secretName: tls-secret
rules:
- http:
paths:
- backend:
# This assumes http-svc exists and routes to healthy endpoints.
serviceName: http-svc
servicePort: 80
- host: foo.bar.com
http:
paths:
- path: /
backend:
# This assumes http-svc exists and routes to healthy endpoints
serviceName: http-svc
servicePort: 80