kusion

by KusionStack

Helm chartv0.14.1App 0.14.0Verified publisher

Kusion - An Intent-Driven Platform Orchestrator

About this chart

Kusion Chart

Kusion - An Intent-Driven Platform Orchestrator

Homepage: https://github.com/KusionStack/kusion

Maintainers

NameEmailUrl
kusionstack[email protected]https://kusionstack.io/docs

Source Code

Prerequisites

  • Helm v3+

Installing the Chart

Note: A valid kubeconfig configuration is required for Kusion to function properly. You must either use the installation script, provide your own kubeconfig in values.yaml, or set it through the --set parameter

To install Kusion, you have the following options:

1. Use the installation script (recommended)

./scripts/install-kusion-server.sh <kubeconfig_key1=kubeconfig_path1> <kubeconfig_key2=kubeconfig_path2> ...

Parameters:

  • kubeconfig_key: The key for the kubeconfig file. It should be unique and not contain spaces.

  • kubeconfig_path: The path to the kubeconfig file.

2. Manual installation with your own kubeconfig

Edit the values file to add your kubeconfig content

# Replace the content below with your actual kubeconfig
kubeconfig:
  kubeConfigs:
    kubeconfig0: |
      Please fill in your KubeConfig contents here.
    kubeconfig1: |
      Please fill in your KubeConfig contents here.

Then install the chart with the custom values file:

helm install kusion-release ./kusion

3. Install with specific configurations

First, you need to base64 encode your kubeconfig files.

KUBECONFIG_CONTENT1=$(base64 -w 0 /path/to/your/kubeconfig1)
KUBECONFIG_CONTENT2=$(base64 -w 0 /path/to/your/kubeconfig2)

Then you can use the following command to install the latest version of Kusion.

helm install kusion-release kusionstack/kusion \
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"

You may also have to set your specific configurations if it is deployed into a production cluster, or you want to customize the chart configuration, such as port, replicas, database etc.

All configurable parameters of the Kusion chart are detailed here.

helm install kusion-release kusionstack/kusion \
--set server.port=8080 \
--set server.replicas=3 \
--set mysql.enabled=true \
--set mysql.database=kusion \
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"

Chart Parameters

The following table lists the configurable parameters of the chart and their default values.

General Parameters

KeyTypeDefaultDescription
namespacestring"kusion"Which namespace to be deployed
namespaceEnabledbooltrueWhether to generate namespace
registryProxystring""Image registry proxy will be the prefix as all component images

Global Parameters

KeyTypeDefaultDescription

Kusion Server

The Kusion Server Component is the main backend server that provides the core functionality and REST APIs.

KeyTypeDefaultDescription
server.args.authEnabledboolfalseWhether to enable authentication
server.args.authKeyTypestring"RSA"Authentication key type
server.args.authWhitelistlist[]Authentication whitelist
server.args.autoMigratebooltrueWhether to enable automatic migration
server.args.dbHoststring""Database host
server.args.dbNamestring""Database name
server.args.dbPasswordstring""Database password
server.args.dbPortint3306Database port
server.args.dbUserstring""Database user
server.args.defaultSourceRemotestring""Default source URL
server.args.logFilePathstring"/logs/kusion.log"Logging
server.args.maxAsyncBufferint100Maximum number of buffer zones during concurrent async executions including generate, preview, apply and destroy
server.args.maxAsyncConcurrentint1Maximum number of concurrent async executions including generate, preview, apply and destroy
server.args.maxConcurrentint10Maximum number of concurrent executions including preview, apply and destroy
server.args.migrateFilestring""Migration file path
server.envlist[]Additional environment variables for the server
server.image.imagePullPolicystring"IfNotPresent"Image pull policy
server.image.repostring"kusionstack/kusion"Repository for Kusion server image
server.image.tagstring""Tag for Kusion server image. Defaults to the chart's appVersion if not specified
server.namestring"kusion-server"Component name for kusion server
server.portint80Port for kusion server
server.replicasint1The number of kusion server pods to run
server.resourcesobject{"limits":{"cpu":"500m","memory":"1Gi"},"requests":{"cpu":"250m","memory":"256Mi"}}Resource limits and requests for the kusion server pods
server.serviceTypestring"ClusterIP"Service type for the kusion server. The available type values list as ["ClusterIP"、"NodePort"、"LoadBalancer"].

MySQL Database

The MySQL database is used to store Kusion's persistent data.

KeyTypeDefaultDescription
mysql.databasestring"kusion"MySQL database name
mysql.enabledbooltrueWhether to enable MySQL deployment
mysql.image.imagePullPolicystring"IfNotPresent"Image pull policy
mysql.image.repostring"mysql"Repository for MySQL image
mysql.image.tagstring"8.0"Specific tag for MySQL image
mysql.namestring"mysql"Component name for MySQL
mysql.passwordstring""MySQL password
mysql.persistence.accessModeslist["ReadWriteOnce"]Access modes for MySQL PVC
mysql.persistence.sizestring"10Gi"Size of MySQL persistent volume
mysql.persistence.storageClassstring""Storage class for MySQL PVC
mysql.portint3306Port for MySQL
mysql.replicasint1The number of MySQL pods to run
mysql.resourcesobject{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"250m","memory":"512Mi"}}Resource limits and requests for MySQL pods
mysql.rootPasswordstring""MySQL root password
mysql.userstring"kusion"MySQL user

KubeConfig

The KubeConfig is used to store the KubeConfig files for the Kusion Server.

KeyTypeDefaultDescription
kubeconfig.kubeConfigVolumeMountPathstring"/var/run/secrets/kubernetes.io/kubeconfigs/"Volume mount path for KubeConfig files
kubeconfig.kubeConfigsobject{}KubeConfig contents map

Autogenerated from chart metadata using helm-docs

Deploy kusion with OpenTenant

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