-
Notifications
You must be signed in to change notification settings - Fork 52
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
debug startup issues: Some problems occurred during startup #430
Comments
Maybe the deployment had some issues. |
thanks a lot! |
Sorry to ask a basic question. I want to use program debugging, but I find that there are always webhook related errors. I would like to ask how you debug your own programs, such as goland. I use minikube for testing. But this error occurs when I use. ➜ jobset git:(main) ✗ kubectl apply -f examples/simple/max-restarts.yaml
Error from server (InternalError): error when creating "examples/simple/max-restarts.yaml": Internal error occurred: failed calling webhook "mjobset.kb.io": failed to call webhook: Post "https://jobset-webhook-service.jobset-system.svc:443/mutate-jobset-x-k8s-io-v1alpha2-jobset?timeout=10s": dial tcp 10.108.45.68:443: connect: connection refused apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: jobset-mutating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
url: "https://127.0.0.1:9443/mutate-jobset-x-k8s-io-v1alpha2-jobset"
# service:
# name: jobset-webhook-service
# namespace: jobset-system
# path: /mutate-jobset-x-k8s-io-v1alpha2-jobset ➜ jobset git:(main) ✗ kubectl apply -f examples/simple/paralleljobs.yaml
Error from server (InternalError): error when creating "examples/simple/paralleljobs.yaml": Internal error occurred: failed calling webhook "mjobset.kb.io": failed to call webhook: Post "https://127.0.0.1:9443/mutate-jobset-x-k8s-io-v1alpha2-jobset?timeout=10s": dial tcp 127.0.0.1:9443: connect: connection refused
I found that when I started the program, I could not access port 9443 using 127.0.0.1 ➜ ~ curl --location 'https://127.0.0.1:9443/mutate-jobset-x-k8s-io-v1alpha2-jobset'
curl: (7) Failed to connect to 127.0.0.1 port 9443 after 6 ms: Connection refused |
The JobSet controller manager deployment resource requirements are 2CPU and 512Mi of memory. If your minikube instance does not have at least that much (plus enough for kube-system pods), the JobSet controller manager pod will not be scheduled and you will see this error. As explained in the troubleshooting guide, you need to describe the jobset controller manager pod and determine why it is not being scheduled. https://github.com/kubernetes-sigs/jobset/blob/main/docs/faq/README.md#1-webhook-not-available-error-when-attempting-to-create-a-jobset |
When I use go run main.go, the service starts normally.
When I create an example, the error that occurs with the webhook is as follows.
Is there anything I should have done less?
The text was updated successfully, but these errors were encountered: