Update ingress
This commit is contained in:
Родитель
a6c64bf967
Коммит
e2952279bf
|
@ -48,24 +48,21 @@ metadata:
|
|||
name: #@ data.values.name
|
||||
namespace: #@ data.values.namespace
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||
kubernetes.io/ingress.class: contour
|
||||
kubernetes.io/tls-acme: "true"
|
||||
spec:
|
||||
tls:
|
||||
- secretName: initializr-tls
|
||||
hosts:
|
||||
- #@ data.values.hostname
|
||||
rules:
|
||||
- host: #@ data.values.hostname
|
||||
http:
|
||||
paths:
|
||||
- path: /(api)
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: #@ data.values.name
|
||||
port:
|
||||
number: #@ int(data.values.service_port)
|
||||
- path: /(api/.*)
|
||||
pathType: ImplementationSpecific
|
||||
- pathType: Prefix
|
||||
path: /api
|
||||
backend:
|
||||
service:
|
||||
name: #@ data.values.name
|
||||
|
|
Загрузка…
Ссылка в новой задаче