Rolling updates without downtime using kubernetesGoogle container engine / Kubernetes 1.1.1 - Service...

Why can I easily sing or whistle a tune I've just heard, but not as easily reproduce it on an instrument?

Proof by Induction - New to proofs

Auto Insert date into Notepad

Why do neural networks need so many training examples to perform?

Criticizing long fiction. How is it different from short?

Am I a Rude Number?

Why is working on the same position for more than 15 years not a red flag?

Can a person refuse a presidential pardon?

How to approximate rolls for potions of healing using only d6's?

Why is my solution for the partial pressures of two different gases incorrect?

On what did Lego base the appearance of the new Hogwarts minifigs?

Is the theory of the category of topological spaces computable?

Could quantum mechanics be necessary to analyze some biology scenarios?

Dilemma of explaining to interviewer that he is the reason for declining second interview

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

How do Japanese speakers determine the implied topic when none has been mentioned?

Should I choose Itemized or Standard deduction?

How can I mix up weapons for large groups of similar monsters/characters?

Do commercial flights continue with an engine out?

Find the number of ways to express 1050 as sum of consecutive integers

How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?

Obtaining a matrix of complex values from associations giving the real and imaginary parts of each element?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

Wanted: 5.25 floppy to usb adapter



Rolling updates without downtime using kubernetes


Google container engine / Kubernetes 1.1.1 - Service LoadBalancer not being createdIn a container cluster like Kubernetes or Docker 1.12 Swarm, how do you resolve with external DNS to the good container on the good host?How to disallow the Docker Daemon to mount host's root file system into the containerMismatch between request external IP and forwarding rule k8s service targetList containers from all nodes of docker swarm modeHow can I automatically restart my Docker containers with container auto-delete?How can I guarantee/reserve resources for kube-system?GKE ingress unable to connect to healthy servicephp memory_limit vs kubernetes resource memory limitHow do I create a shared, but size restricted /tmp directory without using tmpfs for each docker container













1















Scenario:




  • I got 3 replicas of a service running

  • I want to update its version


This is whats happening:




  • The new container will be created

  • As soon the container are switching their status from ContainerCreation to Running kubernetes will start terminating old versions of this container.



Problem: Status Running does not make sure the application is available. How can I prevent kubernetes from terminating services before it is not sure the containers application is available? Maybe adding a necessary health check?











share|improve this question



























    1















    Scenario:




    • I got 3 replicas of a service running

    • I want to update its version


    This is whats happening:




    • The new container will be created

    • As soon the container are switching their status from ContainerCreation to Running kubernetes will start terminating old versions of this container.



    Problem: Status Running does not make sure the application is available. How can I prevent kubernetes from terminating services before it is not sure the containers application is available? Maybe adding a necessary health check?











    share|improve this question

























      1












      1








      1








      Scenario:




      • I got 3 replicas of a service running

      • I want to update its version


      This is whats happening:




      • The new container will be created

      • As soon the container are switching their status from ContainerCreation to Running kubernetes will start terminating old versions of this container.



      Problem: Status Running does not make sure the application is available. How can I prevent kubernetes from terminating services before it is not sure the containers application is available? Maybe adding a necessary health check?











      share|improve this question














      Scenario:




      • I got 3 replicas of a service running

      • I want to update its version


      This is whats happening:




      • The new container will be created

      • As soon the container are switching their status from ContainerCreation to Running kubernetes will start terminating old versions of this container.



      Problem: Status Running does not make sure the application is available. How can I prevent kubernetes from terminating services before it is not sure the containers application is available? Maybe adding a necessary health check?








      docker kubernetes






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      elpelp

      907




      907






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Kubernetes runs readinessProbes to check if a container is actually up for accepting connections. This will be considered when performing a rolling update. While the official Kubernetes documentation on this topic is rather lengthy the blog post Enable Rolling updates in Kubernetes with Zero downtime is a nice summary. Maybe directly check the final deployment file at the end to get the idea.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956532%2frolling-updates-without-downtime-using-kubernetes%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Kubernetes runs readinessProbes to check if a container is actually up for accepting connections. This will be considered when performing a rolling update. While the official Kubernetes documentation on this topic is rather lengthy the blog post Enable Rolling updates in Kubernetes with Zero downtime is a nice summary. Maybe directly check the final deployment file at the end to get the idea.






            share|improve this answer




























              0














              Kubernetes runs readinessProbes to check if a container is actually up for accepting connections. This will be considered when performing a rolling update. While the official Kubernetes documentation on this topic is rather lengthy the blog post Enable Rolling updates in Kubernetes with Zero downtime is a nice summary. Maybe directly check the final deployment file at the end to get the idea.






              share|improve this answer


























                0












                0








                0







                Kubernetes runs readinessProbes to check if a container is actually up for accepting connections. This will be considered when performing a rolling update. While the official Kubernetes documentation on this topic is rather lengthy the blog post Enable Rolling updates in Kubernetes with Zero downtime is a nice summary. Maybe directly check the final deployment file at the end to get the idea.






                share|improve this answer













                Kubernetes runs readinessProbes to check if a container is actually up for accepting connections. This will be considered when performing a rolling update. While the official Kubernetes documentation on this topic is rather lengthy the blog post Enable Rolling updates in Kubernetes with Zero downtime is a nice summary. Maybe directly check the final deployment file at the end to get the idea.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 4 hours ago









                webwurstwebwurst

                25015




                25015






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956532%2frolling-updates-without-downtime-using-kubernetes%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...