-
-
Save qclaogui/f578b5fd563f09a3fd0e53edfe28594d to your computer and use it in GitHub Desktop.
Revisions
-
phanama created this gist
Aug 22, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,73 @@ --- apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: prometheus-server-0 namespace: monitoring spec: selector: istio: ingressgateway servers: - hosts: - cluster-A-prometheus-0.example.com port: name: grpc number: 80 protocol: GRPC --- apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: prometheus-server-1 namespace: monitoring spec: selector: istio: ingressgateway servers: - hosts: - cluster-A-prometheus-1.example.com port: name: grpc number: 80 protocol: GRPC --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: prometheus-server-0 namespace: monitoring spec: gateways: - prometheus-server-0 hosts: - cluster-A-prometheus-0.example.com http: - match: - uri: prefix: / route: - destination: host: prometheus-server-0.prometheus-server-headless.monitoring.svc.cluster.local port: number: 10901 --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: prometheus-server-1 namespace: monitoring spec: gateways: - prometheus-server-0 hosts: - cluster-A-prometheus-1.example.com http: - match: - uri: prefix: / route: - destination: host: prometheus-server-1.prometheus-server-headless.monitoring.svc.cluster.local port: number: 10901