diff --git a/docs/examples/tls-termination/ingress.yaml b/docs/examples/tls-termination/ingress.yaml index 9c12a4bc5..b5decf8f2 100644 --- a/docs/examples/tls-termination/ingress.yaml +++ b/docs/examples/tls-termination/ingress.yaml @@ -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