Error sometimes happens in calling kubernetes api

5/30/2018

Recently, I need to call k8s api(http://x.x.x.x:8001/api/v1/namespaces/pods) to create docker container, k8s's api will raise error message and part of container will start failed when I call api in parallel, for example, create 8 or more containers at the same time.enter image description here Anyone can help ?

-- zulv
docker
kubernetes

1 Answer

5/31/2018

This is not an error message from the Kubernetes API. It just provides the status of your pod's containers and this container's main processes has been terminated with exit code 1.

You can check the failed container's logs via kubectl log $PODNAME -c $CONTAINERNAME.

-- embik
Source: StackOverflow