kubedirector icon indicating copy to clipboard operation
kubedirector copied to clipboard

Ability to launch generic executable/configuration scripts for KubeDirectorCluster pods

Open kmathur2 opened this issue 3 years ago • 2 comments

Need a mechanism to execute scripts for running pods at the role level, this can be really handy for application developers to install/configure/reconfigure packages.

kmathur2 avatar Jun 18 '21 21:06 kmathur2

Are you thinking of ways to do things that would normally be done by "kubectl exec"? If so, is this to make it easier to do in some way, or to work around exec-privileges issues?

joel-bluedata avatar Jun 18 '21 22:06 joel-bluedata

Yes, this is to avoid series of identical kubectl execs for a kdcluster with a large number of pods requiring package install, etc. Also for bookkeeping/logging of what was done inside pods post deployments.

But you raised a good point if the kubectl exec is blocked for the namespace should we allow this? The intent is definitely not to bypass the RBACs but more of a convenience feature for kdclusters. We should explore if there are ways to implement this without breaking access control.

kmathur2 avatar Jun 18 '21 22:06 kmathur2