How to debug Kubernetes? (Deployments, Services & Ingress)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • 🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
    ▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
    ► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
    ► Located in San Francisco Bay Area, CA (US citizen)
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    ► LinkedIn: / anton-putra
    ► Twitter/X: / antonvputra
    ► GitHub: github.com/antonputra
    ► Email: me@antonputra.com
    ▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
    👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
    👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
    👉 [Playlist] Network Tutorials: • Network Tutorials
    👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
    👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
    👉 [Playlist] Database Tutorials: • Database Tutorials
    ▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
    0:00 Intro
    1:32 Connecting Deployment & Service
    4:28 Connecting Service & Ingress
    7:35 Recap on ports
    8:20 3 Steps to Debug Kubernetes
    8:50 How to Debug Pods?
    10:15 Common Pods errors
    10:31 ImagePullBackOff
    11:35 CrashLoopBackOff
    12:48 RunContainerError
    13:23 Pods in a Pending state
    14:24 Pods in a not Ready state
    14:56 How to Debug Services?
    16:08 How to Debug Ingress?
    18:20 Summary
    ▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
    ► GitHub: github.com/antonputra/tutoria...
    #Kubernetes #K8s #DevOps
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 56

  • @AntonPutra
    @AntonPutra  2 หลายเดือนก่อน +6

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @mechwarrior83
    @mechwarrior83 2 หลายเดือนก่อน +4

    this info is gold! I will be watching this another 100 times

  • @gurudattshanbhag8878
    @gurudattshanbhag8878 วันที่ผ่านมา +1

    Great content! Saviour!

    • @AntonPutra
      @AntonPutra  23 ชั่วโมงที่ผ่านมา

      thank you!

  • @bellakhalmohamed3255
    @bellakhalmohamed3255 หลายเดือนก่อน +1

    Thanks man been working with k8s 3 years but I learned so much

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน +1

      ❤️

  • @Antonio-yy2ec
    @Antonio-yy2ec 2 หลายเดือนก่อน +1

    Great content as always, Anton!!

  • @binarylife1100
    @binarylife1100 15 วันที่ผ่านมา +1

    dope content...senior engineer stuff, Thanks again

    • @AntonPutra
      @AntonPutra  15 วันที่ผ่านมา

      thank you!

  • @israel8707
    @israel8707 2 หลายเดือนก่อน +1

    Excellent video, like always 😊

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      ❤️

  • @loknathsingh1080
    @loknathsingh1080 หลายเดือนก่อน +1

    One of the best quality content present on TH-cam ❤
    Your tutorials are very useful

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      thank you!

  • @maxcoder95
    @maxcoder95 หลายเดือนก่อน +1

    Awesome content. I know most of the content in the video watched this as a refresger, however i did not know about the curl commands and it made my life easier.
    It will be really cool if you can create content about Failover scenarios like cluster failover when region failed or multiple cluster microservices communication. I know it is advanced topic but I think it will be helpful.

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      thanks, i'll see what i can do

  • @sufiyanhabib4431
    @sufiyanhabib4431 หลายเดือนก่อน +1

    Very awesome tutorial!!

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      thank you!

  • @gabecerts4286
    @gabecerts4286 2 หลายเดือนก่อน +2

    Thank you, you are awesome!

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      😊

  • @ziad_m_404
    @ziad_m_404 2 หลายเดือนก่อน +2

    We are waiting for the private ingress nginx video with VPN and the private Rout53 or splitdns ^^
    It would be amazing if we included multiple controllers at the same time.
    Can not thank you enough for your amazing priceless content ^^.

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน +3

      Thanks, but I already have a VPN setup that includes pushing private Route53 hosted zones to your laptop. The only missing part is ingress, which is converted from public to private by using a single annotation.
      VPN - github.com/antonputra/tutorials/tree/main/lessons/084
      Private ingress - github.com/antonputra/tutorials/blob/108c009be032f53c1cf9139b808da32e826e7783/lessons/149/terraform/11-internal-ingress-nginx.tf#L13

    • @ziad_m_404
      @ziad_m_404 2 หลายเดือนก่อน

      @@AntonPutra thanks a TON ^^

  • @farzadmf
    @farzadmf 2 หลายเดือนก่อน +2

    Very nice video, thank you!

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน +1

      ❤️

  • @2ndx
    @2ndx 25 วันที่ผ่านมา +1

    Thanks!🔥

  • @GabrielPozo
    @GabrielPozo 2 หลายเดือนก่อน +1

    Thank you!!!! 👏👏👏

  • @neelojp8460
    @neelojp8460 2 หลายเดือนก่อน +2

    thank you so much @AntonPutra, you explain that in short and very good way! thanks for your time :-) any videos about how we can install Ingress-Nginx :-)) that would be also good

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน +1

      no problem, here is terraform but you can easily convert it to plain commands, don't forget values - github.com/antonputra/tutorials/blob/108c009be032f53c1cf9139b808da32e826e7783/lessons/177/terraform/7-nginx-ingress.tf#L18-L28
      Another video coming soon in 2-3 days, on installation and debugging ingress with tls and cert-manager.

  • @kalathti
    @kalathti 2 หลายเดือนก่อน +2

    Thank you so much 🙏

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      ❤️

  • @harishdevarapalli1537
    @harishdevarapalli1537 2 หลายเดือนก่อน +1

    Thanks sir.!!!

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      🙏

  • @gazizovemil
    @gazizovemil หลายเดือนก่อน +1

    Awesome tutorial. Could you please tell about secrets and configs?

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      Thank you! Sure soon, i was planning a video k8s secrets vs configmap (best practises)

  • @user-pm6qt6ee7p
    @user-pm6qt6ee7p 2 หลายเดือนก่อน +1

    Thank you

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      my pleasure!

  • @EdMane
    @EdMane 2 หลายเดือนก่อน +1

    omg this is pure gold! thank you so much!
    I would like to ask a few question if I may.
    I read topologySpreadConstraints is used so our Pods can be spread between AZs evenly. Do I have to declare it inside the kind: Deployment? and If I'm using Karpenter, Does it will deploy a new node on a diferent AZ if the deployment wants another AZ? or does the nodes must exist in all AZs before?
    thanks!!

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน +1

      Thanks! Usually, in the cloud when you create Kubernetes, each node will get an additional label with the availability zone, and you can use node affinity along with pod anti-affinity to spread them between AZs.
      - To find values use "kubectl describe node "
      - For affinity - th-cam.com/video/rX4v_L0k4Hc/w-d-xo.html

  • @diegonayalazo
    @diegonayalazo หลายเดือนก่อน

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      thanks :)

  • @user-vc6zm9en4j
    @user-vc6zm9en4j หลายเดือนก่อน

    Hey @AntonPutra, I see that you're using minikube on mac, but afaik ingress, and ingress-dns addons are currently only supported on Linux as docker is not running in the same manner on mac m series as linux. Did you use a qemu driver or something else entirely?

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน

      No, it’s standard minikube, I didn’t install anything extra.

  • @chiragcloud
    @chiragcloud หลายเดือนก่อน +1

    Excellent explanation and thanks for sharing the valuable info, Can you share how you are creating this slides or which platform your using. its very attractive and I would like to use this method for my customer to explain them the flows and architectures.

    • @AntonPutra
      @AntonPutra  หลายเดือนก่อน +1

      thanks! well, i use adobe suite and spend a lot of time animating...

    • @chiragcloud
      @chiragcloud หลายเดือนก่อน

      @@AntonPutra Great. thanks for sharing and kudos for your efforts.

  • @levu74
    @levu74 2 หลายเดือนก่อน +1

    Great video! +1 like +1 subcribe

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      cool, thanks!

  • @ShourovRoy-pk5zm
    @ShourovRoy-pk5zm 2 หลายเดือนก่อน +1

    Can you please make a video on mongodb replicaset with authentication and external access from k8s.
    Please 🙏

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      Ok, i think it's time to refresh the previous tutorial

    • @ShourovRoy-pk5zm
      @ShourovRoy-pk5zm 2 หลายเดือนก่อน

      ​@@AntonPutra thank you for your kind reply. The mongodb auth us working without replicaset of mongodb and replicaset is working without auth.
      As transaction only supports when mongodb has the following command "--replSet"
      Didn't get any solution anywhere. Everywhere is helm. But need to learn it using k8s only. Please.

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      @@ShourovRoy-pk5zm there should be community k8s operator, have you tried thaty?

    • @ShourovRoy-pk5zm
      @ShourovRoy-pk5zm 2 หลายเดือนก่อน

      @@AntonPutra they are using helm. Can't we achieve it using raw k8s ymls.?

    • @AntonPutra
      @AntonPutra  2 หลายเดือนก่อน

      @@ShourovRoy-pk5zm you can, but it'll take me while to create tutorial