• Restart pods without taking the service down

    2 min read

    kubernetes pod restart deployment

    As of kubernetes 1.15, you can do a rolling restart of all pods for a deployment without taking the service down. To achieve this we'll have to use kubectl rollout restart.

    Let's asume you have a deployment with two replicas:

    $ kubectl get pods NAME READY STATUS RESTARTS AGE pet2cattle-5454555dbb-6jtnz 1/1 Running 0 131m pet2cattle-5454555dbb-czw42 1/1 Running 0 19s 

    01/03/2021

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets