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:

  1. Update the values.yaml and set the following properties
KeyDescriptionExampleDefault Value
appNamename of the application. Used in labelsrbacrbac
clusterRole.enabledEnable clusterRoletruefalse
clusterRole.nameName of clusterRoletestclusterrole"testclusterrole
clusterRole.labelslabel for clusterRoleapp: app-name{}
clusterRole.rulesrules for clusterRole````
clusterRoleBinding.enabledEnable clusterRoleBindingtruefalse
clusterRoleBinding.nameName of clusterRoleBindingtestclusterrolebindingtestclusterrolebinding
clusterRoleBinding.labelslabel for clusterRoleBindingapp: app-name{}
clusterRoleBinding.clusterRoleNameclusterRole name for clusterRoleBindingtestclusterroletestclusterrole
clusterRoleBinding.serviceAccountNameserviceAccount name for clusterRoleBindingcluster-admin``
role.enabledEnable roletruetrue
role.nameName of roletestrole"testrole
role.labelslabel for roleapp: app-name{}
role.rulesrules for role````
roleBinding.enabledEnable roleBindingtruetrue
roleBinding.nameName of roleBindingtestrolebindingtestrolebinding
roleBinding.labelslabel for roleBindingapp: app-name{}
roleBinding.roleNamerole name for roleBindingtestroletestrole
roleBinding.serviceAccountNameserviceAccount name for roleBindingtestaccount``
serviceAccount.createOption to create serviceAccounttruetrue
serviceAccount.nameName of serviceAccounttestaccounttestaccount

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrbac is pinned at v1.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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