How to execute command in a pod (kubernetes) using API?

前端 未结 3 1575
囚心锁ツ
囚心锁ツ 2021-01-17 20:01

I\'m trying to execute command in a contianer (in a Kubernetes POD on GKE with kubernetes 1.1.2).

Reading documentation I understood that I can use GET or POST quer

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 20:42

    You can using a websocket client to exec into a pod, a quick demo.

    javascript code shows how to connect to kubernetes:

    
    

    you can test it in other language.

提交回复
热议问题