astonishing-dress-81433
12/07/2024, 8:29 AMkube-prometheus-stack
Helm chart to my fairly vanilla EKS cluster. All managed by Pulumi. I’m getting this error:
pulumi:pulumi:Stack (myproject-dev):
error: Running program '/Users/jhamman/myproject/infrastructure/index.ts' failed with an unhandled exception:
<ref *1> Error: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: invalid_reference: invalid tag
running helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring --version 66.3.1
seems to work but using the k8s.helm.v3.Chart
Pulumi componet results in the error above. The Chart object is definted in the thread below. Thanks for any ideas or suggestions you might have.astonishing-dress-81433
12/07/2024, 8:29 AM// Create a namespace for monitoring
const monitoringNamespace = new k8s.core.v1.Namespace("monitoring", {
metadata: { name: "monitoring" },
}, { provider: cluster.provider });
// Deploy kube-prometheus-stack
const kubePrometheusStack = new k8s.helm.v3.Chart("kube-prometheus-stack", {
chart: "kube-prometheus-stack",
version: "66.3.1",
fetchOpts: {
repo: "<https://prometheus-community.github.io/helm-charts>",
},
namespace: monitoringNamespace.metadata.name,
values: {
grafana: {
adminPassword: "foo12345",
service: {
type: "LoadBalancer",
},
},
},
}, { provider: cluster.provider });
late-airplane-27955
12/07/2024, 5:49 PMRelease
instead of Chart
, not sure what the differences are between the two. This c# works as it should at least:
PrometheusAgentRelease = new Release(appName, new ReleaseArgs
{
Name = appName,
Namespace = appName,
CreateNamespace = true,
Chart = "kube-prometheus-stack",
Version = "65.3.1",
Values = agentValues,
RepositoryOpts = new RepositoryOptsArgs
{
Repo = "<https://prometheus-community.github.io/helm-charts>",
}
}, new CustomResourceOptions
{
Provider = config.Provider,
});
late-airplane-27955
12/07/2024, 5:51 PMstocky-restaurant-98004
12/09/2024, 7:12 PMastonishing-dress-81433
12/09/2024, 7:41 PMinvalid_reference: invalid tag
is a red herring of some sort.stocky-restaurant-98004
12/09/2024, 8:50 PMoci://
URI instead of http://
?stocky-restaurant-98004
12/09/2024, 8:50 PMastonishing-dress-81433
12/09/2024, 8:52 PMstocky-restaurant-98004
12/09/2024, 8:56 PMhelm install
defaults to OCI by now.many-telephone-49025
12/11/2024, 5:13 PMmany-telephone-49025
12/11/2024, 5:14 PMindex.ts
are you only installing the kube-prometheus-stack
stack?astonishing-dress-81433
12/11/2024, 5:43 PMmany-telephone-49025
12/11/2024, 6:17 PM