github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/telemetry-gateway/templates/gateway.yaml (about) 1 {{- if or (.Values.prometheusEnabled) (.Values.grafanaEnabled) }} 2 apiVersion: networking.istio.io/v1alpha3 3 kind: Gateway 4 metadata: 5 name: istio-telemetry-gateway 6 namespace: {{ .Release.Namespace }} 7 spec: 8 selector: 9 istio: {{ .Values.gatewayName }} 10 servers: 11 {{- if .Values.prometheusEnabled }} 12 - port: 13 number: 15030 14 name: http2-prometheus 15 protocol: HTTP2 16 hosts: 17 - "*" 18 {{- end }} 19 {{- if .Values.grafanaEnabled }} 20 - port: 21 number: 15031 22 name: http2-grafana 23 protocol: HTTP2 24 hosts: 25 - "*" 26 {{- end }} 27 {{- if .Values.grafanaEnabled }} 28 --- 29 apiVersion: networking.istio.io/v1alpha3 30 kind: DestinationRule 31 metadata: 32 name: grafana 33 namespace: {{ .Release.Namespace }} 34 spec: 35 host: grafana.{{ .Release.Namespace }}.svc.cluster.local 36 trafficPolicy: 37 tls: 38 mode: DISABLE 39 {{- end }} 40 {{- if .Values.prometheusEnabled }} 41 --- 42 apiVersion: networking.istio.io/v1alpha3 43 kind: DestinationRule 44 metadata: 45 name: prometheus 46 namespace: {{ .Release.Namespace }} 47 spec: 48 host: prometheus.{{ .Release.Namespace }}.svc.cluster.local 49 trafficPolicy: 50 tls: 51 mode: DISABLE 52 {{- end }} 53 --- 54 apiVersion: networking.istio.io/v1alpha3 55 kind: VirtualService 56 metadata: 57 name: telemetry-virtual-service 58 namespace: {{ .Release.Namespace }} 59 spec: 60 hosts: 61 - "*" 62 gateways: 63 - istio-telemetry-gateway 64 http: 65 {{- if .Values.prometheusEnabled }} 66 - match: 67 - port: 15030 68 route: 69 - destination: 70 host: prometheus.{{ .Release.Namespace }}.svc.cluster.local 71 port: 72 number: 9090 73 {{- end }} 74 {{- if .Values.grafanaEnabled }} 75 - match: 76 - port: 15031 77 route: 78 - destination: 79 host: grafana.{{ .Release.Namespace }}.svc.cluster.local 80 port: 81 number: 3000 82 {{- end }} 83 --- 84 {{- end }}