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
|
||||
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:
|
||||
- host: foo.bar.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
# This assumes http-svc exists and routes to healthy endpoints.
|
||||
- path: /
|
||||
backend:
|
||||
# This assumes http-svc exists and routes to healthy endpoints
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
|
|
Loading…
Reference in a new issue