Files
my-rook-config/Documentation/admission-controller-usage.md
T
subhamkrai d594a6c904 ceph: remove config-admission-controller.sh
this commit removes file `config-admission-controller.sh`
as we don't need this anymore and update the doc to point
`tests/scripts/deploy_admission_controller.sh` to start
admission controller.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-03-05 16:39:52 +05:30

1.2 KiB

title, weight, indent
title weight indent
Admission Controller 2030 true

Admission Controller

An admission controller intercepts requests to the Kubernetes API server prior to persistence of the object, but after the request is authenticated and authorized.

Enabling the Rook admission controller is recommended to provide an additional level of validation that Rook is configured correctly with the custom resource (CR) settings.

Quick Start

To deploy the Rook admission controllers we have a helper script that will automate the configuration.

This script will help us achieve the following tasks

  1. Creates certificate using cert-manager.
  2. Creates ValidatingWebhookConfig and fills the CA bundle with the appropriate value from the cluster.

Run the following commands:

kubectl create -f cluster/examples/kubernetes/ceph/crds.yaml -f cluster/examples/kubernetes/ceph/common.yaml
tests/scripts/deploy_admission_controller.sh

Now that the Secrets have been deployed, we can deploy the operator:

kubectl create -f cluster/examples/kubernetes/ceph/operator.yaml

At this point the operator will start the admission controller Deployment automatically and the Webhook will start intercepting requests for Rook resources.