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

quiet-state-42882

08/06/2021, 11:55 PM
Is it possible to save the kubeconfig to a file when running pulumi up?
b

bored-table-20691

08/07/2021, 12:37 AM
I would typically do this by either getting the kubeconfig from the exported values, either via the CLI or via the Automation API (i.e. running the stack programmatically and then being able to access the exported values). I guess you could write out it in an
apply
block but that seems generally ill-advised
w

worried-city-86458

08/07/2021, 4:36 AM
Yeah I just assign to an output and later read it using the cli and write a kubeconfig file for use by kubectl or k9s
7 Views