From 74df879f32674ff8ba74e307897d720f7b891e22 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Mon, 13 Nov 2017 12:58:19 -0300 Subject: [PATCH] Fix TLS example [ci skip] --- docs/examples/tls-termination/ingress.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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