Monday, July 18, 2022

Troubleshooting k8s

New command learned today, while a Gitea deployment was stalled in the "ContainerCreating" step. Short version: the following is valuable.

kubectl get events --all-namespaces  --sort-by='.metadata.creationTimestamp'

It's also worthwhile to note that the output from the above is different from the output of:

kubectl get events -A

It turned out that the permissions for a volume were not correct and the PVC mount was timing out.