kairoscloud-chart

by josephrodriguez

Helm chartv0.1.4App 1.0.0

A Helm chart for KairosCloud application

About this chart

KairosCloud Helm Chart

A Helm chart for deploying KairosCloud application on Kubernetes.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • KEDA 2.0+ (if using KEDA autoscaling)

Installing the Chart

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

helm install my-kairoscloud ./kairoscloud-chart

The command deploys KairosCloud on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-kairoscloud deployment:

helm delete my-kairoscloud

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

Parameters

Global parameters

NameDescriptionValue
nameOverrideString to partially override kairoscloud-chart.fullname template with a string (will prepend the release name)""
fullnameOverrideString to fully override kairoscloud-chart.fullname template with a string""

Image parameters

NameDescriptionValue
image.repositoryKairosCloud image repositorynginx
image.tagKairosCloud image tag (immutable tags are recommended)""
image.pullPolicyKairosCloud image pull policyIfNotPresent

Image pull secrets

NameDescriptionValue
imagePullSecretsSpecify docker-registry secret names as an array[]

ServiceAccount parameters

NameDescriptionValue
serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
serviceAccount.annotationsAnnotations to add to the ServiceAccount{}
serviceAccount.nameThe name of the ServiceAccount to use""

Pod parameters

NameDescriptionValue
podAnnotationsAnnotations to add to the pods{}
podSecurityContextPod security context{}
securityContextContainer security context{}

Service parameters

NameDescriptionValue
service.typeKairosCloud service typeClusterIP
service.portKairosCloud service port80
service.targetPortKairosCloud service target port8080
service.annotationsAnnotations to add to the service{}

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generation for KairosCloudfalse
ingress.classNameIngressClass that will be used to implement the Ingress""
ingress.annotationsAdditional annotations for the Ingress resource{}
ingress.hostsAn array of hosts to be covered with this ingress record[]
ingress.tlsTLS configuration for additional hostname(s) to be covered with this ingress record[]

Resource parameters

NameDescriptionValue
resources.limitsThe resources limits for the KairosCloud containers{}
resources.requestsThe requested resources for the KairosCloud containers{}

Autoscaling parameters

NameDescriptionValue
autoscaling.enabledEnable Horizontal POD autoscaling for KairosCloudfalse
autoscaling.minReplicasMinimum number of KairosCloud replicas1
autoscaling.maxReplicasMaximum number of KairosCloud replicas100
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80

KEDA (Kubernetes Event-Driven Autoscaling) parameters

NameDescriptionValue
keda.enabledEnable KEDA ScaledObject for event-driven autoscalingfalse
keda.annotationsAnnotations to add to the KEDA ScaledObject{}
keda.minReplicasMinimum number of replicas (defaults to autoscaling.minReplicas if not set)null
keda.maxReplicasMaximum number of replicas (defaults to autoscaling.maxReplicas if not set)null
keda.pollingIntervalPolling interval for metrics (e.g., "30s", "1m")null
keda.cooldownPeriodCooldown period for scaling down (e.g., "300s", "5m")null
keda.idleReplicaCountNumber of replicas to maintain when idle (defaults to 0)null
keda.advancedAdvanced KEDA configuration (HPA behavior, etc.){}
keda.triggersArray of KEDA triggers for different scaling metrics[]
keda.fallbackGlobal fallback configuration for KEDA{}

StatefulSet parameters

NameDescriptionValue
statefulset.enabledEnable StatefulSet instead of Deploymentfalse
statefulset.serviceNameService name for StatefulSet""
statefulset.podManagementPolicyPod management policy for StatefulSetOrderedReady
statefulset.updateStrategyUpdate strategy for StatefulSet{}

Persistence parameters

NameDescriptionValue
persistence.enabledEnable persistence using Persistent Volume Claimsfalse
persistence.storageClassPersistent Volume storage class""
persistence.accessModePersistent Volume access modeReadWriteOnce
persistence.sizePersistent Volume size8Gi
persistence.annotationsPersistent Volume annotations{}

ConfigMap parameters

NameDescriptionValue
configMap.enabledEnable ConfigMaptrue
configMap.dataConfigMap data{}

PodDisruptionBudget parameters

NameDescriptionValue
podDisruptionBudget.enabledEnable PodDisruptionBudgetfalse
podDisruptionBudget.minAvailableMinimum number of pods that must be available during eviction1
podDisruptionBudget.maxUnavailableMaximum number of pods that can be unavailable during eviction1

Node parameters

NameDescriptionValue
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}

Health check parameters

NameDescriptionValue
livenessProbe.enabledEnable liveness probetrue
readinessProbe.enabledEnable readiness probetrue
startupProbe.enabledEnable startup probefalse

Examples

Basic deployment

helm install my-kairoscloud ./kairoscloud-chart

Deployment with custom values

helm install my-kairoscloud ./kairoscloud-chart \
  --set image.repository=myregistry/kairoscloud \
  --set image.tag=v1.0.0 \
  --set replicaCount=3 \
  --set service.type=LoadBalancer

StatefulSet with persistence

helm install my-kairoscloud ./kairoscloud-chart \
  --set statefulset.enabled=true \
  --set persistence.enabled=true \
  --set persistence.size=20Gi

Deployment with ingress

helm install my-kairoscloud ./kairoscloud-chart \
  --set ingress.enabled=true \
  --set ingress.hosts[0].host=kairoscloud.example.com \
  --set ingr

Deploy kairoscloud-chart with OpenTenant

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