Skip to content

Commit

Permalink
Merge pull request #106 from grafana/split_up_grafana_template
Browse files Browse the repository at this point in the history
Split up Grafana yaml
  • Loading branch information
MichelHollands authored May 8, 2024
2 parents add43ae + 57adbf4 commit d9a4d4a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{{- if .Values.local.grafana.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -98,19 +86,4 @@ spec:
- name: agent-dashboards-1
configMap:
name: agent-dashboards-1

---
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
ports:
- port: 3000
protocol: TCP
targetPort: http-grafana
selector:
app: grafana
sessionAffinity: None
type: ClusterIP # Make this configurable
{{- end }}
12 changes: 12 additions & 0 deletions charts/meta-monitoring/templates/grafana/grafana-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.local.grafana.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
{{- end }}
15 changes: 15 additions & 0 deletions charts/meta-monitoring/templates/grafana/grafana-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.local.grafana.enabled }}
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
ports:
- port: 3000
protocol: TCP
targetPort: http-grafana
selector:
app: grafana
sessionAffinity: None
type: ClusterIP # Make this configurable
{{- end }}

0 comments on commit d9a4d4a

Please sign in to comment.