flat-afternoon-93346
03/13/2024, 2:09 PMException: 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 "203.9.1" not found in <https://assets.logdna.com/charts> repository
This is my code that I am using to deploy. Strange thing is chart version already exist, but still it's not pulling it.
import pulumi
from kube import kube_provider
from pulumi_kubernetes import helm, core
# Define your Pulumi stack name
name = pulumi.get_stack()
# Define your Kubernetes provider targeting EKS
kube_provider = kube_provider
# Create the monitoring namespace if it doesn't exist
monitoring_ns = core.v1.Namespace(
"monitoring",
metadata={"name": "monitoring"},
opts=pulumi.ResourceOptions(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", # Chart name and directory
namespace=monitoring_ns.metadata["name"], # Target namespace
version="203.9.1", # Specific chart version
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)
pulumi.export("logdna_namespace", logdna.namespace)
If I run the below it shows the version exist
╰─ helm search hub logdna ─╯
URL CHART VERSION APP VERSION DESCRIPTION
<https://artifacthub.io/packages/helm/cloudnativ>... 1.0.0 1.5.6 Run this, get logs. All cluster containers. Log...
<https://artifacthub.io/packages/helm/logdna/agent> 203.9.1 3.9.1 LogDNA collector agent daemonset for Kubernetes.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by