HDInsight on AKS deployment fails when using Azure Policy Add-On

Sander Decoster 0 Reputation points
2024-04-22T09:10:46.6133333+00:00

We are in the process of running a PoC to deploy Spark on Azure. For this we are trying out HDInsight on AKS (Spark).

When creating the HDInsight on AKS cluster node pool, we are encountering an issue when Azure Policy is enabled on the underlying AKS Cluster (enforced by CCoE team through a DeployIfNotExists policy).

Deployment: deployment.apps/upgrade-operator

Pod: pod/upgrade-operator-XXX

Container: upgrade-operator-webhook

Error:

Caused by: io.kubernetes.client.openapi.ApiException: class V1Status {
    apiVersion: v1
    code: 400
    details: null
    kind: Status
    message: the API version in the data (networking.k8s.io/v1) does not match the expected API version (crd.projectcalico.org/v1)
    metadata: class V1ListMeta {
        _continue: null
        remainingItemCount: null
        resourceVersion: null
        selfLink: null
    }
    reason: BadRequest
    status: Failure
}


We suspect there is a conflict between the calico CRD's deployed when enabling Azure Policy Add-On for AKS and the resources deployed by the HDInsights cluster node pool.

HDInsight on AKS
HDInsight on AKS
A version of Microsoft Azure HDInsight that supports open-source big data analytics workloads on AKS such as Flink, Trino and Spark.
3 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.