5 common k8s failures and how to fix ๐ ๏ธ them
๐ญ) ๐๐บ๐ฎ๐ด๐ฒ-๐ฝ๐๐น๐น ๐ฏ๐ฎ๐ฐ๐ธ ๐ผ๐ณ๐ณ
Check for ๐๐ข๐๐๐ ๐ฅ๐ช๐ก๐ก ๐ฅ๐ค๐ก๐๐๐ฎ,๐ฅ๐๐ง๐ข๐๐จ๐จ๐๐ค๐ฃ ๐ฉ๐ค ๐ฅ๐ช๐ก๐ก ๐๐ง๐ค๐ข ๐ง๐๐ฅ๐ค๐จ๐๐ฉ๐ค๐ง๐ฎ,๐๐ค๐ง๐ง๐๐๐ฉ ๐๐ข๐๐๐ ๐ฃ๐๐ข๐ ๐๐ก๐ค๐ฃ๐ ๐ฌ๐๐ฉ๐ ๐ฉ๐๐.
๐๐จ๐๐๐ช๐ก ๐๐ค๐ข๐ข๐๐ฃ๐๐จ
Kubectl describe po
Kubectl get po
Kubectl apply -f
2) ๐พ๐ง๐๐จ๐-๐๐ค๐ค๐ฅ ๐๐๐๐ ๐ค๐๐
Check for ๐พ๐ค๐ง๐ง๐๐๐ฉ ๐๐ข๐๐๐ ๐ฃ๐๐ข๐ ๐๐ก๐ค๐ฃ๐ ๐ฌ๐๐ฉ๐ ๐ฉ๐๐,๐๐ฃ๐ค๐ช๐๐ ๐ง๐๐จ๐ค๐ช๐ง๐๐ ๐๐ค๐ฃ๐จ๐ฉ๐ง๐๐๐ฃ๐ฉ๐จ,๐ข๐๐จ๐๐ค๐ฃ๐๐๐๐ช๐ง๐๐ฉ๐๐ค๐ฃ ๐ค๐ ๐๐ฃ๐ซ๐๐ง๐ค๐ฃ๐ข๐๐ฃ๐ฉ ๐ซ๐๐ง๐๐๐๐ก๐๐จ,๐๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ ๐๐๐๐ก๐ช๐ง๐ ๐๐๐๐๐ช๐จ๐ ๐ค๐ (๐๐๐๐ก ๐ฉ๐ค ๐๐ช๐๐ก๐ ๐๐๐ง ๐๐๐ก๐๐จ,๐๐จ๐จ๐ช๐๐จ ๐ฌ๐๐๐ก๐ ๐๐ช๐๐ก๐๐๐ฃ๐ ๐๐ค๐๐ ๐๐ง ๐๐ข๐๐๐.
๐๐จ๐๐๐ช๐ก ๐๐ค๐ข๐ข๐๐ฃ๐๐จ
Kubectl describe po
Kubectl logs
Also to check if enough resources are allocated (memory)
3) ๐๐๐๐ก๐ช๐ง๐ ๐ฌ๐๐ฉ๐ ๐๐ญ๐๐ฉ ๐๐ค๐๐ 1
Check for ๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ ๐๐ค๐๐ ๐๐ง๐๐จ๐๐๐จ,๐๐ฃ๐๐ค๐ง๐ง๐๐๐ฉ ๐๐ฃ๐ซ๐๐ง๐ค๐ฃ๐ข๐๐ฃ๐ฉ ๐ซ๐๐ง๐๐๐๐ก๐๐จ,๐๐ฃ๐จ๐ช๐๐๐๐๐๐๐ฃ๐ฉ ๐๐๐ก๐ ๐ฅ๐๐ง๐ข๐๐จ๐จ๐๐ค๐ฃ๐จ.
๐๐จ๐๐๐ช๐ก ๐๐ค๐ข๐ข๐๐ฃ๐๐จ
Kubectl logs
Kubectl get po
Kubectl apply -f
Lookout for any exceptions in logs /missing variables at the code level as well.
4) ๐๐๐๐ก๐ช๐ง๐ ๐ฌ๐๐ฉ๐ ๐๐ญ๐๐ฉ ๐๐ค๐๐125
Check for ๐๐ฃ๐๐ค๐ง๐ง๐๐๐ฉ ๐๐๐ก๐ ๐ฅ๐๐ง๐ข๐๐จ๐จ๐๐ค๐ฃ๐จ,๐๐ญ๐๐๐ฅ๐ฉ๐๐ค๐ฃ๐จ ๐๐ช๐ง๐๐ฃ๐ ๐๐ค๐ค๐ฉ๐๐ฃ๐ ๐ช๐ฅ ๐ค๐ ๐ฅ๐ค๐
๐๐จ๐๐๐ช๐ก ๐๐ค๐ข๐ข๐๐ฃ๐๐จ
Kubectl logs
Kubectl describe po
5) ๐๐ค๐/๐๐ค๐๐ ๐๐ค๐ฉ ๐๐๐๐๐ฎ
Check for ๐๐๐ฉ๐ฌ๐ค๐ง๐ ๐พ๐ค๐ฃ๐ฃ๐๐๐ฉ๐๐ซ๐๐ฉ๐ฎ,๐๐ฃ๐ค๐ช๐๐ ๐ง๐๐จ๐ค๐ช๐ง๐๐ ๐๐ก๐ก๐ค๐๐๐ฉ๐๐ค๐ฃ,๐ช๐ฃ๐๐๐๐ก๐ฉ๐๐ฎ ๐ฅ๐ง๐ค๐๐๐จ๐จ๐๐จ
๐๐จ๐๐๐ช๐ก ๐๐ค๐ข๐ข๐๐ฃ๐๐จ
Kubectl logs
Kubectl get po and checks for its state
Increase system resource usage
Top comments (0)