diff --git a/ingress/web-ingress.yaml b/ingress/web-ingress.yaml index d9d3139..8caa4d9 100644 --- a/ingress/web-ingress.yaml +++ b/ingress/web-ingress.yaml @@ -4,10 +4,11 @@ metadata: name: web-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" + nginx.ingress.kubernetes.io/preserve-trailing-slash: "true" spec: rules: - - host: hello-world.info - http: + - http: paths: - path: / pathType: Prefix @@ -23,4 +24,7 @@ spec: service: name: web2 port: - number: 8080 \ No newline at end of file + number: 8080 + tls: + - hosts: + - hello-world.info \ No newline at end of file