From 1a53cf828054d81bf9a2a964231bd80be5ce8c10 Mon Sep 17 00:00:00 2001 From: Mike Petersen Date: Tue, 11 Aug 2020 07:30:05 -0700 Subject: [PATCH] Added Docs related to excluding namespaces from the Knative Webhook (#2722) * Added Docs related to excluding namespaces from the Knative Webhook * Added a bit more information and an example * Changed title, moved context to the top and implemented suggestions --- docs/serving/webhook-customizations.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/serving/webhook-customizations.md diff --git a/docs/serving/webhook-customizations.md b/docs/serving/webhook-customizations.md new file mode 100644 index 000000000..d42522cc5 --- /dev/null +++ b/docs/serving/webhook-customizations.md @@ -0,0 +1,18 @@ +--- +title: "Exclude namespaces from the Knative webhook" +weight: 70 +type: "docs" +--- + +The Knative webhook examines resources that are created, read, updated, or deleted. This includes system namespaces, which can cause issues during an upgrade if the webhook becomes non-responsive. Cluster administrators may want to disable the Knative webhook on system namespaces to prevent issues during upgrades. + +You can configure the label `webhooks.knative.dev/exclude` to allow namespaces to bypass the Knative webhook. + +``` yaml +apiVersion: v1 +kind: Namespace +metadata: + name: knative-dev + labels: + webhooks.knative.dev/exclude: "true" +``` \ No newline at end of file