Install on Kubernetes (Online)
- You need to create 2 namespaces in Kubernetes cluster, namely,
kubesphere-system
and kubesphere-monitoring-system
.
- Create a Secret of CA certificate of your current Kubernetes cluster.
--from-file=ca.crt=/etc/kubernetes/pki/ca.crt \
--from-file=ca.key=/etc/kubernetes/pki/ca.key
- Create an ETCD‘s Secret of certificate.
- If the ETCD has been configured with certificates, refer to the following step:
- If the ETCD has been not configured with certificates, create an empty Secret (The following command is suitable for Kubernetes cluster created by Kubeadm):
$ kubectl -n kubesphere-monitoring-system create secret generic kube-etcd-client-certs
- Clone the repository to Kubesphere-installer to local.
- Enter into ks-installer. Then install KubeSphere on existing Kubernetes cluster.
$ cd deploy
# According to the parameter table at the bottom, replace the value of "kubesphere-config" in "kubesphere-installer.yaml" file with your current Kubernetes cluster parameters (If the ETCD has no certificate, set etcd_tls_enable: False).
$ kubectl apply -f kubesphere-installer.yaml
- Inspect the logs of installer, waiting for the successful logs appear.
- Finally, check console’s service port. Use
IP:30880
to visit KubeSphere login page. The default cluster administration account is admin/P@88w0rd
.
$ kubectl get svc -n kubesphere-system | grep 30880
- Support multiple public cloud network plugins and storage plugins