Skip to content

Latest commit

 

History

History
122 lines (74 loc) · 6.81 KB

File metadata and controls

122 lines (74 loc) · 6.81 KB

🧩🧩 Guide to solve basic kubernetes problems 🧩🧩

🌼Kubernetes is a container orchestration tool ,and while working with it errors are part of it ,but it would be time saving if we knew where to debug & fix the issue, as for a beginner things might get overwhelming.

Static Badge

Static Badge

Static Badge

🔎 What is Kubernetes ?

Kuberenetes which is also widely refered to as k8s is open-source container orchestration technology used for managing your applications & automating deployments of software . Initially it was founded & owned by Google kbd>, but now is maintained by Cloud Native Computing Foundation

You can read more about it it here Kubernetes Overview

♻️ Why Kubernetes debugging is helpful ?

When deploying application to kubernetes clusters , which is itself a complex system has multiple components involved , at times during

Static Badge , Static Badge , Static Badge you may face common issues listed below , debugging provides essential information to track down the issue & Static Badge



🔌Pre-requisites

    🟠 Kubernetes Cluster

    🟠 Kubectl



Here are 5 common k8s failures and how to fix them 🛠️

Screenshot





    🏷𝟏) 𝐈𝐦𝐚𝐠𝐞-𝐩𝐮𝐥𝐥 𝐛𝐚𝐜𝐤 𝐨𝐟𝐟

    🏷2) 𝐂𝐫𝐚𝐬𝐡-𝐥𝐨𝐨𝐩 𝐛𝐚𝐜𝐤 𝐨𝐟𝐟

    🏷3) 𝐅𝐚𝐢𝐥𝐮𝐫𝐞 𝐰𝐢𝐭𝐡 𝐄𝐱𝐢𝐭 𝐜𝐨𝐝𝐞 :𝟏

    🏷4) 𝐅𝐚𝐢𝐥𝐮𝐫𝐞 𝐰𝐢𝐭𝐡 𝐄𝐱𝐢𝐭 𝐜𝐨𝐝𝐞 :𝟏𝟐𝟓

    🏷5) 𝐏𝐨𝐝 /𝐍𝐨𝐝𝐞 𝐧𝐨𝐭 𝐫𝐞𝐚𝐝𝐲

🌵 1) 𝐈𝐦𝐚𝐠𝐞-𝐩𝐮𝐥𝐥 𝐛𝐚𝐜𝐤 𝐨𝐟𝐟

Static Badge

~ Check for 𝙄𝙢𝙖𝙜𝙚 𝙥𝙪𝙡𝙡 𝙥𝙤𝙡𝙞𝙘𝙮 , 𝙥𝙚𝙧𝙢𝙞𝙨𝙨𝙞𝙤𝙣 𝙩𝙤 𝙥𝙪𝙡𝙡 𝙛𝙧𝙤𝙢 𝙧𝙚𝙥𝙤𝙨𝙞𝙩𝙤𝙧𝙮,𝙘𝙤𝙧𝙧𝙚𝙘𝙩 𝙞𝙢𝙖𝙜𝙚 𝙣𝙖𝙢𝙚 𝙖𝙡𝙤𝙣𝙜 𝙬𝙞𝙩𝙝 𝙩𝙖𝙜. Useful Commands 🔮
    Kubectl describe po podname
    Kubectl get po podname
    Kubectl apply -f deployment File name


🌵2) 𝐂𝐫𝐚𝐬𝐡-𝐥𝐨𝐨𝐩 𝐛𝐚𝐜𝐤 𝐨𝐟𝐟

Static Badge

~ Check for 𝘾𝙤𝙧𝙧𝙚𝙘𝙩 𝙞𝙢𝙖𝙜𝙚 𝙣𝙖𝙢𝙚 𝙖𝙡𝙤𝙣𝙜 𝙬𝙞𝙩𝙝 𝙩𝙖𝙜 , 𝙚𝙣𝙤𝙪𝙜𝙝 𝙧𝙚𝙨𝙤𝙪𝙧𝙘𝙚 𝙘𝙤𝙣𝙨𝙩𝙧𝙖𝙞𝙣𝙩𝙨,𝙢𝙞𝙨𝙘𝙤𝙣𝙛𝙞𝙜𝙪𝙧𝙖𝙩𝙞𝙤𝙣 𝙤𝙛 𝙚𝙣𝙫𝙞𝙧𝙤𝙣𝙢𝙚𝙣𝙩 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚𝙨 , 𝙖𝙥𝙥𝙡𝙞𝙘𝙖𝙩𝙞𝙤𝙣 𝙛𝙖𝙞𝙡𝙪𝙧𝙚 𝙗𝙚𝙘𝙖𝙪𝙨𝙚 𝙤𝙛 ( 𝙛𝙖𝙞𝙡 𝙩𝙤 𝙗𝙪𝙞𝙡𝙙 𝙟𝙖𝙧 𝙛𝙞𝙡𝙚𝙨 , 𝙞𝙨𝙨𝙪𝙚𝙨 𝙬𝙝𝙞𝙡𝙚 𝙗𝙪𝙞𝙡𝙙𝙞𝙣𝙜 𝙙𝙤𝙘𝙠𝙚𝙧 𝙞𝙢𝙖𝙜𝙚. Useful Commands 🔮
    Kubectl describe po podname
    Kubectl logs logs podname
    Also to check if enough resources are allocated (memory)


🌵 3) 𝐅𝐚𝐢𝐥𝐮𝐫𝐞 𝐰𝐢𝐭𝐡 𝐄𝐱𝐢𝐭 𝐜𝐨𝐝𝐞 :𝟏

Static Badge

~ Check for 𝘼𝙥𝙥𝙡𝙞𝙘𝙖𝙩𝙞𝙤𝙣 𝙘𝙤𝙙𝙚 𝙘𝙧𝙖𝙨𝙝𝙚𝙨 , 𝙞𝙣𝙘𝙤𝙧𝙧𝙚𝙘𝙩 𝙚𝙣𝙫𝙞𝙧𝙤𝙣𝙢𝙚𝙣𝙩 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚𝙨, 𝙞𝙣𝙨𝙪𝙛𝙛𝙞𝙘𝙞𝙚𝙣𝙩 𝙛𝙞𝙡𝙚 𝙥𝙚𝙧𝙢𝙞𝙨𝙨𝙞𝙤𝙣𝙨. Useful Commands 🔮
    Kubectl logs podname
    Kubectl get po podname
    Kubectl apply -f deployment podname
    Lookout for any exceptions in logs /missing variables at code level as well .


🌵 4) 𝐅𝐚𝐢𝐥𝐮𝐫𝐞 𝐰𝐢𝐭𝐡 𝐄𝐱𝐢𝐭 𝐜𝐨𝐝𝐞 :𝟏𝟐𝟓

Static Badge

~ Check for 𝙞𝙣𝙘𝙤𝙧𝙧𝙚𝙘𝙩 𝙛𝙞𝙡𝙚 𝙥𝙚𝙧𝙢𝙞𝙨𝙨𝙞𝙤𝙣𝙨 , 𝙚𝙭𝙘𝙚𝙥𝙩𝙞𝙤𝙣𝙨 𝙙𝙪𝙧𝙞𝙣𝙜 𝙗𝙤𝙤𝙩𝙞𝙣𝙜 𝙪𝙥 𝙤𝙛 𝙥𝙤𝙙 Useful Commands 🔮
    Kubectl logs podname
    Kubectl describe podname


🌵5) 𝐏𝐨𝐝/𝐍𝐨𝐝𝐞 𝐧𝐨𝐭 𝐫𝐞𝐚𝐝𝐲

Static Badge

~ Check for 𝙉𝙚𝙩𝙬𝙤𝙧𝙠 𝘾𝙤𝙣𝙣𝙚𝙘𝙩𝙞𝙫𝙞𝙩𝙮 , 𝙚𝙣𝙤𝙪𝙜𝙝 𝙧𝙚𝙨𝙤𝙪𝙧𝙘𝙚 𝙖𝙡𝙡𝙤𝙘𝙖𝙩𝙞𝙤𝙣 ,𝙪𝙣𝙝𝙚𝙖𝙡𝙩𝙝𝙮 𝙥𝙧𝙤𝙘𝙚𝙨𝙨𝙚𝙨 Useful Commands 🔮
    Kubectl logs podname
    Kubectl get po podname and check for its state
    Increase system resource usage



Wrapping up

If you have came reading this far I really appreciate it. If you found it helpful, please share it so you can help another developer improve their projects.

You can connect with me :