Devspace/Skaffold workflows with pulumi. <https:/...
# kubernetes
c
Devspace/Skaffold workflows with pulumi. https://github.com/pulumi/pulumi-kubernetes/issues/1620 Anyone using a dev workflow tool for easier reloading locally of Go app changes, while still leveraging pulumi? The automatic port forwarding and such seem great and possible to replace my clunky docker compose setup now since I need more external services from cluster anyway.
f
@chilly-plastic-75584 we do this with tilt
Basically for local dev we deploy our stack with pulumi local stack. Then in tilt I just use a
Copy code
kubectl set image deployment/x
works really well
c
Do you a blog post on this? I was thinking of skaffold as it supports custom build commands so pulumi could work. I'm not sure what pulumi local command is or you meant you just have a stack config special for local work?
f
Was thinking I should because it took a bit to get working 😆 So when I say local, we use a local stack (ie not remote) to store the state. So I have a make file in the root and the one command is like this
Copy code
PULUMI_CONFIG_PASSPHRASE= PULUMI_BACKEND_URL="file://$(current_dir)/.fynbos/" \
	pulumi up -y -s local -C ./infra/clusters/local/
c
Cool. I'm probably going to have to shift from local to doing something hybrid with only database and such being local but mixing in services, and being able to run pulumi as needed for certain parts would be great. I wrap up all my pulumi tasks in mage so it would be easy to adapt what you did (if interested)