CLOUD/Monitoring
에러해결 MountVolume.SetUp failed for volume "tls-assets" : secret "prometheus-kube-prometheus-stack-prometheus-tls-assets" not found
헐리
2022. 2. 24. 10:01
비슷한 에러로
MountVolume.SetUp failed for volume "tls-assets" : secret "alertmanager-kube-prometheus-stack-alertmanager-tls-assets" not found
가 있다
계속 pod가 다음과 같은 이유로 terminating 될 것이다.
해결방법
prometheusOperator:
tls:
enabled: false
admissionWebhooks:
enabled: false
이렇게 values.yaml파일을 변경하면
helm-charts/charts/kube-prometheus-stack/templates/prometheus-operator/deployment.yaml
의 값이 변경되고 에러가 사라진다
위의 해결방법으로 안될때
helm 차트를 uninstall하고 재설치하면 된다
helm uninstall kube-prometheus-stack -n monitoring
차트만 uninstall하면 안되고 crd들을 지워야 완벽히 삭제된다
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
GitHub - prometheus-community/helm-charts: Prometheus community Helm charts
Prometheus community Helm charts. Contribute to prometheus-community/helm-charts development by creating an account on GitHub.
github.com
kubectl delete crd alertmanagerconfigs.monitoring.coreos.com
kubectl delete crd alertmanagers.monitoring.coreos.com
kubectl delete crd podmonitors.monitoring.coreos.com
kubectl delete crd probes.monitoring.coreos.com
kubectl delete crd prometheuses.monitoring.coreos.com
kubectl delete crd prometheusrules.monitoring.coreos.com
kubectl delete crd servicemonitors.monitoring.coreos.com
kubectl delete crd thanosrulers.monitoring.coreos.com