runtimeclass-controller

by rlex

Helm chartv0.1.0App latest

A Helm chart for Kubernetes

About this chart

runtimeclass-controller

A Helm chart for Kubernetes

Source Code

Usage

Not every helm chart, executor, operator, etc supports runtimeClassName on object specs yet. This app allows you to mutate objects based on namespace labels. To use it, after install label your namespace with runtimeclassname-default, ie

kubectl label namespace example runtimeclassname-default=gvisor --overwrite

And deploy your app

Values

KeyTypeDefaultDescription
affinityobject{}affinity for scheduling pods
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
fullnameOverridestring""Overrides helm-generated chart fullname
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/jlclx/runtimeclass-controller"Image repository
image.tagstring"latest"Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]specifies pull secrets for image repository
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""overrides chart name
nodeSelectorobject{}node selector for scheduling pods
podAnnotationsobject{}annotations for pod
podSecurityContextobject{}security context for pod
replicaCountint1Amount of replicas to run
resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}resource limits and requests
securityContextobject{}security context for pod
service.portint443service port
service.typestring"ClusterIP"service type
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 template
tls.autogeneratebooltrueGenerate certs with helm
tls.certManagerIssuerRefobject{}Specifies cert-manager issuer ref
tls.certificateSecretstring""Specified if secret is pre-generated
tls.renewboolfalseSet to renew certs
tolerationslist[]tolerations for scheduling pods

Upgrading

A major chart version change indicates that there is an incompatible breaking change needing manual actions.

Deploy runtimeclass-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has runtimeclass-controller 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 chartruntimeclass-controller is pinned at v0.1.0 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