Skip to content

Commit

Permalink
route-grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
akalitenya committed Nov 18, 2022
1 parent 5d36db0 commit 2077831
Show file tree
Hide file tree
Showing 6 changed files with 203 additions and 166 deletions.
334 changes: 169 additions & 165 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mprove/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: mprove
description: A Helm chart for Kubernetes
type: application
version: 0.0.28
version: 0.0.29
appVersion: "8.0.0"
6 changes: 6 additions & 0 deletions mprove/templates/ingress/istio-system-certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
commonName: {{ .Values.ingress.host }}
dnsNames:
- {{ .Values.ingress.host }}
{{- if .Values.ingress.routeGrafana.enabled }}
- {{ .Values.ingress.routeGrafana.host }}
{{- end }}
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
Expand All @@ -25,6 +28,9 @@ spec:
commonName: {{ .Values.ingress.host }}
dnsNames:
- {{ .Values.ingress.host }}
{{- if .Values.ingress.routeGrafana.enabled }}
- {{ .Values.ingress.routeGrafana.host }}
{{- end }}
issuerRef:
name: letsencrypt-staging
kind: ClusterIssuer
Expand Down
6 changes: 6 additions & 0 deletions mprove/templates/ingress/istio-system-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spec:
servers:
- hosts:
- {{ .Values.ingress.host }}
{{- if .Values.ingress.routeGrafana.enabled }}
- {{ .Values.ingress.routeGrafana.host }}
{{- end }}
port:
name: http
number: 80
Expand All @@ -18,6 +21,9 @@ spec:
httpsRedirect: false
- hosts:
- {{ .Values.ingress.host }}
{{- if .Values.ingress.routeGrafana.enabled }}
- {{ .Values.ingress.routeGrafana.host }}
{{- end }}
port:
number: 443
name: https
Expand Down
17 changes: 17 additions & 0 deletions mprove/templates/ingress/route-grafana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.ingress.routeGrafana.enabled -}}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: route-grafana
spec:
hosts:
- {{ .Values.ingress.routeGrafana.host }}
gateways:
- istio-system/gateway
http:
- route:
- destination:
host: {{ .Values.ingress.routeGrafana.destination }}
port:
number: 80
{{- end }}
4 changes: 4 additions & 0 deletions mprove/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ ingress:
acmeEmail: real-email@example.com
certProdSecretName: cert-prod-secret
certStagingSecretName: cert-staging-secret
routeGrafana:
enabled: false
host: grafana.example.com
destination: grafana-service-name.grafana-namespace.svc.cluster.local

kubeSystemNodeSetup:
enabled: true
Expand Down

0 comments on commit 2077831

Please sign in to comment.