https://pulumi.com logo
#general
Title
# general
m

mammoth-gold-93338

03/28/2024, 9:26 AM
Hey guys I hope you're doing well. I'm new to Pulumi and I'm trying to migrate from terraform. I have very fundamental question - does pulumi cache anything externally? I have some troubles in following scenario. I have local directory with pulumi, I am logged in locally (pulumi login file://.) From time to time I want to test my deployment from the very beginning, so I delete entire k8s cluster manually via cloud provider website. Then, I basically initialise new pulumi login file://. Then, I call 'pulumi up'. Somehow, sometimes, instead of creating a new k8s cluster, pulumi keeps calling already deleted cluster that results in following error:
Copy code
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://xxx.xxx.k8s.ovh.net/openapi/v2?timeout=32s>": EOF
Which is odd because I don't see any possibility for this value to be persisted anywhere in .pulumi state directory edit: In fact, I moved from cloud to local file://. because I think I experienced similar issues.
e

echoing-dinner-19531

03/28/2024, 10:58 AM
Pulumi caches the state of your infrastructure in state files. logging in with file:// will put them in the local directory under a ".puluim" folder.