Karmada execution-controller failed to resolve webhook address #3216
-
Events:
The webhook config is updated according to this tutorial : install-gatekeeper-components-on-host-cluster ---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
labels:
clusterpropagationpolicy.karmada.io/name: global-clusterpropagationpolicy
name: kruise-mutating-webhook-configuration
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
url: https://kruise-webhook-service.kruise-system.svc:443/mutate-apps-kruise-io-v1alpha1-uniteddeployment
# Replced with url
# service:
# name: kruise-webhook-service
# namespace: kruise-system
# path: /mutate-pod
# port: 443 And the karmada-api-server can call webhook without issue, but not karmada-controller-manager.
Dns lookup failed in karmada-controller-manager
Dns lookup succeed in a debug pod in the same namespace
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
First, you should a new svc
Second, you should update the MutatingWebhookConfiguration's url to |
Beta Was this translation helpful? Give feedback.
-
The dns logs of controller-manager. #:~/api-server/karmada$ kubectl logs --namespace=kube-system -l k8s-app=kube-dns | grep -v "etcd"
[INFO] 10.244.1.38:35242 - 17883 "AAAA IN kruise-webhook-service.kruise-system.svc. udp 58 false 512" NOERROR qr,aa,rd,ra 58 0.000924903s
[INFO] 10.244.1.38:35242 - 17377 "A IN kruise-webhook-service.kruise-system.svc. udp 58 false 512" NXDOMAIN qr,aa,rd,ra 58 0.004017635s |
Beta Was this translation helpful? Give feedback.
-
After searching out for a while, found out that it's caused by kube-api-server being unable to resolve in-cluster dns. But there is potential issue with Karmada components dns related to alpine, and i have made a simple PR here. |
Beta Was this translation helpful? Give feedback.
After searching out for a while, found out that it's caused by kube-api-server being unable to resolve in-cluster dns.
But there is potential issue with Karmada components dns related to alpine, and i have made a simple PR here.