0

I am attempting to install the Azure Policy extension on a newly deployed Arc Kubernetes cluster.

az k8s-extension delete --cluster-type connectedClusters --cluster-name azure-arc-test-01 --resource-group arc-enabled-kubernetes-poc --name azurepolicy

However, I am getting the following error:

Code: ExtensionOperationFailed
Message: The extension operation failed with the following error:  
Error: {failed to install chart from path [] for release [azurepolicy]: 
err [unable to build kubernetes objects from release manifest: 
unable to recognize "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"]} occurred while doing the operation : 
{Installing the extension} on the config.

Kubernetes version is 1.25.

I believe that the error might be caused by the fact that PodSecurityPolicy is located in extensions/v1beta1 and not in policy/v1beta - discussed here: https://github.com/helm/charts/issues/8789#issuecomment-433811260

I am looking for suggestions on how I could get around this issue. Specifically, could I download the required Helm chart and point to extensions/v1beta1?

immutableT
  • 439
  • 4
  • 13

0 Answers0