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
This commit is contained in:
Mike Petersen 2020-08-11 07:30:05 -07:00 committed by GitHub
parent 823d6c567a
commit 1a53cf8280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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"
```