Kubernetes 101 : Running our First pod
To be able to reach our pod from outside the node it "lives" on, we need to forward the requests to a port on the local machine - port 8888 -, as you can see in the above diagram:
We check the connection to the nginx pod using the below command:
We can also check if our pod is running using the below command:
Some of the error messages we might get after running our pod are as follows:
- ErrImagePull : this happens when kubernetes can't download the image. The cause could be a misspelled image name or when an image's download threshold has been reached for example.
- ImagePullBackoff : this happens when kubernetes can't download the image. The cause could be a misspelled image name or when an image's download threshold has been reached for example.
- ContainerCreating : this means that Kubernetes is still downloading or starting the image.
Comments