Hi everyone, I am able to exec into a pod , and in that pod i will also like to run a stolonctl command at the same time into the pod i just exec into. Here is an example of what i will like to achieve. I tried using the first command first and then tried to see if i write the second command if it will work based on the first but it didnt.
Special execution command ${cluster_name} kubectl exec -it pod -c container ${cluster_name} -- /bin/bash
then in the bash i want to also run this
stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints kubernetes status
i want to be able to achieve something like this in robot. be able to do something similar to ls in the pod
controlplane $ kubectl run --image=nginx web --restart=Never
pod/web created
controlplane $ kubectl get po
NAME READY STATUS RESTARTS AGE
web 0/1 ContainerCreating 0 4s
controlplane $ kubectl exec -it web -- /bin/bash
root@web:/# ls
bin dev docker-entrypoint.sh home lib64 mnt proc run srv tmp var
boot docker-entrypoint.d etc lib media opt root sbin sys usr