From c979cb505f037b001d9e8262f056f1a8ec879850 Mon Sep 17 00:00:00 2001 From: lvyongxin Date: Fri, 21 Aug 2020 17:23:31 +0800 Subject: [PATCH] update ingress.yaml --- templates/ingress/ingress.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/ingress/ingress.yaml b/templates/ingress/ingress.yaml index c3358da..f33cb4e 100644 --- a/templates/ingress/ingress.yaml +++ b/templates/ingress/ingress.yaml @@ -115,7 +115,7 @@ spec: - websecure routes: - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/`) middlewares: [] priority: 0 services: @@ -124,7 +124,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/api/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/api/`) middlewares: [] priority: 0 services: @@ -133,7 +133,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/service/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/service/`) middlewares: [] priority: 0 services: @@ -142,7 +142,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/v2/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/v2/`) middlewares: [] priority: 0 services: @@ -151,7 +151,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/chartrepo/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/chartrepo/`) middlewares: [] priority: 0 services: @@ -160,7 +160,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/c/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/c/`) middlewares: [] priority: 0 services: @@ -169,7 +169,7 @@ spec: namespace: devops port: 80 - kind: Rule - match: Host(`{{ $ingress.hosts.core }}`) && PathPrefix(`/`) + match: Host(`{{ "$ingress.hosts.core" }}`) && PathPrefix(`/`) middlewares: [] priority: 0 services: @@ -186,4 +186,4 @@ metadata: name: harbor namespace: {{ .Release.Namespace }} spec: - host: {{ $ingress.hosts.core }} \ No newline at end of file + host: {{ "$ingress.hosts.core" }} \ No newline at end of file -- 2.26.0