Skip to content

Commit

Permalink
add: grafana pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
iferdel committed Feb 27, 2025
1 parent 65fca7f commit dcd56f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
# ---
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: grafana-provisioning-dashboards
# namespace: monitoring
# data:
# # may be better off in /etc/grafana/provisioning/dashboards
# dashboards.yaml: |-
# apiVersion: 1
# providers:
# - name: 'IoT'
# orgId: 1
# folder: ''
# folderUid: ''
# type: file
# disableDeletion: true
# updateIntervalSeconds: 10
# allowUiUpdates: true
# options:
# path: /etc/grafana/provisioning/dashboards
# foldersFromFilesStructure: true
# type: file
# ---
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
10 changes: 5 additions & 5 deletions monitoring/controllers/grafana/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ spec:
cpu: 250m
memory: 750Mi
volumeMounts:
# - mountPath: /var/lib/grafana
# name: grafana-pv
- mountPath: /var/lib/grafana
name: grafana-pv
- mountPath: /etc/grafana/provisioning/dashboards
name: grafana-provisioning-dashboards
volumes:
# - name: grafana-pv
# persistentVolumeClaim:
# claimName: grafana-pvc
- name: grafana-pv
persistentVolumeClaim:
claimName: grafana-pvc
- name: grafana-provisioning-dashboards
configMap:
defaultMode: 420
Expand Down

0 comments on commit dcd56f2

Please sign in to comment.