Install on Kubernetes (Offline)

This guide is for offline installation, make sure your Kubernetes cluster meets the prerequisites below, see Prerequisites for more details.

  • Kubernetes Version: from 1.13.0 to 1.15.x
  • Helm Version: >= 2.10.0
  • Available Memory: >= 10 G
  • Already have Storage Class (Recommended)
  1. Download the offine installation package and then uncompress it.
  1. $ wget https://kubesphere-installer.pek3b.qingstor.com/ks-only/kubesphere-images-advanced-2.0.2.tar.gz
  1. $ tar -zxvf kubesphere-images-advanced-2.0.2.tar.gz
  1. Loading the package using docker command (It may take longer to import since the image package is larger).
  1. $ docker load < kubesphere-images-advanced-2.0.2.tar
  1. Clone the remote repository and then execute the script to import the required images for the installation into the local repository.
  1. $ git clone https://github.com/kubesphere/ks-installer.git
  2. $ cd scripts
  3. $ ./download-docker-images.sh LOCAL_REGISTRY_ADDRESS

Note:Replace the “LOCALREGISTRYADDRESS” with your local registry address, e.g. ./download-docker-images.sh 192.168.1.2:5000

  1. Replace the image name with your local address in deploy/kubesphere-installer.yaml.

Note:192.168.1.2:5000/kubespheredev/ks-installer:advanced-2.0.2 is an example image address, replace it with your own image address.

  1. $ sed -i 's|kubespheredev/ks-installer:advanced-2.0.2|192.168.1.2:5000/kubespheredev/ks-installer:advanced-2.0.2|g' deploy/kubesphere-installer.yaml
  1. Follow with Installing KubeSphere guide to continue this installation.