Closed ember11498 closed 3 weeks ago
When I install prometheus with:
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring prometheus
server and alertmanager pvc's are unbound.
Without having a default storage class and not setting a specific storage class at the chart installation, the PVCs will remain pending since the desired volumes cannot be provided.
if i try to do like:
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring --set server.persistentVolume.storageClass=prometheus-block-storage --set alertmanager.persistentVolume.storageClass=prometheus-block-storage
it only fixes the prometheus server, but the alertmanager pvc still unbund.
This is because the path to the storage class field is different in each chart:
helm upgrade --install prometheus prometheus-community/prometheus \
--namespace monitoring \
--set server.persistentVolume.storageClass=prometheus-block-storage \
--set alertmanager.persistence.storageClass=prometheus-block-storage
@zeritti solved!
Describe the bug a clear and concise description of what the bug is.
When I install prometheus with:
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring
prometheus erver and alertmanager pvc's are unbound.
if i try to do like:
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring --set server.persistentVolume.storageClass=prometheus-block-storage --set alertmanager.persistentVolume.storageClass=prometheus-block-storage
it only fixes the prometheus server, but the alertmanager pvc still unbund.
What's your helm version?
version.BuildInfo{Version:"v3.16.2", GitCommit:"13654a52f7c70a143b1dd51416d633e1071faffb", GitTreeState:"clean", GoVersion:"go1.22.7"}
What's your kubectl version?
1.27.2
Which chart?
prometheus
What's the chart version?
latest i guess
What happened?
when i run this commands:
i get the following output:
kubectl -n monitoring get pods
kubectl -n monitoring describe pod prometheus-alertmanager-0
kubectl -n monitoring describe pod prometheus-server-7d64c54f54-47qcm
kubectl -n monitoring get pvc
kubectl -n monitoring describe pvc prometheus-server
What you expected to happen?
I just want to install prometheus and have all its respective pods running well
How to reproduce it?
n.a.
Enter the changed values of values.yaml?
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring
Enter the command that you execute and failing/misfunctioning.
helm upgrade --install prometheus prometheus-community/prometheus --namespace monitoring
Anything else we need to know?
n.a.