Merge pull request #1702 from aledbf/tls-docs
Fix TLS example [ci skip]
This commit is contained in:
commit
0e91c52adc
1 changed files with 13 additions and 8 deletions
|
@ -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
|
||||||
paths:
|
http:
|
||||||
- backend:
|
paths:
|
||||||
# This assumes http-svc exists and routes to healthy endpoints.
|
- path: /
|
||||||
serviceName: http-svc
|
backend:
|
||||||
servicePort: 80
|
# This assumes http-svc exists and routes to healthy endpoints
|
||||||
|
serviceName: http-svc
|
||||||
|
servicePort: 80
|
||||||
|
|
Loading…
Reference in a new issue