ks-installer

by KubeSphere

Helm chartv0.3.1App 3.2.1Verified publisher

The helm chart of KubeSphere, supports installing KubeSphere on existing Kubernetes.

About this chart

KubeSphere Helm Chart

Introduction

KubeSphere is a distributed operating system managing cloud native applications with Kubernetes as its kernel, and provides plug-and-play architecture for the seamless integration of third-party applications to boost its ecosystem.

The helm chart of KubeSphere, supports installing KubeSphere on existing Kubernetes.

Prerequisites

  • Kubernetes v1.17.x、v1.18.x、v1.19.x、v1.20.x
  • PV dynamic provisioning support on the underlying infrastructure (StorageClass)
  • Helm3

Installing

Check out configuration in values.yaml and install the chart with the release name my-release:

helm install --name my-release ks-installer --namespace=kubesphere-system --create-namespace

The command deploys the kubesphere installer chart on the Kubernetes cluster.

Uninstalling

show ks-installer chart

helm list 

To uninstall/delete all charts related to ks-installer:

helm delete my-release

The command removes ks-installer with the chart and deletes the release.

Ks-installer Configuration

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

ParameterDescriptionDefault
image.repositoryThe image of ks-installer containerkubesphere/ks-installer
image.tagThe tag of the ks-installer imagev3.2.1
image.pullPolicyThe pull policy of the ks-installer imageAlways

KubeSphere Configuration

You can set the configuration of kubesphere in values.yaml

ParameterDescriptionDefault
cc.persistence.storageClassInstaller will use the default StorageClass, you can also designate another StorageClass""
cc.authentication.jwtSecret Keep the jwtSecret consistent with the host cluster.""
cc.etcd.monitoring Whether to enable etcd monitoringfalse
cc.etcd.endpointIpsetcd address(for etcd cluster,see an example value like 192.168.0.7,192.168.0.8,192.168.0.9)localhost
cc.etcd.portetcd port (Default port: 2379, you can appoint any other port)2379
cc.etcd.tlsEnableWhether to enable etcd TLS certificate authentication.(true / false)true
cc.common.redis.enabledWhether to install redisfalse
cc.common.redis.volumeSizeredis volume size (cannot be modified after set)2Gi
cc.common.openldap.enabledWhether to install openldapfalse
cc.common.openldap.volumeSizeopenldap volume size (cannot be modified after set)2Gi
cc.common.minio.volumeSizeMinio volume size (cannot be modified after set)20Gi
cc.common.es.master.volumeSizeVolume size of Elasticsearch master nodes (cannot be modified after set)4Gi
cc.common.es.data.volumeSizeVolume size of Elasticsearch data nodes (cannot be modified after set)20Gi
cc.common.es.logMaxAgeLog retention time in built-in Elasticsearch (days)7
cc.common.es.elkPrefixredis volume size (cannot be modified after set)2Gi
cc.common.core.console.enableMultiLoginWhether to enable multiple point login of one account(true / false)false
cc.common.core.console.portConsole Port(NodePort)30880
cc.alerting.enabledWhether to install KubeSphere alerting system. It enables Users to customize alerting policies to send messages to receivers in time with different time intervals and alerting levels to choose from. (true / false)false
cc.auditing.enabledWhether to install KubeSphere audit log system. It provides a security-relevant chronological set of records,recording the sequence of activities happened in platform, initiated by different tenants. (true / false)false
cc.devops.enabledWhether to install KubeSphere DevOps System. It provides out-of-box CI/CD system based on Jenkins, and automated workflow tools including Source-to-Image & Binary-to-Image. (true / false)false
cc.devops.jenkinsMemoryLimJenkins Memory Limit2Gi
cc.devops.jenkinsMemoryReqJenkins Memory Request1500Mi
cc.devops.jenkinsVolumeSizeJenkins volume size8Gi
cc.devops.jenkinsJavaOpts_XmsJenkins JVM parameter(Xms)512m
cc.devops.jenkinsJavaOpts_XmxJenkins JVM parameter(Xmx)512m
cc.devops.jenkinsJavaOpts_MaxRAMJenkins JVM parameter(MaxRAM)2Gi
cc.events.enabledWhether to install KubeSphere events system. It provides a graphical web console for Kubernetes Events exporting, filtering and alerting in multi-tenant Kubernetes clusters. (true / false)false
cc.logging.enabledWhether to install KubeSphere logging system. Flexible logging functions are provided for log query, collection and management in a unified console. Additional log collectors can be added, such as Elasticsearch, Kafka and Fluentd. (true / false)false
cc.logging.logsidecar.replicasLogsidecar replicas2
cc.metrics_server.enabledWhether to install metrics_servertrue (true / false)false
cc.monitoring.storageClassIf there is an independent StorageClass you need for Prometheus, you can specify it here""
cc.monitoring.gpu.nvidia_dcgm_exporter.enabledWhether to install GPU monitoring-related plugins.false
cc.multicluster.clusterRoleYou can install a solo cluster, or specify it as the role of host or member cluster. (host / member / none)none
cc.network.networkpolicy.enabledNetwork policies allow network isolation within the same cluster, which means firewalls can be set up between certain instances (Pods). (true / false)false
cc.network.ippool.typeSpecify "calico" for this field if Calico is used as your CNI plugin. "none" means that Pod IP Pools are disabled.none
cc.network.topology.typeSpecify "weave-scope" for this field to enable Service Topology. "none" means that Service Topology is disabled.none
cc.openpitrix.store.enabled Enable or disable the KubeSphere App Store. (true / false)false
cc.servicemesh.enabledWhether to install KubeSphere Service Mesh (Istio-based). It provides fine-grained traffic management, observability and tracing, and offer visualization for traffic topology. (true / false)false
cc.kubeedge.enabledAdd edge nodes to your cluster and deploy workloads on edge nodes. (true / false)false

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

$ helm install --name my-release ks-installer --set cc.persistence.storageClass=local

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

$ helm install my-release ks-installer -f values.yaml

Deploy ks-installer with OpenTenant

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