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

square-car-84996

04/20/2022, 1:47 AM
Is there a way to run a command in a pod deployed via a HelmRelease? A vendor's software we use only supports initial configuration through running their CLI inside the freshly deployed pod. Otherwise we have to man-in-the-loop do the initial user configuration by hand... which means pulumi orchestrate the remaining configuration of the software.
b

bitter-eve-53295

04/20/2022, 12:44 PM
Have you looked into the pulumi k8s operator? I just learned about it, looks promising, might be what you're looking for?? https://www.pulumi.com/docs/guides/continuous-delivery/pulumi-kubernetes-operator/
s

square-car-84996

04/20/2022, 12:48 PM
that still doesn't provide a way of executing a command in an existing pod.
b

bitter-eve-53295

04/20/2022, 12:55 PM
s

square-car-84996

04/20/2022, 1:03 PM
ideally i'd like to replicate
kubectl exec
b

bored-table-20691

04/20/2022, 9:47 PM
I believe you can probably use the
Command
package to do this (using
remote.Command
): https://github.com/pulumi/pulumi-command
But my guess is it’s going to feel like there is friction
s

square-car-84996

04/21/2022, 1:52 AM
i was hoping for something that called the actual kuberntes exec api instead of shelling out to a host command
7 Views