Skip to content

Commit

Permalink
Updated the documentation to also create a role and binding for updating
Browse files Browse the repository at this point in the history
the status section of the policy.

Signed-off-by: Lior Okman <[email protected]>
  • Loading branch information
liorokman committed Dec 9, 2024
1 parent 337e5ac commit f459abf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/content/en/docs/tasks/extensibility/extension-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,20 @@ image name and tag.
* Grant Envoy Gateway's `ServiceAccount` permission to access the extension server's CRD

```shell
kubectl create clusterrole listener-context-example-status-update \
--verb=update \
--resource=ListenerContextExample/status

kubectl create clusterrole listener-context-example-viewer \
--verb=get,list,watch \
--resource=ListenerContextExample

kubectl create clusterrolebinding envoy-gateway-listener-context \
--clusterrole=listener-context-example-viewer \
--clusterrole=listener-context-example-viewer \
--serviceaccount=envoy-gateway-system:envoy-gateway

kubectl create clusterrolebinding envoy-gateway-listener-context-status \
--clusterrole=listener-context-example-status-update \
--serviceaccount=envoy-gateway-system:envoy-gateway
```

Expand Down

0 comments on commit f459abf

Please sign in to comment.