Commit f503fe74 by Guangbo Chen Committed by Craig Jellick

Add Jaeger external url of Kiali

parent 9942ab9d
...@@ -25,6 +25,4 @@ data: ...@@ -25,6 +25,4 @@ data:
custom_metrics_url: "http://prometheus.{{ .Release.Namespace }}:9090" custom_metrics_url: "http://prometheus.{{ .Release.Namespace }}:9090"
{{- if .Values.dashboard.grafanaURL }} {{- if .Values.dashboard.grafanaURL }}
url: {{ .Values.dashboard.grafanaURL }} url: {{ .Values.dashboard.grafanaURL }}
{{- else }}
url: "http://prometheus.{{ .Release.Namespace }}:9090"
{{- end }} {{- end }}
...@@ -38,6 +38,16 @@ spec: ...@@ -38,6 +38,16 @@ spec:
- "-v" - "-v"
- "4" - "4"
env: env:
{{- if and .Values.global.rancher (and .Values.global.rancher.domain .Values.global.rancher.clusterId) }}
{{- if not .Values.dashboard.jaegerURL }}
- name: JAEGER_URL
value: 'https://{{ .Values.global.rancher.domain }}/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/{{ .Release.Namespace }}/services/tracing:80/proxy/jaeger'
{{- end }}
{{- if not .Values.dashboard.grafanaURL }}
- name: GRAFANA_URL
value: 'https://{{ .Values.global.rancher.domain }}/k8s/clusters/{{ .Values.global.rancher.clusterId }}/api/v1/namespaces/{{ .Release.Namespace }}/services/http:grafana:80/proxy/'
{{- end }}
{{- end }}
- name: ACTIVE_NAMESPACE - name: ACTIVE_NAMESPACE
valueFrom: valueFrom:
fieldRef: fieldRef:
......
...@@ -133,6 +133,12 @@ certmanager: ...@@ -133,6 +133,12 @@ certmanager:
# Common settings used among istio subcharts. # Common settings used among istio subcharts.
global: global:
# Specify rancher domain and clusterId of external tracing config
# https://github.com/istio/istio.io/issues/4146#issuecomment-493543032
rancher:
domain:
clusterId:
systemDefaultRegistry: "" systemDefaultRegistry: ""
# Default hub for Istio images. # Default hub for Istio images.
# Releases are published to docker hub under 'istio' project. # Releases are published to docker hub under 'istio' project.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment