Skip to content

Commit

Permalink
The policy controller governance-policy-propagator failed to start (#…
Browse files Browse the repository at this point in the history
…417)

* governance-policy-propagator

Signed-off-by: myan <myan@redhat.com>

* Update content/en/getting-started/integration/policy-framework.md

Signed-off-by: myan <myan@redhat.com>

Co-authored-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
Signed-off-by: myan <myan@redhat.com>

---------

Signed-off-by: myan <myan@redhat.com>
Co-authored-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
  • Loading branch information
yanmxa and dhaiducek committed Jun 6, 2024
1 parent 9e7f58e commit 387a84e
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions content/en/getting-started/integration/policy-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,27 @@ Ensure `clusteradm` CLI is installed and is at least v0.3.0. Download and extrac
# Deploy the policy-propagator
kubectl apply -f ${GIT_PATH}/operator.yaml -n ${HUB_NAMESPACE}
```
2. Ensure the pods are running on the hub with the following command:
2. The policy propagator manages a webhook that requires a certificate. You can either disable the webhook or deploy `cert-manager` alongside the webhook resources to ensure the policy propagator runs properly:
- Optional 1: Enable the webhook
```shell
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cert-manager.yaml
kubectl apply -f ${GIT_PATH}/webhook.yaml -n ${HUB_NAMESPACE}
```

- Optional 2: Disable the webhook with the `--enable-webhooks=false` argument
```shell
kubectl patch deployment governance-policy-propagator --type='json' -p='[
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-webhooks=false"}
]' -n ${HUB_NAMESPACE}
kubectl patch deployment governance-policy-propagator --type='json' -p='[
{"op": "remove", "path": "/spec/template/spec/containers/0/volumeMounts/0"},
{"op": "remove", "path": "/spec/template/spec/volumes/0"}
]' -n ${HUB_NAMESPACE}
```

3. Ensure the pods are running on the hub with the following command:

```Shell
$ kubectl get pods -n ${HUB_NAMESPACE}
Expand Down

0 comments on commit 387a84e

Please sign in to comment.