Add sample PVs and improve Readme

pull/77/head
Carlos de Paula 4 years ago
parent 6b0b8c780a
commit 301785dc46
  1. 2
      Readme.md
  2. 14
      samples/sample-pv-grafana.yaml
  3. 14
      samples/sample-pv-prometheus.yaml

@ -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)

@ -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/"

@ -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…
Cancel
Save