Add rewrite-target annotation to ingress rule

The annotation prefix changes in a specific version of nginx controller, add the two kinds of annotation for rewrite-target to the rule to make it works.
This commit is contained in:
Wenkai Yin 2018-06-29 15:17:28 +08:00
parent c2d1eb49aa
commit 877d92b5ad

View File

@ -41,6 +41,7 @@ metadata:
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
nginx.ingress.kubernetes.io/rewrite-target: /registryproxy/v2
ingress.kubernetes.io/rewrite-target: /registryproxy/v2
spec:
{{ if not .Values.insecureRegistry }}
tls: