rbac
by stakater
Helm chartv1.0.6App 1.0.0Verified publisher
Chart that deploys role, cluserRole, roleBinding, clusterRoleBinding and serviceAccount for use with any application
About this chart
rbac
This chart is used to apply rbac. This chart can come in handy when a public chart does not offer additional rbac.
Installing
For installing the chart, run the following commands:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update
helm install stable/rbac -f values.yaml --namespace <namespace-name>
Usage
The following quickstart let's you set up rbac chart:
- Update the
values.yamland set the following properties
| Key | Description | Example | Default Value |
|---|---|---|---|
| appName | name of the application. Used in labels | rbac | rbac |
| clusterRole.enabled | Enable clusterRole | true | false |
| clusterRole.name | Name of clusterRole | testclusterrole" | testclusterrole |
| clusterRole.labels | label for clusterRole | app: app-name | {} |
| clusterRole.rules | rules for clusterRole | `` | `` |
| clusterRoleBinding.enabled | Enable clusterRoleBinding | true | false |
| clusterRoleBinding.name | Name of clusterRoleBinding | testclusterrolebinding | testclusterrolebinding |
| clusterRoleBinding.labels | label for clusterRoleBinding | app: app-name | {} |
| clusterRoleBinding.clusterRoleName | clusterRole name for clusterRoleBinding | testclusterrole | testclusterrole |
| clusterRoleBinding.serviceAccountName | serviceAccount name for clusterRoleBinding | cluster-admin | `` |
| role.enabled | Enable role | true | true |
| role.name | Name of role | testrole" | testrole |
| role.labels | label for role | app: app-name | {} |
| role.rules | rules for role | `` | `` |
| roleBinding.enabled | Enable roleBinding | true | true |
| roleBinding.name | Name of roleBinding | testrolebinding | testrolebinding |
| roleBinding.labels | label for roleBinding | app: app-name | {} |
| roleBinding.roleName | role name for roleBinding | testrole | testrole |
| roleBinding.serviceAccountName | serviceAccount name for roleBinding | testaccount | `` |
| serviceAccount.create | Option to create serviceAccount | true | true |
| serviceAccount.name | Name of serviceAccount | testaccount | testaccount |
Deploy rbac with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rbac on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrbac is pinned at v1.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply