mirror of
https://github.com/goharbor/harbor
synced 2025-04-18 21:30:32 +00:00
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:
parent
c2d1eb49aa
commit
877d92b5ad
|
@ -41,6 +41,7 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /registryproxy/v2
|
nginx.ingress.kubernetes.io/rewrite-target: /registryproxy/v2
|
||||||
|
ingress.kubernetes.io/rewrite-target: /registryproxy/v2
|
||||||
spec:
|
spec:
|
||||||
{{ if not .Values.insecureRegistry }}
|
{{ if not .Values.insecureRegistry }}
|
||||||
tls:
|
tls:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user