<p>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.</p>
<p><code>Special execution command ${cluster_name} kubectl exec -it pod -c container ${cluster_name} -- /bin/bash</code>
then in the bash i want to also run this
<code>stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints kubernetes status</code>
i want to be able to achieve something like this in robot. be able to do something similar to ls in the pod</p>
<pre><code>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
</code></pre>

<p>You don't need to open a bash in the container first. You can run the <code>stolonctl</code> command directly:</p>
<pre><code>$ kubectl exec -it pod -c container ${cluster_name} -- stolonctl --cluster-name [cluster_name] --store-backend [store_backend] --store-endpoints kubernetes status
</code></pre>
