mirror of
				https://github.com/carlosedp/cluster-monitoring.git
				synced 2025-10-26 10:23:04 +01:00 
			
		
		
		
	Add sample PVs and improve Readme
This commit is contained in:
		
							parent
							
								
									6b0b8c780a
								
							
						
					
					
						commit
						301785dc46
					
				@ -38,6 +38,8 @@ The ingresses can use TLS with the default self-signed certificate from your Ing
 | 
			
		||||
 | 
			
		||||
Persistence for Prometheus and Grafana can be enabled in the `enablePersistence` section. Setting each to `true`, creates the volume PVCs. If no PV names are defined in `prometheusPV` and `grafanaPV`, the default StorageClass will be used to dynamically create the PVs The sizes can be adjusted in `prometheusSizePV` and `grafanaSizePV`.
 | 
			
		||||
 | 
			
		||||
If using pre-created persistent volumes (samples in [`samples`](samples)), check permissions on the directories hosting the files. The `UID:GID` for Prometheus is `1000:0` and for Grafana is `472:472`.
 | 
			
		||||
 | 
			
		||||
Changing these parameters require a rebuild of the manifests with `make` followed by `make deploy`. To avoid installing all pre-requisites like Golang, Jsonnet, Jsonnet-bundler, use the target `make docker` to build in a container.
 | 
			
		||||
 | 
			
		||||
## Quickstart (non K3s)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								samples/sample-pv-grafana.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								samples/sample-pv-grafana.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: PersistentVolume
 | 
			
		||||
metadata:
 | 
			
		||||
  name: grafana
 | 
			
		||||
  labels:
 | 
			
		||||
    type: local
 | 
			
		||||
spec:
 | 
			
		||||
  capacity:
 | 
			
		||||
    storage: 1Gi
 | 
			
		||||
  accessModes:
 | 
			
		||||
    - ReadWriteOnce
 | 
			
		||||
  persistentVolumeReclaimPolicy: Retain
 | 
			
		||||
  hostPath:
 | 
			
		||||
    path: "/data/k3s-storage/grafana/"
 | 
			
		||||
							
								
								
									
										14
									
								
								samples/sample-pv-prometheus.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								samples/sample-pv-prometheus.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: PersistentVolume
 | 
			
		||||
metadata:
 | 
			
		||||
  name: prometheus
 | 
			
		||||
  labels:
 | 
			
		||||
    type: local
 | 
			
		||||
spec:
 | 
			
		||||
  capacity:
 | 
			
		||||
    storage: 2Gi
 | 
			
		||||
  accessModes:
 | 
			
		||||
    - ReadWriteOnce
 | 
			
		||||
  persistentVolumeReclaimPolicy: Retain
 | 
			
		||||
  hostPath:
 | 
			
		||||
    path: "/data/k3s-storage/prometheus/"
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user