Readiness & Liveness Probes | Robust and Resilient apps in Kubernetes | Tech Primers

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 13

  • @mahendraraghuwanshi5483
    @mahendraraghuwanshi5483 3 года назад +1

    Thanks man , that's the best explanation 👍

  • @yotubna
    @yotubna 4 года назад +3

    WRONG: 3:01 Minutes audio => "...if the application is not responsive, liveness probe will be kicked in and only the application i.e. container will be restarted, the Pod won't get recreated. But in terms of readiness, if readiness fails, the Pod will be recreated"
    CORRECT: (1) If readinessProbe fails, the EP controller removes Pod'S IP address from EP of all services that match the Pod. (Does not restart Pod as this video explains). So readinessProbe is a mechanism to get traffic only when the application is ready. If not ready, do not serve traffic.
    (2) If livenessProbe fails, the kubelet kills the Container, and the Container is subjected to Pod restartPolicy (applied to all containers of Pod) is set to Always or OnFailure.
    Refer:
    kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
    kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
    kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy

  • @VanNguyenquyetnguyen
    @VanNguyenquyetnguyen 3 года назад

    verry clear Thanks,

  • @isandeeprathore
    @isandeeprathore 5 лет назад

    Could you please upload your Bangalore session on kubernates hands on? Thanks for everything you do for us.

    • @TechPrimers
      @TechPrimers  5 лет назад

      The content is exactly the same which you see here. The meetups were in-person events and I just was speaking in one of the topic :)

  • @amitpadgaonkar8830
    @amitpadgaonkar8830 5 лет назад +1

    Why is sf5hf container not terminating after 2 minutes? Shouldn't liveness probe kick in and terminate it?

    • @TechPrimers
      @TechPrimers  5 лет назад

      Amit Padgaonkar it waits until the failureThreshold is reached. By default its 3

  • @asahoo100
    @asahoo100 5 лет назад

    Hi Ajay..thnx for the video . 1 qq any idea how to set the max threshold for pod restart incase liveness keep failing?

    • @TechPrimers
      @TechPrimers  5 лет назад +1

      You can leverage "failureThreshold" config applied on your probes. Here is a sample from k8s docs - kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes

  • @shaikzoheb3430
    @shaikzoheb3430 3 года назад

    Can we run pod without Liveliness & readiness probes. As application startup is taking 5 mins and due to Liveliness pod is getting restarted all the times

  • @tuberajarajan
    @tuberajarajan 5 лет назад +1

    assume ,i hav 3 enquiry rest service and one pub-sub service for transaction, and one listener which execute batch.what would be my deployment strategy for production?pls advice...

    • @TechPrimers
      @TechPrimers  5 лет назад +1

      are these all separate microservices? or single monolithic service?

    • @tuberajarajan
      @tuberajarajan 5 лет назад

      @@TechPrimers only 3 enquiry services are ms. rest monolithic,listener should be a single instance.