I am trying to get the POST and GET requests working (via Postman) but this is what I'm getting,
GET Request
curl -X GET http://localhost:8080/api/v1/namespaces/default/pods/mypod/exec
GET Response
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {
},
"code": 404
}
POST Request
curl -X POST 'http://localhost:8080/api/v1/namespaces/default/pods/mypod/exec?command=ls&container=my-container&stderr=true&stdout=true'
POST Response
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "Upgrade request required",
"reason": "BadRequest",
"code": 400
}
Any idea on how to get these requests working? What parameters need to be changed?
Thanks