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

Enabling Kyverno makes CAPZ clusters not deploy #60

Open
dtzar opened this issue May 24, 2024 · 0 comments
Open

Enabling Kyverno makes CAPZ clusters not deploy #60

dtzar opened this issue May 24, 2024 · 0 comments

Comments

@dtzar
Copy link
Collaborator

dtzar commented May 24, 2024

When enabling the Kyverno add-on as it exists in the repo, CAPZ clusters get stuck in provisioning state and in the CAPI log we can see the following:

E0523 21:28:55.370777       1 controller.go:329] "Reconciler error" err="failed to patch AzureManagedControlPlane default/aks0: admission webhook \"validation.azuremanagedcontrolplanes.infrastructure.cluster.x-k8s.io\" denied the request: AzureManagedControlPlane.infrastructure.cluster.x-k8s.io \"aks0\" is invalid: [Spec.VirtualNetwork.Name: Invalid value: \"aks0\": Virtual Network Name is immutable, Spec.VirtualNetwork.CIDRBlock: Invalid value: \"10.224.0.0/12\": Virtual Network CIDRBlock is immutable, Spec.VirtualNetwork.Subnet.Name: Invalid value: \"aks0\": Subnet Name is immutable, Spec.VirtualNetwork.Subnet.CIDRBlock: Invalid value: \"10.224.0.0/16\": Subnet CIDRBlock is immutable, Spec.VirtualNetwork.ResourceGroup: Invalid value: \"aks0\": Virtual Network Resource Group is immutable]" controller="cluster" controllerGroup="cluster.x-k8s.io" controllerKind="Cluster" Cluster="default/aks0" namespace="default" name="aks0" reconcileID="e071179a-9bac-49b0-b2d7-9b2d140f40c8"

It is likely that the installation of Kyverno is blocking some webhook or other operations prohibiting CAPZ from functioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant