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. Anyone can help ?
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
.