Skip to content

Commit

Permalink
[ADD] Grafana and kiali gateway and vs
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yash committed May 4, 2020
1 parent d0af452 commit 71ea6fe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
9 changes: 6 additions & 3 deletions services/manager/deployment/grafana-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: grafana-gateway
namespace: default
namespace: istio-system
spec:
selector:
istio: ingressgateway # use istio default controller
istio: ingressgateway
servers:
- port:
number: 15031
Expand All @@ -18,6 +18,7 @@ apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana-vs
namespace: istio-system
spec:
hosts:
- "*"
Expand All @@ -36,8 +37,10 @@ apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: grafana
namespace: istio-system
spec:
host: grafana
trafficPolicy:
tls:
mode: DISABLE
mode: DISABLE
---
4 changes: 2 additions & 2 deletions services/manager/deployment/kiali-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ metadata:
app: kiali
type: Opaque
data:
username: admin
passphrase: admin
username: YWRtaW4=
passphrase: YWRtaW4=
13 changes: 8 additions & 5 deletions services/manager/deployment/kiali-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: kiali-gateway
namespace: default
namespace: istio-system
spec:
selector:
istio: ingressgateway # use istio default controller
istio: ingressgateway
servers:
- port:
number: 20001
number: 15029
name: http-kiali
protocol: HTTP
hosts:
Expand All @@ -18,14 +18,15 @@ apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: kiali-vs
namespace: istio-system
spec:
hosts:
- "*"
gateways:
- kiali-gateway
http:
- match:
- port: 20001
- port: 15029
route:
- destination:
host: kiali
Expand All @@ -36,8 +37,10 @@ apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: kiali
namespace: istio-system
spec:
host: kiali
trafficPolicy:
tls:
mode: DISABLE
mode: DISABLE
---

0 comments on commit 71ea6fe

Please sign in to comment.