Open cybra-northco opened 4 months ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Are you using a custom CNI on EKS?
https://kyverno.io/docs/troubleshooting/#kyverno-fails-on-eks
Yes, we are using VPC CNI, version v1.18.2-eksbuild.1
.
I have read the documentation that was linked, it mentions that sometimes the VPC CNI might be outdated.
It seems like the version we are using is good enough for the kubernetes version we have.
Another concern mentioned in the doc - that some of the traffic from the control plane to the worker nodes might be blocked - seems not to be relevant, at least according to our SRE team:
the traffic is allowed on all ports within cluster , master and worker nodes
Kyverno Version
1.12.4
Kubernetes Version
1.29.x
Kubernetes Platform
EKS
Kyverno Rule Type
Validate
Description
Kyverno was installed using the following values file:
In spite of the following policy:
It is possible to apply the following yaml:
When trying this on a real EKS cluster, the request is not denied and there are no logs in the kyverno admission controller. The same setup in the local Kind cluster results in the request to create a service to be denied, and there are logs in the kyverno admission controller that resource creation was denied due to a policy violation.
Steps to reproduce
Expected behavior
Kyverno rejects the creation of the k8s service
Screenshots
No response
Kyverno logs
No response
Slack discussion
No response
Troubleshooting