Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admission-webhook crashes after node restart #5000

Closed
Chunosov opened this issue Mar 15, 2022 · 2 comments
Closed

Admission-webhook crashes after node restart #5000

Chunosov opened this issue Mar 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Chunosov
Copy link
Contributor

Chunosov commented Mar 15, 2022

From time to time we see issues after node reboot - admission-webhook stays in CrashLoopBack, the logs complain that the mutatingwebhookconfiguration is already there. Removing the existing configuration solves the problem:

WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')  
kubectl delete mutatingwebhookconfiguration ${WH} 
{
  "level":"fatal",
  "ts":1646820191.1554844,
  "caller":"build/main.go:328",
  "msg":"mutatingwebhookconfigurations.admissionregistration.k8s.io \"admission-webhook-k8s-7b9d7f98c8-5xgln\" already exists",
  "stacktrace":"main.main\n\t/build/main.go:328\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225"
}

Probable reason:
It is related to thing that admission webhook is using self signed cert and when admission webhook restarts it generates a new cert that is not eual to cert from the registered k8s configuraiton

@denis-tingaikin denis-tingaikin added the bug Something isn't working label Mar 15, 2022
@denis-tingaikin
Copy link
Member

@denis-tingaikin
Copy link
Member

Should be fixed by networkservicemesh/cmd-admission-webhook-k8s#98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants