Skip to content

Commit 6c24279

Browse files
authored
Merge pull request #5228 from camilamacedo86/update-note-bootstrap-problem
📖 (doc): Update note about The Bootstrapping Problem
2 parents 5dabfb5 + 691db3c commit 6c24279

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/book/src/cronjob-tutorial/running-webhook.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,17 @@ You can also try to create an invalid CronJob (e.g. use an ill-formatted
6363
schedule field). You should see a creation failure with a validation error.
6464

6565
<aside class="warning">
66-
6766
<h3>The Bootstrapping Problem</h3>
6867

69-
If you are deploying a webhook for pods in the same cluster, be
70-
careful about the bootstrapping problem, since the creation request of the
71-
webhook pod would be sent to the webhook pod itself, which hasn't come up yet.
68+
When you deploy a webhook into the same cluster that it will validate, you can run into a *bootstrapping issue*:
69+
the webhook may try to validate the creation of its own Pod before it’s actually running.
70+
This can block the webhook from ever starting.
71+
72+
To avoid this, make sure the webhook **ignores its own resources**.
73+
You can do this in one of two ways:
7274

73-
To make it work, you can either use [namespaceSelector] if your kubernetes
74-
version is 1.9+ or use [objectSelector] if your kubernetes version is 1.15+ to
75-
skip itself.
75+
- **[namespaceSelector]** – label the namespace where the webhook runs and configure the webhook to skip it.
76+
- **[objectSelector]** – label the webhook’s own Pods or Deployments and exclude those objects directly.
7677

7778
</aside>
7879

0 commit comments

Comments
 (0)