DEV Community

Cover image for Kubernetes errors
Ibrahim S
Ibrahim S

Posted on • Edited on

Kubernetes errors

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

More errors Kubernetes Errors With Solution

Top comments (0)