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

quaint-book-39362

07/20/2022, 1:39 AM
what would be the recommended way to run a kubectl command during a pulumi up?
n

narrow-translator-93508

07/21/2022, 12:30 PM
This is what I do
Copy code
cmd, err := local.NewCommand(
	ctx, "cert-manager", &local.CommandArgs{
		Create: pulumi.Sprintf("kubectl apply -f %s", cfg.Require("manifest")),
		Delete: pulumi.Sprintf("kubectl delete -f %s", cfg.Require("manifest")),
	},
)
👍 1
5 Views