-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubeconfig does not apply #1353
Comments
Hi @matterai, I'm not 100% sure of all the interactions going on here, but at first glance I'm wondering if setting
|
No, setting I’m really not sure what exactly the gcloud container clusters get-credentials NAME \
--zone $ZONE \
--project $PROJECT_ID The error makes it seem like
So, I tried running ~ kubernetes:core/v1:Namespace monitoring-namespace refreshing (0s) error: failed to read resource state due to unreachable cluster. If the cluster was deleted, you can remove this resource from Pulumi state by rerunning the operation with the PULUMI_K8S_DELETE_UNREACHABLE environment variable set to "true" At this point, I have no idea how this is supposed to work. |
@matterai would you be able to let us know the following:
Note: the Kubernetes provider is able to parse kubeconfigs formatted as YAML. You do not need to convert to json. The reason for |
Hey! I am sorry for a delay.
|
Hi!
There is a Github Action with such step:
According the doc it setting
$KUBECONFIG
env variable.Then I use
pulumi config
to set up variables andpulumi up
to create a namespace in my GKE cluster:Pulumi stack running on
pulumi up
:According the doc it can source config from
KUBECONFIG
.But when I run my action, I got an error:
What am I doing wrong?
I also tried to configure
kubernetes:config:kubeconfig
and pass kubeconfig JSON to it directly, but nothing helps.The text was updated successfully, but these errors were encountered: