From 877d92b5adfda1619fade8c7ecdb65204426269a Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Fri, 29 Jun 2018 15:17:28 +0800 Subject: [PATCH] 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. --- contrib/helm/harbor/templates/ingress/ingress.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/helm/harbor/templates/ingress/ingress.yaml b/contrib/helm/harbor/templates/ingress/ingress.yaml index d1c4870f3..06afa590c 100644 --- a/contrib/helm/harbor/templates/ingress/ingress.yaml +++ b/contrib/helm/harbor/templates/ingress/ingress.yaml @@ -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: