Deploy KubeSphere on Existing Kubernetes Cluster

Edit

KubeSphere+K8s

All-in-One and Multi-Node describe how to install KubeSphere on virtual machine or bare metal with provisioning Kubernetes underneath. You are also allowed to deploy KubeSphere on an existing Kubernetes cluster that is cloud-hosted or on-premises. This document will show you how to deploy KubeSphere on a Kubernetes with internet access. With regard to disconnected Kubernetes cluster, please refer to Deploy KubeSphere on Air Gapped Kubernetes Cluster.

Note: first of all, please read the prerequisites.

Deploy KubeSphere

Install KubeSphere using kubectl.

  • If there are 1 Core and 2 GB RAM available in your cluster, use the command below to trigger a default minimal installation only:
  1. kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/kubesphere-minimal.yaml
  • If there are 8 Cores and 16 GB RAM available in your cluster, use the command below to install a complete KubeSphere, i.e. with all components enabled:
  1. kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/kubesphere-complete-setup.yaml

Verify the real-time logs. When you see the following outputs, congratulation! You can access KubeSphere console in your browser now.

  1. $ kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
  2. #####################################################
  3. ### Welcome to KubeSphere! ###
  4. #####################################################
  5. Console: http://10.128.0.34:30880
  6. Account: admin
  7. Password: P@88w0rd
  8. NOTEPlease modify the default password after login.
  9. #####################################################

Enable Pluggable Components

If you start with a default minimal installation, execute the following command to open the configmap in order to enable more pluggable components at your will. Make sure your cluster has enough CPU and memory. Please see Enable Pluggable Components for more information.

  1. kubectl edit cm -n kubesphere-system ks-installer