This is a little old, but you can also take a look at our client python, 
specifically this 
example: 
https://github.com/kubernetes-incubator/client-python/blob/master/examples/exec.py

On Tuesday, February 28, 2017 at 1:30:09 AM UTC-8, Robinly wrote:
>
> I want to execute command in a container using k8s API, don't use any 
> libraries or tools.
>
> Example:
> curl -XPOST "
> http://172.25.255.22:8080/api/v1/namespaces/default/pods/redis-master-1qpyf/exec?commond=ls&container=master&container=master&stderr=true&stdout=true
> "
> {
>   "kind": "Status",
>   "apiVersion": "v1",
>   "metadata": {},
>   "status": "Failure",
>   "message": "Upgrade request required",
>   "reason": "BadRequest",
>   "code": 400
> }
>
> there is a error. 
>
> The /api/v1/proxy should I use? what should I do?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to