-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds custom rbac template to deploy directory #300
* Used for creating a new custom rbac ConfigMap
- Loading branch information
1 parent
fb22fbb
commit 0a6fdd6
Showing
2 changed files
with
539 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Hawtio-Online Templates | ||
|
||
## Custom Hawtio custom-hawtio-online-rbac.yml | ||
|
||
A template for adding a ConfigMap for custom RBAC rules. To apply, users should execute the following command, setting the *APP_NAME* to an appropriate value for their configuration: | ||
``` | ||
kubectl process -f custom-hawtio-online-rbac.yml -p APP_NAME=custom-hawtio | kubectl create -f - | ||
``` | ||
|
||
Once applied, the ConfigMap can be edited using the command: | ||
``` | ||
kubectl edit configmap <APP_NAME>-rbac # change the APP_NAME to match the previous command | ||
``` | ||
|
||
### Using the ConfigMap | ||
|
||
1. If using the [operator](https://github/hawtio/hawtio-operator), specify the ConfigMap name in the Hawtio CR: | ||
```yaml | ||
apiVersion: v1 | ||
items: | ||
- apiVersion: hawt.io/v1 | ||
kind: Hawtio | ||
metadata: | ||
name: hawtio-online | ||
namespace: hawtio-dev | ||
spec: | ||
rbac: | ||
configMap: custom-hawtio-rbac | ||
... | ||
``` | ||
1. If installing via the command line, using the `deploy` directory, edit the [base/deployment.yml](https://github.com/hawtio/hawtio-online/blob/main/deploy/base/deployment.yml) file and change the following: | ||
```yaml | ||
... | ||
volumes: | ||
- name: hawtio-rbac | ||
configMap: | ||
name: <APP_NAME>-rbac | ||
... | ||
``` |
Oops, something went wrong.