https://pulumi.com logo
#kubernetes
Title
# kubernetes
t

thankful-fall-44419

02/09/2024, 3:51 PM
I get an
error: rpc error: code = Unknown desc = failed to parse kubeconfig: yaml: line 4: mapping values are not allowed in this context
i

important-market-91978

02/10/2024, 3:51 PM
I had similar error with c# & aks, the problem I had was with the way I parse kubeconfig, it expects a json object and I was passing the config file as string, took me sometime to resolve it correctly though
t

thankful-fall-44419

02/12/2024, 8:40 PM
Moved ahead.
I can now create the K8 Provider. I can see it on the Pulumi Stack web page, but I am now facing an
error: rpc error: code = Unknown desc = failed to parse kubeconfig: illegal base64 data at input byte 8
whilst trying to deploy an Helm Chart.
i

important-market-91978

02/12/2024, 11:00 PM
Yes, you would need to decode the kubeconfig, so the object shall be decoded, pesudo code would be Var encodedkubeconfig=creds.kubeconfig[0]. value Var decoded= Encoding.GetString(Convert.FromBase64(encodedkubeconfig))
3 Views