Skip to content

[BUG] Error Deploying Helm Chart #202

Open
@9hsein5

Description

Description

An error occurs when attempting to deploy the graphrag Helm chart to Azure Kubernetes Service (AKS). The deployment fails during the installGraphRAGHelmChart step with the following message:

Release "graphrag" does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "nginx-internal" namespace: "" from "": no matches for kind "NginxIngressController" in version "approuting.kubernetes.azure.com/v1alpha1"
ensure CRDs are installed first

Steps to Reproduce

  1. Navigate to the infra directory: cd ./infra.
    2.a. bash deploy.sh -p deploy.parameters.json -s -d or/
    2.b. Populate the following parameters:
    • workloadId
    • serviceAccountName
    • appInsightsConnectionString
    • aiSearchName
    • cosmosEndpoint
    • graphragHostname
    • storageAccountBlobUrl
    • containerRegistryName
    • graphragImageName
    • graphragImageVersion
    • escapedReporters
    • Set reset_x=true
  2. Execute the following Helm command:
    helm upgrade -i graphrag ./helm/graphrag -f ./helm/graphrag/values.yaml \
        --namespace $aksNamespace --create-namespace \
        --set "serviceAccount.name=$serviceAccountName" \
        --set "serviceAccount.annotations.azure\.workload\.identity/client-id=$workloadId" \
        --set "master.image.repository=$containerRegistryName/$graphragImageName" \
        --set "master.image.tag=$graphragImageVersion" \
        --set "ingress.host=$graphragHostname" \
        --set "graphragConfig.APP_INSIGHTS_CONNECTION_STRING=$appInsightsConnectionString" \
        --set "graphragConfig.AI_SEARCH_URL=https://$aiSearchName.$AISEARCH_ENDPOINT_SUFFIX" \
        --set "graphragConfig.AI_SEARCH_AUDIENCE=$AISEARCH_AUDIENCE" \
        --set "graphragConfig.COSMOS_URI_ENDPOINT=$cosmosEndpoint" \
        --set "graphragConfig.GRAPHRAG_API_BASE=$GRAPHRAG_API_BASE" \
        --set "graphragConfig.GRAPHRAG_API_VERSION=$GRAPHRAG_API_VERSION" \
        --set "graphragConfig.GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT" \
        --set "graphragConfig.GRAPHRAG_LLM_MODEL=$GRAPHRAG_LLM_MODEL" \
        --set "graphragConfig.GRAPHRAG_LLM_DEPLOYMENT_NAME=$GRAPHRAG_LLM_DEPLOYMENT_NAME" \
        --set "graphragConfig.GRAPHRAG_EMBEDDING_MODEL=$GRAPHRAG_EMBEDDING_MODEL" \
        --set "graphragConfig.GRAPHRAG_EMBEDDING_DEPLOYMENT_NAME=$GRAPHRAG_EMBEDDING_DEPLOYMENT_NAME" \
        --set "graphragConfig.REPORTERS=$escapedReporters" \
        --set "graphragConfig.STORAGE_ACCOUNT_BLOB_URL=$storageAccountBlobUrl"
  3. Observe the following error:
    Release "graphrag" does not exist. Installing it now.
    Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "nginx-internal" namespace: "" from "": no matches for kind "NginxIngressController" in version "approuting.kubernetes.azure.com/v1alpha1"
    ensure CRDs are installed first
    

Expected Behavior

The Helm chart should be deployed successfully without errors.

Screenshots

image

Environment

  • OS: Windows 11 with WSL Ubuntu 22.04.3 LTS

Additional Context

This issue may be related to missing Custom Resource Definitions (CRDs) for NginxIngressController. Ensure all dependencies, such as CRDs or required Azure services, are properly installed and configured before deployment.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions