On Tuesday, August 8, 2017 at 6:56:33 PM UTC+8, Mehdy Bohlool wrote:
> 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?

I think the API requires the client to upgrade the connection to WebSocket

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