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

Gatekeeper MutatingAdmissionWebhook conflicts with vpc-cni #3719

Open
tomerleib opened this issue Nov 28, 2024 · 1 comment
Open

Gatekeeper MutatingAdmissionWebhook conflicts with vpc-cni #3719

tomerleib opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@tomerleib
Copy link

What steps did you take and what happened:
We have deployed Gatekeeper on our EKS cluster and created assign to inject a new sidecar for pods in one of the namespaces.
When a new pod that matched the assign was created, the sidecar was injected but VPC-CNI failed to assign an IP for this pod.

The error on the pod was Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d456c3f7056f7574708efdcb161e676949989c33411c13eba09bb78502a9a7c3": plugin type="aws-cni" name="aws-cni" failed (add): add cmd: failed to assign an IP address to container.

After further investigation with AWS support, we discovered that there's a conflict between our vpc-cni that uses ANNOTATE_POD_IP and the gatekeeper webhook.

A similar issue can be found here: aws/amazon-vpc-cni-k8s#2654 (comment)

What did you expect to happen:
I was expecting the pod to start properly with network as everything else.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Gatekeeper version: v3.10
  • Kubernetes version: (use kubectl version): 1.30.6
@tomerleib tomerleib added the bug Something isn't working label Nov 28, 2024
Copy link

stale bot commented Jan 27, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant