Is there a way to run a command in a pod deployed ...
# kubernetes
s
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
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
that still doesn't provide a way of executing a command in an existing pod.
b
s
ideally i'd like to replicate
kubectl exec
b
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
i was hoping for something that called the actual kuberntes exec api instead of shelling out to a host command