티스토리 뷰

비슷한 에러로 

  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

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함