Minimal Kube AI Hub on Kubernetes
In addition to installing Kube AI Hub on a Linux machine, you can also deploy it on existing Kubernetes clusters. This tutorial demonstrates the general steps of completing a minimal Kube AI Hub installation on Kubernetes. For more information, see Installing on Kubernetes.
Prerequisites
- To install Kube AI Hub 3.4 on Kubernetes, your Kubernetes version must be v1.20.x, v1.21.x, v1.22.x, v1.23.x, * v1.24.x, * v1.25.x, and * v1.26.x. For Kubernetes versions with an asterisk, some features of edge nodes may be unavailable due to incompatability. Therefore, if you want to use edge nodes, you are advised to install Kubernetes v1.23.x.
- Make sure your machine meets the minimal hardware requirement: CPU > 1 Core, Memory > 2 GB.
- A default Storage Class in your Kubernetes cluster needs to be configured before the installation.
Note
- The CSR signing feature is activated in
kube-apiserverwhen it is started with the--cluster-signing-cert-fileand--cluster-signing-key-fileparameters. See RKE installation issue. - For more information about the prerequisites of installing Kube AI Hub on Kubernetes, see Prerequisites.
Video Demonstration
Deploy Kube AI Hub
After you make sure your machine meets the conditions, perform the following steps to install Kube AI Hub.
-
Run the following commands to start installation:
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/kubesphere-installer.yaml kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.4.1/cluster-configuration.yaml -
After Kube AI Hub is successfully installed, you can run the following command to view the installation logs:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f -
Use
kubectl get pod --all-namespacesto see whether all Pods are running normally in relevant namespaces of Kube AI Hub. If they are, check the port (30880by default) of the console by running the following command:kubectl get svc/ks-console -n kubesphere-system -
Make sure port
30880is opened in your security group and access the web console through the NodePort (IP:30880) with the default account and password (admin/P@88w0rd). -
After logging in to the console, you can check the status of different components in System Components. You may need to wait for some components to be up and running if you want to use related services.
Enable Pluggable Components (Optional)
This guide is used only for the minimal installation by default. For more information about how to enable other components in Kube AI Hub, see Enable Pluggable Components.