Use tls
This commit is contained in:
parent
839104e6d8
commit
94fff2eb22
|
@ -4,10 +4,11 @@ metadata:
|
||||||
name: web-ingress
|
name: web-ingress
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/preserve-trailing-slash: "true"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: hello-world.info
|
- http:
|
||||||
http:
|
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
@ -23,4 +24,7 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: web2
|
name: web2
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 8080
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- hello-world.info
|
Loading…
Reference in New Issue