From cccabf1a92ac8ca47e916f1cfbb65494ae815f32 Mon Sep 17 00:00:00 2001 From: Eric Briand <1011902+ebriand@users.noreply.github.com> Date: Fri, 20 Sep 2019 08:22:34 +0200 Subject: [PATCH 1/3] Change title to add Startup probe --- .../configure-liveness-readiness-probes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md index 9bd0f5062ba8d..abe45fc23aeb0 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md +++ b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md @@ -1,5 +1,5 @@ --- -title: Configure Liveness and Readiness Probes +title: Configure Liveness, Readiness and Startup Probes content_template: templates/task weight: 110 --- From 02da9b80bba8e6b4e900c8335e9d70fcefa2913d Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 20 Sep 2019 08:54:54 +0200 Subject: [PATCH 2/3] renamed task file to reflect title change --- content/en/docs/concepts/workloads/pods/pod-lifecycle.md | 6 +++--- ...es.md => configure-liveness-readiness-startup-probes.md} | 0 data/tasks.yml | 2 +- static/_redirects | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) rename content/en/docs/tasks/configure-pod-container/{configure-liveness-readiness-probes.md => configure-liveness-readiness-startup-probes.md} (100%) diff --git a/content/en/docs/concepts/workloads/pods/pod-lifecycle.md b/content/en/docs/concepts/workloads/pods/pod-lifecycle.md index 59f945e641cf6..65815c5bc0ccf 100644 --- a/content/en/docs/concepts/workloads/pods/pod-lifecycle.md +++ b/content/en/docs/concepts/workloads/pods/pod-lifecycle.md @@ -161,8 +161,8 @@ to stop. If your Container usually starts in more than `initialDelaySeconds + failureThreshold × periodSeconds`, you should specify a startup probe that checks the same endpoint as the liveness probe. The default for `periodSeconds` is 30s. You should then set its `failureThreshold` high enough to allow the Container to start, without changing the default values of the liveness probe. This helps to protect against deadlocks. -For more information about how to set up a liveness or readiness probe, see -[Configure Liveness and Readiness Probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/). +For more information about how to set up a liveness, readiness, startup probe, see +[Configure Liveness, Readiness and Startup Probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/). ## Pod and Container status @@ -397,7 +397,7 @@ spec: [attaching handlers to Container lifecycle events](/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/). * Get hands-on experience - [configuring liveness and readiness probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/). + [Configure Liveness, Readiness and Startup Probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/). * Learn more about [Container lifecycle hooks](/docs/concepts/containers/container-lifecycle-hooks/). diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md similarity index 100% rename from content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md rename to content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md diff --git a/data/tasks.yml b/data/tasks.yml index 5159c2282f4f3..71ca4c957db67 100644 --- a/data/tasks.yml +++ b/data/tasks.yml @@ -27,7 +27,7 @@ toc: - docs/tasks/inject-data-application/environment-variable-expose-pod-information.md - docs/tasks/configure-pod-container/configure-service-account.md - docs/tasks/configure-pod-container/pull-image-private-registry.md - - docs/tasks/configure-pod-container/configure-liveness-readiness-probes.md + - docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md - docs/tasks/configure-pod-container/assign-pods-nodes.md - docs/tasks/configure-pod-container/configure-pod-initialization.md - docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md diff --git a/static/_redirects b/static/_redirects index 0a35628ffeb2f..c068a461a1fb5 100644 --- a/static/_redirects +++ b/static/_redirects @@ -264,6 +264,7 @@ /docs/tasks/configure-pod-container/cilium-network-policy/ /docs/tasks/administer-cluster/cilium-network-policy/ 301 /docs/tasks/configure-pod-container/communicate-containers-same-pod/ /docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/ 301 /docs/tasks/configure-pod-container/configure-pod-disruption-budget/ /docs/tasks/run-application/configure-pdb/ 301 +/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ /docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ 301 /docs/tasks/configure-pod-container/declare-network-policy/ /docs/tasks/administer-cluster/declare-network-policy/ 301 /docs/tasks/configure-pod-container/define-command-argument-container/ /docs/tasks/inject-data-application/define-command-argument-container/ 301 /docs/tasks/configure-pod-container/define-environment-variable-container/ /docs/tasks/inject-data-application/define-environment-variable-container/ 301 @@ -396,7 +397,7 @@ /docs/user-guide/kubectl/kubectl_*/ /docs/reference/generated/kubectl/kubectl-commands#:splat 301 /docs/user-guide/kubectl/v1.6/node_modules/* https://v1-6.docs.kubernetes.io/docs/user-guide/kubectl/v1.6/ 301 /docs/user-guide/labels/ /docs/concepts/overview/working-with-objects/labels/ 301 -/docs/user-guide/liveness/ /docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ 301 +/docs/user-guide/liveness/ /docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ 301 /docs/user-guide/load-balancer/ /docs/tasks/access-application-cluster/create-external-load-balancer/ 301 /docs/user-guide/logging/ /docs/concepts/cluster-administration/logging/ 301 /docs/user-guide/logging/elasticsearch/ /docs/tasks/debug-application-cluster/logging-elasticsearch-kibana/ 301 From 10695f73f7b4c715109039dd0b4d01c0347a2489 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 20 Sep 2019 08:56:10 +0200 Subject: [PATCH 3/3] changed intro sentence to add startup probe --- .../configure-liveness-readiness-startup-probes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md index abe45fc23aeb0..a038181b6b84a 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md +++ b/content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md @@ -6,7 +6,7 @@ weight: 110 {{% capture overview %}} -This page shows how to configure liveness and readiness probes for Containers. +This page shows how to configure liveness, readiness and startup probes for Containers. The [kubelet](/docs/admin/kubelet/) uses liveness probes to know when to restart a Container. For example, liveness probes could catch a deadlock,