kubenav

by christianhuth

Helm chartv1.0.9Verified publisher

A Helm chart for creating the required RBAC for kubenav

About this chart

kubenav

A Helm chart for creating the required RBAC for kubenav

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubenav

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubenav

Introduction

This chart bootstraps RBAC rules for kubenav on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.24+

Installing the Chart

To install the chart with the release name my-release:

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubenav

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubenav

These commands deploy the RBAC settings on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Values

KeyTypeDefaultDescription
fullnameOverridestring""String to fully override "kubenav.fullname"
nameOverridestring""Provide a name in place of kubenav
rbac.customPermissionslist[]Define the custom permissions to be granted to kubenav
rbac.modestring"readonly"Decide which access mode should be granted to kubenav: readonly, cluster-admin or custom.
rbac.namespaceLimitslist[]Define a list of namespaces to limit kubenav to only access these namespaces
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname templatev

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/kubenav

Deploy kubenav with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubenav 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 chartkubenav is pinned at v1.0.9 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