Skip to content

Commit

Permalink
backport istiod-remote discoveryAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
ayj committed Mar 15, 2020
1 parent a079671 commit 52f2e33
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
9 changes: 6 additions & 3 deletions manifests/gateways/istio-egress/templates/deployment.yaml
Expand Up @@ -117,10 +117,13 @@ spec:
- --controlPlaneAuthPolicy
- NONE
- --discoveryAddress
{{- if .Values.global.configNamespace }}
- istio-pilot.{{ .Values.global.configNamespace }}.svc:15012
{{- $namespace := .Values.global.configNamespace | default "istio-system" }}
{{- if .Values.global.remotePilotAddress }}
# Use the DNS hostname instead of the IP address. The discovery address needs to match the
# SAN in istiod's cert. The istiod-remote.<namespace>.svc will resolve to the remotePilotAddress.
- istiod-remote.{{ $namespace }}.svc:15012
{{- else }}
- istio-pilot.istio-system.svc:15012
- istio-pilot.{{ $namespace }}.svc:15012
{{- end }}
{{- else if .Values.global.controlPlaneSecurityEnabled }}
- --controlPlaneAuthPolicy
Expand Down
9 changes: 6 additions & 3 deletions manifests/gateways/istio-ingress/templates/deployment.yaml
Expand Up @@ -160,10 +160,13 @@ spec:
- --controlPlaneAuthPolicy
- NONE
- --discoveryAddress
{{- if .Values.global.configNamespace }}
- istio-pilot.{{ .Values.global.configNamespace }}.svc:15012
{{- $namespace := .Values.global.configNamespace | default "istio-system" }}
{{- if .Values.global.remotePilotAddress }}
# Use the DNS hostname instead of the IP address. The discovery address needs to match the
# SAN in istiod's cert. The istiod-remote.<namespace>.svc will resolve to the remotePilotAddress.
- istiod-remote.{{ $namespace }}.svc:15012
{{- else }}
- istio-pilot.istio-system.svc:15012
- istio-pilot.{{ $namespace }}.svc:15012
{{- end }}
{{- else if .Values.global.controlPlaneSecurityEnabled }}
- --controlPlaneAuthPolicy
Expand Down
Expand Up @@ -79,10 +79,13 @@ spec:
- --parentShutdownDuration
- "1m0s"
- --discoveryAddress
{{- if .Values.global.configNamespace }}
- istio-pilot.{{ .Values.global.configNamespace }}.svc:15012
{{- $namespace := .Values.global.configNamespace | default "istio-system" }}
{{- if .Values.global.remotePilotAddress }}
# Use the DNS hostname instead of the IP address. The discovery address needs to match the
# SAN in istiod's cert. The istiod-remote.<namespace>.svc will resolve to the remotePilotAddress.
- istiod-remote.{{ $namespace }}.svc:15012
{{- else }}
- istio-pilot.istio-system.svc:15012
- istio-pilot.{{ $namespace }}.svc:15012
{{- end }}
{{- if .Values.global.proxy.logLevel }}
- --proxyLogLevel={{ .Values.global.proxy.logLevel }}
Expand Down
27 changes: 18 additions & 9 deletions operator/pkg/vfs/assets.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52f2e33

Please sign in to comment.