Hey All, Please help me if anybody faced this issu...
# kubernetes
f
Hey All, Please help me if anybody faced this issue. I am trying to deploy any chart on EKS cluster using Pulumi python getting below Error.
Copy code
Exception: invoke of kubernetes:helm:template failed: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: chart "logdna/agent" version "latest" not found in https://assets.logdna.com/charts repository
This is my code, strange things this error happens for all the charts, do need to pass anything additional to deploy?
Copy code
import pulumi
from kube import kube_provider
from pulumi_kubernetes import helm

# Define your Pulumi stack name
name = pulumi.get_stack()

# Define your Kubernetes provider targeting EKS
kube_provider = kube_provider

# Replace "YOUR_INGESTION_KEY_HERE" with your actual LogDNA ingestion key
logdna = helm.v3.Chart(
    f"{name}-logdna",
    helm.v3.ChartOpts(
        chart="logdna/agent",
        namespace="kube-system",
        version="latest",
        fetch_opts=helm.v3.FetchOpts(
            repo="https://assets.logdna.com/charts"  # Use correct protocol specifier
        ),
        values={"ingestionKey": "YOUR_INGESTION_KEY_HERE"},
    ),
    opts=pulumi.ResourceOptions(provider=kube_provider),
)

# Output the release name and namespace for reference
pulumi.export("logdna_release_name", logdna.release_name)
d
I would guess that the chart is named
agent
not
logdna/agent
.
logdna
is a repo alias. https://github.com/pulumi/pulumi-kubernetes/issues/1295