쿠버네티스

Consul 삭제 후에도 webhook 에러 발생

황동리 2024. 12. 31. 10:40
반응형

k8s 클러스터에서 Consul 을 설치하고 삭제를 했는 데도, 아래와 같은 에러가 발생해서 무엇이 문제 인가 확인 해본 결과

 

Error creating: Internal error occurred: failed calling webhook "consul-consul-connect-injector.consul.hashicorp.com": failed to call webhook: Post "https://consul-consul-connect-injector.consul.svc:443/mutate?timeout=10s": service "consul-consul-connect-injector" not found

 

아래 이미지에서와 같이 Webhook이 삭제가 제대로 되질 않아서 발생하는 문제였습니다.

 

따라서 해당 Webhook 을 지워주면 정상적으로 POD가 생성되었습니다.

# kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io consul-consul-connect-injector
# kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io consul-consul-connect-injector

 

감사합니다.

반응형