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

[BUG] Error Deploying Helm Chart #202

Open
9hsein5 opened this issue Nov 26, 2024 · 0 comments
Open

[BUG] Error Deploying Helm Chart #202

9hsein5 opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@9hsein5
Copy link

9hsein5 commented Nov 26, 2024

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.

@9hsein5 9hsein5 added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant