# Robot for kubernetes

**URL:** <https://forum.robotframework.org/t/robot-for-kubernetes/4862>\
**Category:** RobotFramework-Dev\
**Created:** [24 October 2022 12:15 UTC](https://forum.robotframework.org/t/robot-for-kubernetes/4862 "2022-10-24T12:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yebubu](https://avatars.discourse-cdn.com/v4/letter/y/e79b87/32.png) [@yebubu](https://forum.robotframework.org/u/yebubu)\
**Post date:** [24 October 2022 12:15 UTC](https://forum.robotframework.org/t/robot-for-kubernetes/4862/1 "2022-10-24T12:15:36Z")

</div>

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

```python
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

```
