How does minReadySeconds affect readiness probe?









up vote
2
down vote

favorite












Let's say I have a deployment template like this



spec:
minReadySeconds: 15
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 20
successThreshold: 1
timeoutSeconds: 5


How will this affect the newly versions of my app? Will the minReadySeconds and initialDelaySeconds count at the same time? Will the initialDelaySeconds come first then minReadySeconds?










share|improve this question

























    up vote
    2
    down vote

    favorite












    Let's say I have a deployment template like this



    spec:
    minReadySeconds: 15
    readinessProbe:
    failureThreshold: 3
    httpGet:
    path: /
    port: 80
    scheme: HTTP
    initialDelaySeconds: 20
    periodSeconds: 20
    successThreshold: 1
    timeoutSeconds: 5


    How will this affect the newly versions of my app? Will the minReadySeconds and initialDelaySeconds count at the same time? Will the initialDelaySeconds come first then minReadySeconds?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Let's say I have a deployment template like this



      spec:
      minReadySeconds: 15
      readinessProbe:
      failureThreshold: 3
      httpGet:
      path: /
      port: 80
      scheme: HTTP
      initialDelaySeconds: 20
      periodSeconds: 20
      successThreshold: 1
      timeoutSeconds: 5


      How will this affect the newly versions of my app? Will the minReadySeconds and initialDelaySeconds count at the same time? Will the initialDelaySeconds come first then minReadySeconds?










      share|improve this question













      Let's say I have a deployment template like this



      spec:
      minReadySeconds: 15
      readinessProbe:
      failureThreshold: 3
      httpGet:
      path: /
      port: 80
      scheme: HTTP
      initialDelaySeconds: 20
      periodSeconds: 20
      successThreshold: 1
      timeoutSeconds: 5


      How will this affect the newly versions of my app? Will the minReadySeconds and initialDelaySeconds count at the same time? Will the initialDelaySeconds come first then minReadySeconds?







      kubernetes google-kubernetes-engine






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 10 at 12:44









      Dean Christian Armada

      2,15221641




      2,15221641






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          From Kubernetes Deployment documentation:




          .spec.minReadySeconds is an optional field that specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. This defaults to 0 (the Pod will be considered available as soon as it is ready). To learn more about when a Pod is considered ready, see Container Probes




          So your newly created app pod have to be ready for .spec.minReadySeconds seconds to be considered as available.




          initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated.




          So initialDelaySeconds comes before minReadySeconds.



          Lets say, container in the pod has started at t seconds. Readiness probe will be initiated at t+initialDelaySeconds seconds. Assume Pod become ready at t1 seconds(t1 > t+initialDelaySeconds). So this pod will be available after t1+minReadySeconds seconds.






          share|improve this answer




















          • So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
            – Dean Christian Armada
            Nov 10 at 13:51










          • @DeanChristianArmada yes.
            – nightfury1204
            Nov 10 at 14:00










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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',
          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%2fstackoverflow.com%2fquestions%2f53239081%2fhow-does-minreadyseconds-affect-readiness-probe%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








          up vote
          2
          down vote



          accepted










          From Kubernetes Deployment documentation:




          .spec.minReadySeconds is an optional field that specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. This defaults to 0 (the Pod will be considered available as soon as it is ready). To learn more about when a Pod is considered ready, see Container Probes




          So your newly created app pod have to be ready for .spec.minReadySeconds seconds to be considered as available.




          initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated.




          So initialDelaySeconds comes before minReadySeconds.



          Lets say, container in the pod has started at t seconds. Readiness probe will be initiated at t+initialDelaySeconds seconds. Assume Pod become ready at t1 seconds(t1 > t+initialDelaySeconds). So this pod will be available after t1+minReadySeconds seconds.






          share|improve this answer




















          • So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
            – Dean Christian Armada
            Nov 10 at 13:51










          • @DeanChristianArmada yes.
            – nightfury1204
            Nov 10 at 14:00














          up vote
          2
          down vote



          accepted










          From Kubernetes Deployment documentation:




          .spec.minReadySeconds is an optional field that specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. This defaults to 0 (the Pod will be considered available as soon as it is ready). To learn more about when a Pod is considered ready, see Container Probes




          So your newly created app pod have to be ready for .spec.minReadySeconds seconds to be considered as available.




          initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated.




          So initialDelaySeconds comes before minReadySeconds.



          Lets say, container in the pod has started at t seconds. Readiness probe will be initiated at t+initialDelaySeconds seconds. Assume Pod become ready at t1 seconds(t1 > t+initialDelaySeconds). So this pod will be available after t1+minReadySeconds seconds.






          share|improve this answer




















          • So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
            – Dean Christian Armada
            Nov 10 at 13:51










          • @DeanChristianArmada yes.
            – nightfury1204
            Nov 10 at 14:00












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          From Kubernetes Deployment documentation:




          .spec.minReadySeconds is an optional field that specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. This defaults to 0 (the Pod will be considered available as soon as it is ready). To learn more about when a Pod is considered ready, see Container Probes




          So your newly created app pod have to be ready for .spec.minReadySeconds seconds to be considered as available.




          initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated.




          So initialDelaySeconds comes before minReadySeconds.



          Lets say, container in the pod has started at t seconds. Readiness probe will be initiated at t+initialDelaySeconds seconds. Assume Pod become ready at t1 seconds(t1 > t+initialDelaySeconds). So this pod will be available after t1+minReadySeconds seconds.






          share|improve this answer












          From Kubernetes Deployment documentation:




          .spec.minReadySeconds is an optional field that specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. This defaults to 0 (the Pod will be considered available as soon as it is ready). To learn more about when a Pod is considered ready, see Container Probes




          So your newly created app pod have to be ready for .spec.minReadySeconds seconds to be considered as available.




          initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated.




          So initialDelaySeconds comes before minReadySeconds.



          Lets say, container in the pod has started at t seconds. Readiness probe will be initiated at t+initialDelaySeconds seconds. Assume Pod become ready at t1 seconds(t1 > t+initialDelaySeconds). So this pod will be available after t1+minReadySeconds seconds.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 10 at 13:24









          nightfury1204

          78526




          78526











          • So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
            – Dean Christian Armada
            Nov 10 at 13:51










          • @DeanChristianArmada yes.
            – nightfury1204
            Nov 10 at 14:00
















          • So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
            – Dean Christian Armada
            Nov 10 at 13:51










          • @DeanChristianArmada yes.
            – nightfury1204
            Nov 10 at 14:00















          So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
          – Dean Christian Armada
          Nov 10 at 13:51




          So in short Readiness probe's initialDelaySeconds then minReadySecoonds. after those two then will my app serve traffic
          – Dean Christian Armada
          Nov 10 at 13:51












          @DeanChristianArmada yes.
          – nightfury1204
          Nov 10 at 14:00




          @DeanChristianArmada yes.
          – nightfury1204
          Nov 10 at 14:00

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239081%2fhow-does-minreadyseconds-affect-readiness-probe%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







          這個網誌中的熱門文章

          Barbados

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3