[Helm/Release] Unable to create new release: `mkdir` error
See original GitHub issueAttempting to create a new helm release from the Traefik chart with the following code:
traefik, err := helmv3.NewRelease(ctx, "traefik", &helmv3.ReleaseArgs{
Chart: pulumi.String("traefik"),
Namespace: pulumi.String("kube-system"),
RepositoryOpts: helmv3.RepositoryOptsArgs{
Repo: pulumi.String("https://helm.traefik.io/traefik"),
},
SkipAwait: pulumi.BoolPtr(false),
Values: pulumi.Map{
"additionalArguments": pulumi.StringArray{
pulumi.String("--entrypoints.websecure.http.tls"),
pulumi.String("--ping"),
pulumi.String("--providers.kubernetesIngress.ingressClass=traefik"),
},
"deployment": pulumi.Map{
"replicas": pulumi.Int(1),
},
"ingressRoute": pulumi.Map{
"dashboard": pulumi.Map{
"annotations": pulumi.StringMap{
"traefik.ingress.kubernetes.io/router.tls": pulumi.String("true"),
},
"enabled": pulumi.Bool(true),
},
},
"logs": pulumi.Map{
"access": pulumi.BoolMap{
"enabled": pulumi.Bool(true),
},
"general": pulumi.Map{
"level": pulumi.String("INFO"),
},
},
"metrics": pulumi.Map{
"prometheus": pulumi.Map{
"entryPoint": pulumi.String("metrics"),
},
},
"ports": pulumi.Map{
"web": pulumi.Map{
"redirectTo": pulumi.String("websecure"),
},
},
"service": pulumi.Map{
"annotations": pulumi.StringMap{
"kubernetes.io/ingress.class": pulumi.String("traefik"),
"service.beta.kubernetes.io/aws-load-balancer-access-log-enabled": pulumi.String("true"),
"service.beta.kubernetes.io/aws-load-balancer-internal": pulumi.String("false"),
"service.beta.kubernetes.io/aws-load-balancer-name": pulumi.String("traefik"),
"service.beta.kubernetes.io/aws-load-balancer-nlb-target-type": pulumi.String("ip"),
"service.beta.kubernetes.io/aws-load-balancer-scheme": pulumi.String("internet-facing"),
"service.beta.kubernetes.io/aws-load-balancer-type": pulumi.String("external"),
},
"spec": pulumi.StringMap{
"externalTrafficPolicy": pulumi.String("Cluster"),
},
},
},
Version: pulumi.String("~> 10.3.2"),
}, pulumi.Parent(cluster), pulumi.Provider(k8sProvider))
if err != nil {
return err
}
And receiving the following error when running pulumi up -d -v 6
:
Previewing update (staging)
View Live: https://app.pulumi.com/gf3/ops/staging/previews/XXX
Type Name Plan Info
pulumi:pulumi:Stack ops-staging 25 debugs
├─ aws:eks:Cluster Arowana-staging
+ │ └─ pulumi:providers:kubernetes k8s-provider create
└─ kubernetes:helm.sh/v3:Release traefik 1 error
Diagnostics:
kubernetes:helm.sh/v3:Release (traefik):
error: mkdir : no such file or directory
pulumi:pulumi:Stack (ops-staging):
debug: AWS Auth provider used: "SharedCredentialsProvider"
debug: AWS Auth provider used: "SharedCredentialsProvider"
debug: Trying to get account information via iam:GetUser
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
debug: Truncating attribute path of 0 diagnostics for TypeSet
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Manage Helm Releases - Flux CD
To be able to release a Helm chart, the source that contains the chart ... They can be declared by creating a HelmRepository...
Read more >GitOps with Flux and Helm Operator | by Grig Gheorghiu
Helm Operator is a CRD that knows how to interpret objects of type HelmRelease . It basically runs helm upgrade for you inside...
Read more >Helm chart generated yaml is invalid - (Kustomize parse errors)
However, kustomize command fails to parse yaml generated by helm command. ... Helm chart should always generate a clean and valid yaml file....
Read more >Troubleshoot Bitnami Helm chart issues
Credential errors while upgrading chart releases ... Relying on Helm to generate random credentials is the root of many issues when dealing ...
Read more >Setting up Argo CD with Helm - Arthur Koziel
The version number shows what I've used for this tutorial: A Kubernetes cluster (1.23); kubectl (1.23.5); Helm (3.8.1); A public git repository ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@gf3 @viveklak I was running into the exact same issue (i9 MacOS) and managed to solve it by setting the
PULUMI_K8s_HELM_REPOSITORY_CACHE
env to a temporary directory.It appears that this line returns an empty string in my environment, causing the
mkdir
executed by Helm to fail.Thanks for following up so quickly! Could you send me the logs post upgrade? That would really help. Interestingly I am not able to reproduce this locally (i7 macos) but I can’t see why the change in arch would matter.