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

add faq for no endpoints available of webhook #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
title: FAQ
---

**Q**: The operation on the pod fails and the following error occurs. What is the reason?
```bash
Error from server (InternalError): Internal error occurred: failed calling webhook "vpod.kb.io": failed to call webhook: Post "https://kruise-webhook-service.kruise-system.svc:443/validate-pod?timeout=10s": no endpoints available for service "kruise-webhook-service"
```

**A**: Check whether the kruise-controller-manager pod under kruise-system is in a healthy state. When it is abnormal (pending/not ready/no instance, etc.), the corresponding validate webhook will not be able to find the corresponding endpoints, causing the verification to fail, and then the pod operation will fail.
The solution is to restore the kruise-controller-manager pod to a healthy state according to the prompts; or temporarily delete the validatingwebhookconfiguration named `kruise-validating-webhook-configuration` in the cluster, and then re-create it after the cluster is normal.
8 changes: 8 additions & 0 deletions i18n/zh/docusaurus-plugin-content-docs/current/faq.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
title: FAQ
---

**Q**: 操作pod失败,出现以下报错什么原因?
```bash
Error from server (InternalError): Internal error occurred: failed calling webhook "vpod.kb.io": failed to call webhook: Post "https://kruise-webhook-service.kruise-system.svc:443/validate-pod?timeout=10s": no endpoints available for service "kruise-webhook-service"
```

**A**: 检查kruise-system下的 kruise-controller-manager pod是否是健康的状态。当其处于异常(pending/not ready/没有实例等)对应的validate webhook则会找不到对应的endpoints,导致校验失败,进而pod操作失败。
解决方案是根据提示恢复kruise-controller-manager pod为健康状态;或者暂时删除集群中名为 `kruise-validating-webhook-configuration` 的validatingwebhookconfiguration,等集群正常后再重新创建。
Loading