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 name: nginx-test
spec: spec:
tls: tls:
# This assumes tls-secret exists. - hosts:
- secretName: tls-secret - foo.bar.com
# This assumes tls-secret exists and the SSL
# certificate contains a CN for foo.bar.com
secretName: tls-secret
rules: rules:
- http: - host: foo.bar.com
http:
paths: paths:
- backend: - path: /
# This assumes http-svc exists and routes to healthy endpoints. backend:
# This assumes http-svc exists and routes to healthy endpoints
serviceName: http-svc serviceName: http-svc
servicePort: 80 servicePort: 80