You may at times get an error saying that an action is forbidden. This may or may not be intentional. RBAC is complicated. Please contact Hebe with the full message.
So something's gone wrong and your Deployment doesn't seem to be rolling out properly.
First, you can check the status of the Pods with:
Name | Ready | Status | Restarts | Age |
hello-node-5776cf4bcf-4sjrt | 0/1 | CrashLoopBackOff | 0 | 312s |
hello-node-7694cbfdd4-zfrms | 1/1 | Running | 0 | 4d |
You can see if something is going wrong from the Status
column. Your newly deployed pod (distinguished by being the youngest) has run into a problem.
The Status
isn't always intuitive, so for more detail check for the reasons by looking at the output of:
Type | Reason | Age | From | Message |
... | ||||
Warning | BackOff | 92s | kubelet | Back-off restarting failed container |
This is often super helpful, but sometimes you need more detail about what's going on in the Pod itself. In this case, use:
If you realize there's a problem with the most recent rollout, you can go back to the previous one with a quick:
To stream the Pod logs to standard output:
This'll give you the normal logs for a single Pod. For prettier and more complicated things, I recommend stern.
To exec
into the running container and look around: