티스토리 뷰
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
'CLOUD > Monitoring' 카테고리의 다른 글
Grafana Admin Password 잊어버렸을때 설정하기 (helm) (0) | 2022.03.23 |
---|---|
kubesphere 완전히 삭제하기 (kubesphere delete completely) (1) | 2022.03.02 |
에러해결 [kube-prometheus-stack] unknown field "shards" in com.coreos.monitoring.v1.Prometheus.spec (0) | 2022.02.24 |
Nginx Prometheus Exporter 프로세스로 실행하기 (0) | 2022.02.22 |
[Prometheus] Helm prometheus operator에 Nginx 추가하기 (0) | 2022.02.18 |