[ Kube 11.1 ] Deleting Jobs in Kubernetes after completion using feature gate TTLAfterFinished

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 33

  • @Jadeish01
    @Jadeish01 3 роки тому +1

    Your videos are always super helpful, thank you!

  • @sourabh729
    @sourabh729 5 років тому +2

    Best Play list!!!

  • @tonyc2227
    @tonyc2227 8 місяців тому

    How to enable this on eks ?

  • @swetharacharla2402
    @swetharacharla2402 4 роки тому +1

    Job deletion automatically not happening in AKS cluster.Any suggestions!!

    • @justmeandopensource
      @justmeandopensource  4 роки тому +1

      Hi Swetha, thanks for watching. I haven't tried this on AKS as I don't have access to Azure cloud. But it should work no matter where your Kubernetes is. One of the step I did in this video which is essential is to enable the feature gate in the control plane. Given, you are using managed kubernetes with AKS, I am not sure how you would enable that feature gate. Can you confirm if that feature gate is enabled? Otherwise job deletion won't happen. Cheers.

    • @harishbali6392
      @harishbali6392 3 роки тому

      I too facing same issue, is there any way to enable feature gate in aks cluster

  • @hanumaadabala9541
    @hanumaadabala9541 2 роки тому

    Thanks for this video. latest version of kubernetes no need to enable feature gates

    • @justmeandopensource
      @justmeandopensource  2 роки тому +1

      Hi, thanks for watching and sharing this information. This was done 3 years ago and I haven't tested in recent versions of k8s. I will take your word for it. Cheers.

  • @praveenkumar-uc3tu
    @praveenkumar-uc3tu 5 років тому +2

    @venkat, thanks for this video. Could you please post some videos like CRD and operator with k8s. Also please include some video about CRI-O with k8s.

    • @justmeandopensource
      @justmeandopensource  5 років тому +2

      HI Praveen, thanks for watching. I started looking into CRDs but never got around to something that I can explain. I am working on it and will try to do a video. Cheers.

  • @vrush151
    @vrush151 4 роки тому +1

    Excellent videos. Thanks a lot.

    • @vrush151
      @vrush151 4 роки тому +1

      After changing the TTLAfterFinished=true. Te cluster is taking long time to come up. Is that normal.

    • @justmeandopensource
      @justmeandopensource  4 роки тому +1

      Hi Amartya, thanks for watching. That should be fine as thats an one time operation. Is that happening on every start? Then it needs a deeper look. Cheers.

  • @Sarang_Tagad
    @Sarang_Tagad 3 роки тому

    Hi,
    I have more than 800 jobs that are finished and I need to delete them all. But I cant add this TTLAfterFinished to every yaml file. Can you please suggest on this, how can I pass this parameter at once to all jobs

    • @justmeandopensource
      @justmeandopensource  3 роки тому

      Hi, you can do it manually.
      kubectl delete jobs --all
      or if you have some form of labels attached to them
      kubectl delete jobs -l app=nginx

  • @liyaodong2
    @liyaodong2 4 роки тому +1

    Hi, thanks for the tutorial. Do you have experience in configuring this using docker-for-mac? Is minikube the only option for mac developers to enable feature gate?

    • @justmeandopensource
      @justmeandopensource  4 роки тому +1

      Hi, thanks for watching. I don't use Mac. But minikube is not just the only option. You can set up your own kubernetes cluster using Vagrant and VirtualBox and are free to play with control plane settings. Cheers.

  • @mustufamithaiwala7205
    @mustufamithaiwala7205 5 років тому +2

    @venkat, Nice one, too helpfull

    • @justmeandopensource
      @justmeandopensource  5 років тому +2

      Thanks Mustufa for watching. It was requested by one of the viewer. Cheers.

  • @romantsyupryk3009
    @romantsyupryk3009 4 роки тому +1

    Thanks so much for this tutorial.

  • @lalithkumar422
    @lalithkumar422 4 роки тому +1

    Awesome thala

  • @manvindarsingh
    @manvindarsingh 4 роки тому +1

    how to enable this in azure(AKS) env?

    • @justmeandopensource
      @justmeandopensource  4 роки тому +1

      Hi Manvindar, thanks for watching. The feature gate mentioned in this video needs to be enabled. I haven't used AKS and not sure if its possible for users to enable feature gates as it is a managed kubernetes service. There must be a way to configure AKS to enable specific feature gates, which I am not sure.