diff --git a/deploy b/deploy index 859309b..c8422f1 100755 --- a/deploy +++ b/deploy @@ -82,6 +82,7 @@ do STORAGE_CLASS_TYPE=gp2 sed -i -e 's,STORAGE_CLASS_PROVISIONER,'"$STORAGE_CLASS_PROVISIONER"',g' manifests/prometheus/prometheus-k8s.yaml; sed -i -e 's,STORAGE_CLASS_TYPE,'"$STORAGE_CLASS_TYPE"',g' manifests/prometheus/prometheus-k8s.yaml; + sed -i -e 's,STORAGE_CLASS_TYPE,'"$STORAGE_CLASS_TYPE"',g' manifests/grafana/grafana.pvc.yaml; break ;; "GCP") diff --git a/manifests/grafana/grafana.pvc.yaml b/manifests/grafana/grafana.pvc.yaml index 1869934..41b3a12 100644 --- a/manifests/grafana/grafana.pvc.yaml +++ b/manifests/grafana/grafana.pvc.yaml @@ -8,4 +8,4 @@ spec: resources: requests: storage: 1Gi - storageClassName: ssd \ No newline at end of file + storageClassName: STORAGE_CLASS_TYPE \ No newline at end of file diff --git a/manifests/prometheus/prometheus-k8s.yaml b/manifests/prometheus/prometheus-k8s.yaml index 8bf6b89..3150c40 100644 --- a/manifests/prometheus/prometheus-k8s.yaml +++ b/manifests/prometheus/prometheus-k8s.yaml @@ -1,7 +1,7 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: - name: ssd + name: STORAGE_CLASS_TYPE provisioner: STORAGE_CLASS_PROVISIONER parameters: type: STORAGE_CLASS_TYPE @@ -31,7 +31,7 @@ spec: memory: PROMETHEUS_MEMORY_REQUEST retention: PROMETHEUS_STORAGE_RETENTION storage: - class: ssd + class: STORAGE_CLASS_TYPE selector: resources: volumeClaimTemplate: @@ -39,7 +39,7 @@ spec: annotations: annotation1: prometheus spec: - storageClassName: ssd + storageClassName: STORAGE_CLASS_TYPE resources: requests: storage: PROMETHEUS_STORAGE_VOLUME_SIZE