This message was deleted.
# kubernetes
s
This message was deleted.
b
if I'm understanding correctly, you'll have to remove the offending resource from the state using
pulumi state delete
we do have open issues about better handling of this which I'll try dig out
👍 1
r
I fixed it by manually delete the k8s resources using kubectl delete, followed by "pulumi refresh" and "pulumi up". I will try "pulumi state delete" the next time something similar happens.
b
awesome, by deleting the resources in the cluster and doing
pulumi refresh
you achieved a very similar result! glad it got sorted
r
Thanks @billowy-army-68599. BTW, is there a way to specify default k8s cluster in the Pulumi.xxx.yaml configuration file much like we do with aws:profile?
b
yep! you can set these globally with
pulumi config set kubernetes:xxx
https://www.pulumi.com/docs/reference/pkg/kubernetes/provider/#inputs
r
Great, thanks!
b
I also think you may have been able to do this with “delete before replace” for this particular resource, and then remove that later.
👍 1