-
Notifications
You must be signed in to change notification settings - Fork 172
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
Timeout errors in MutatingWebhookConfiguration #46
Comments
Hi @krep-dr, are you using istio? |
@jasonodonnell Thanks for looking into this. No I don’t use istio. Will the injector log when receiving a request from the webhook? |
It will, yes. Is the injector running in the |
Yes it is |
A firewall in gcp was blocking the request. It worked when I allowed traffic to port 8080 from the kubernetes master nodes (172.16.0.0/28). |
this one comment saved me tons of time ... using GKE private clusters ... had to create a firewall rule so control plane can communicate with pods directly ... essentially opening up 8080 from source "master address range" otherwise the mutatingwebhookconfiguration prevents all new pods from starting (configerror) because the control plane timeouts on trying to communicate with agent injector pod. thanks and cheers |
As the other comments suggested the helm chart doesn't know if you have a private GKE cluster. Here's an example in terraform. resource "google_compute_firewall" "gke-master-to-node" {
name = "gke-master-to-node"
project = "{YOUR_PROJECT_ID}"
network = "{YOUR_COMPUTE_NETWORK_ID}"
allow {
protocol = "all"
# all ports exposed or ["443"]
}
source_ranges = ["{MASTER_IPV4_CIDR_BLOCK}"] # e.g "10.1.0.0/28"
target_tags = ["gke-node"] # nodes must be tagged
} |
I had the same problem. I configured group security in aws and now it's working.. |
This is a networking configuration issue. I experienced the same symptom in EKS, but solved it. For the detailed solution, please refer to my comment in #163. |
In my setup I have Vault server running in one cluster and the Vault-injector in another cluster. I have used the manifest files in
/deploy
to install the vault-injector.When a pod is scheduled the MutatingWebhookConfiguration throws timeout errors in a few different flavors and there is nothing to see in the logs for vault-injector.
Deployment variables
Pod logs
I can call the vault-injector k8s service directly so it seems to be running
I would appreciate if you can point me in the right direction:)
Thanks
The text was updated successfully, but these errors were encountered: