kamaji

by Ankra

Helm chartv26.11.4App 26.11.4-edgeApache-2.0Verified publisher

Kamaji is the Hosted Control Plane Manager for Kubernetes.

About this chart

Vendored by Ankra from clastix/kamaji charts/kamaji at tag 26.11.4-edge (commit 60204b0), Apache-2.0 (see LICENSE and NOTICE). Chart version 26.11.4, image pinned to 26.11.4-edge. The kamaji-etcd subchart is removed, defaultDatastoreName defaults to "", telemetry is off, and artifacthub.io/images names the controller image. Re-vendor with scripts/sync-kamaji.sh <tag>; the upstream text below is unchanged.

kamaji

Kamaji is the Hosted Control Plane Manager for Kubernetes.

Maintainers

NameEmailUrl
Dario Tranchitella[email protected]https://clastix.io
Massimiliano Giovagnoli[email protected]
Adriano Pezzuto[email protected]https://clastix.io

Source Code

Requirements

Kubernetes: >=1.21.0-0

RepositoryNameVersion
https://clastix.github.io/chartskamaji-etcd>=0.15.0

Kamaji requires a multi-tenant etcd cluster. This Helm Chart starting from v0.1.1 provides the installation of an internal etcd in order to streamline the local test. If you'd like to use an externally managed etcd instance, you can specify the overrides and by setting the value kamaji-etcd.deploy=false.

For production use an externally managed etcd is highly recommended, the etcd addon offered by this Chart is not considered production-grade.

Install Kamaji

To add clastix helm repository:

    helm repo add clastix https://clastix.github.io/charts

To install the Chart with the release name kamaji:

    helm upgrade --install --namespace kamaji-system --create-namespace kamaji clastix/kamaji

Show the status:

    helm status kamaji -n kamaji-system

Upgrade the Chart

    helm upgrade kamaji -n kamaji-system clastix/kamaji

Uninstall the Chart

    helm uninstall kamaji -n kamaji-system

Customize the installation

There are two methods for specifying overrides of values during Chart installation: --values and --set.

The --values option is the preferred method because it allows you to keep your overrides in a YAML file, rather than specifying them all on the command line. Create a copy of the YAML file values.yaml and add your overrides to it.

Specify your overrides file when you install the Chart:

    helm upgrade kamaji --install --namespace kamaji-system --create-namespace clastix/kamaji --values myvalues.yaml

The values in your overrides file myvalues.yaml will override their counterparts in the Chart's values.yaml file. Any values in values.yaml that weren’t overridden will keep their defaults.

If you only need to make minor customizations, you can specify them on the command line by using the --set option. For example:

    helm upgrade kamaji --install --namespace kamaji-system --create-namespace clastix/kamaji --set kamaji-etcd.deploy=false

Here the values you can override:

Values

KeyTypeDefaultDescription
affinityobject{}Kubernetes affinity rules to apply to Kamaji controller pods
certManager.issuerRefobject{}Reference to an existing cert-manager issuer that signs the webhook serving certificate. When name is empty the chart creates a self-signed Issuer named kamaji-selfsigned-issuer and uses that. Set this to chain the webhook certificate to a certificate authority you own. kind defaults to Issuer and group to cert-manager.io. Note that the kamaji-etcd subchart has its own kamaji-etcd.certManager.issuerRef, which defaults to kamaji-selfsigned-issuer and has to be updated as well when the etcd certificates are issued by cert-manager.
defaultDatastoreNamestring"default"If specified, all the Kamaji instances with an unassigned DataStore will inherit this default value.
extraArgslist[]A list of extra arguments to add to the kamaji controller default ones
fullnameOverridestring""
gatewayAPI.enabledboolfalseEnable the Gateway API support. The Gateway API CRDs must be installed before Kamaji starts, otherwise the controller exits.
healthProbeBindAddressstring":8081"The address the probe endpoint binds to. (default ":8081")
image.pullPolicystring"Always"
image.repositorystring"clastix/kamaji"The container image of the Kamaji controller.
image.tagstringnilOverrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
kamaji-etcdobject{"certManager":{"enabled":true,"issuerRef":{"group":"cert-manager.io","kind":"Issuer","name":"kamaji-selfsigned-issuer"}},"clusterDomain":"cluster.local","datastore":{"enabled":true,"name":"default"},"deploy":true,"fullnameOverride":"kamaji-etcd","selfSignedCertificates":{"enabled":false}}Subchart: See https://github.com/clastix/kamaji-etcd/blob/master/charts/kamaji-etcd/values.yaml
kubeconfigGenerator.affinityobject{}Kubernetes affinity rules to apply to Kubeconfig Generator controller pods
kubeconfigGenerator.enableLeaderElectbooltrueEnables the leader election.
kubeconfigGenerator.enabledboolfalseToggle to deploy the Kubeconfig Generator Deployment.
kubeconfigGenerator.extraArgslist[]A list of extra arguments to add to the Kubeconfig Generator controller default ones.
kubeconfigGenerator.fullnameOverridestring""
kubeconfigGenerator.healthProbeBindAddressstring":8081"The address the probe endpoint binds to.
kubeconfigGenerator.loggingDevel.enableboolfalseDevelopment Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error)
kubeconfigGenerator.nodeSelectorobject{}Kubernetes node selector rules to schedule Kubeconfig Generator controller
kubeconfigGenerator.podAnnotationsobject{}The annotations to apply to the Kubeconfig Generator controller pods.
kubeconfigGenerator.podSecurityContextobject{"runAsNonRoot":true}The securityContext to apply to the Kubeconfig Generator controller pods.
kubeconfigGenerator.replicaCountint2The number of the pod replicas for the Kubeconfig Generator controller.
kubeconfigGenerator.resources.limits.cpustring"200m"
kubeconfigGenerator.resources.limits.memorystring"512Mi"
kubeconfigGenerator.resources.requests.cpustring"200m"
kubeconfigGenerator.resources.requests.memorystring"512Mi"
kubeconfigGenerator.securityContextobject{"allowPrivilegeEscalation":false}The securityContext to apply to the Kubeconfig Generator controller container only.
kubeconfigGenerator.serviceAccountOverridestring""The name of the service account to use. If not set, the root Kamaji one will be used.
kubeconfigGenerator.tolerationslist[]Kubernetes node taints that the Kubeconfig Generator controller pods would tolerate
livenessProbeobject{"httpGet":{"path":"/healthz","port":"healthcheck"},"initialDelaySeconds":15,"periodSeconds":20}The livenessProbe for the controller container
loggingDevel.enableboolfalseDevelopment Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error) (default false)
metricsBindAddressstring":8080"The address the metric endpoint binds to. (default ":8080")
nameOverridestring""
nodeSelectorobject{}Kubernetes node selector rules to schedule Kamaji controller
podAnnotationsobject{}The annotations to apply to the Kamaji controller pods.
podSecurityContextobject{"runAsNonRoot":true}The securityContext to apply to the Kamaji controller pods.
readinessProbeobject{"httpGet":{"path":"/readyz","port":"healthcheck"},"initialDelaySeconds":5,"periodSeconds":10}The readinessProbe for the controller container
replicaCountint1The number of the pod replicas for the Kamaji controller.
resources.limits.cpustring"200m"
resources.limits.memorystring"100Mi"
resources.requests.cpustring"100m"
resources.requests.memorystring"20Mi"
securityContextobject{"allowPrivilegeEscalation":false}The securityContext to apply to the Kamaji controller container only. It does not apply to the Kamaji RBAC proxy container.
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring"kamaji-controller-manager"
serviceMonitor.enabledboolfalseToggle the ServiceMonitor true if you have Prometheus Operator installed and configured
telemetryobject{"disabled":false}Disable the analytics traces collection
temporaryDirectoryPathstring"/tmp/kamaji"Directory which will be used to work with temporary files. (default "/tmp/kamaji")
tolerationslist[]Kubernetes node taints that the Kamaji controller pods would tolerate

Installing and managing etcd as DataStore

Kamaji supports multiple data store, although etcd is the default one: thus, an initial cluster will be created upon the Chart installation.

The DataStore resource can be configured with the proper values in case of overrides when using a different driver, otherwise all the required data will be inherited by the Chart values.

Deploy kamaji with OpenTenant

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