diff --git a/docs/install.mdx b/docs/install.mdx index 11b1b19a..77edd862 100644 --- a/docs/install.mdx +++ b/docs/install.mdx @@ -22,6 +22,7 @@ className="unique-tabs" defaultValue="kind" values={[ {label: 'Kind', value: 'kind'}, +{label: 'RKE', value: 'rke'}, {label: 'Minikube', value: 'minikube'}, {label: 'Cloud Provider', value: 'cloudprovider'}, ]}> @@ -44,6 +45,38 @@ minikube addons enable ingress + + + (1)Install docker: + + The rke depend on docker, Follow the docker [installation guide](https://docs.docker.com/engine/install/). + + (2)Install rke: + + + Download rke binary from [rke release page](https://github.com/rancher/rke/releases). + + If you have limited Internet access: +``` +wget https://static.kubevela.net/binary/rke/rke_linux-amd64 -O /usr/bin/rke +chmod +x /usr/bin/rke +``` + + (3)Install kubernetes cluster: + +```shell script + mkdir ~/rkeinit && cd ~/rkeinit + # Wizard-style configuration + rke config + # Kubernetes Cluster Installation + rke up + # Install kubectl Command + mkdir ~/.kube + cp kube_config_cluster.yml ~/.kube/config + docker cp kubelet:/usr/local/bin/kubectl /usr/local/bin/kubectl +``` + + Follow [this guide](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) to install kind. @@ -96,6 +129,15 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mast ## 2. Install KubeVela +Before install, you have to make sure the helm is available. Follow [this guide](https://helm.sh/docs/intro/install/) to install helm. + +If you have limited Internet access + +```shell script +wget https://static.kubevela.net/binary/helm/helm-v3.7.0-linux-amd64 -O /usr/bin/helm +chmod +x /usr/bin/helm +``` + 1. Add and update helm chart repo for KubeVela ```shell script helm repo add kubevela https://charts.kubevela.net/core diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v1.1/install.mdx b/i18n/zh/docusaurus-plugin-content-docs/version-v1.1/install.mdx index 16cd0af1..c50f2487 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v1.1/install.mdx +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v1.1/install.mdx @@ -22,6 +22,7 @@ className="unique-tabs" defaultValue="kind" values={[ {label: 'Kind', value: 'kind'}, +{label: 'RKE', value: 'rke'}, {label: 'Minikube', value: 'minikube'}, {label: 'Cloud Provider', value: 'cloudprovider'}, ]}> @@ -43,6 +44,38 @@ minikube addons enable ingress + + + (1)安装 Docker (可选): + + RKE 的安装依赖于 Docker, 如未安装,请参考 [Docker 安装指南](https://docs.docker.com/engine/install/). + + (2)安装 RKE 命令行: + + + 下载 RKE 二进制文件, [前往RKE Release页面](https://github.com/rancher/rke/releases). + + 如果你的网络受限无法下载(特别是中国用户),可直接使用下述方式安装: +``` +wget https://static.kubevela.net/binary/rke/rke_linux-amd64 -O /usr/bin/rke +chmod +x /usr/bin/rke +``` + + (3)安装 Kubernetes 集群: + +```shell script + mkdir ~/rkeinit && cd ~/rkeinit + # 引导式配置,可参考 [RKE集群配置说明文档](https://rancher.com/docs/rke/latest/en/example-yamls/)。 + rke config + # 安装集群 + rke up + # 安装 Kubectl 命令行工具 + mkdir ~/.kube + cp kube_config_cluster.yml ~/.kube/config + docker cp kubelet:/usr/local/bin/kubectl /usr/local/bin/kubectl +``` + + 安装 [Kind 命令行工具](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)后,创建集群: @@ -94,6 +127,16 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mast ## 2. 安装 KubeVela +在安装之前,请确保 helm 工具是可用的,如未安装,请参考 [安装说明](https://helm.sh/docs/intro/install/) 安装完成。 + +如果你的网络受限无法下载(特别是中国用户),可直接使用下述方式安装: + +```shell script +wget https://static.kubevela.net/binary/helm/helm-v3.7.0-linux-amd64 -O /usr/bin/helm +chmod +x /usr/bin/helm +``` +> 该安装方式仅适用于 linux-amd64 + 1. 添加并更新 KubeVela helm chart 仓库 ```shell script helm repo add kubevela https://charts.kubevela.net/core diff --git a/versioned_docs/version-v1.1/install.mdx b/versioned_docs/version-v1.1/install.mdx index 11b1b19a..77edd862 100644 --- a/versioned_docs/version-v1.1/install.mdx +++ b/versioned_docs/version-v1.1/install.mdx @@ -22,6 +22,7 @@ className="unique-tabs" defaultValue="kind" values={[ {label: 'Kind', value: 'kind'}, +{label: 'RKE', value: 'rke'}, {label: 'Minikube', value: 'minikube'}, {label: 'Cloud Provider', value: 'cloudprovider'}, ]}> @@ -44,6 +45,38 @@ minikube addons enable ingress + + + (1)Install docker: + + The rke depend on docker, Follow the docker [installation guide](https://docs.docker.com/engine/install/). + + (2)Install rke: + + + Download rke binary from [rke release page](https://github.com/rancher/rke/releases). + + If you have limited Internet access: +``` +wget https://static.kubevela.net/binary/rke/rke_linux-amd64 -O /usr/bin/rke +chmod +x /usr/bin/rke +``` + + (3)Install kubernetes cluster: + +```shell script + mkdir ~/rkeinit && cd ~/rkeinit + # Wizard-style configuration + rke config + # Kubernetes Cluster Installation + rke up + # Install kubectl Command + mkdir ~/.kube + cp kube_config_cluster.yml ~/.kube/config + docker cp kubelet:/usr/local/bin/kubectl /usr/local/bin/kubectl +``` + + Follow [this guide](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) to install kind. @@ -96,6 +129,15 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mast ## 2. Install KubeVela +Before install, you have to make sure the helm is available. Follow [this guide](https://helm.sh/docs/intro/install/) to install helm. + +If you have limited Internet access + +```shell script +wget https://static.kubevela.net/binary/helm/helm-v3.7.0-linux-amd64 -O /usr/bin/helm +chmod +x /usr/bin/helm +``` + 1. Add and update helm chart repo for KubeVela ```shell script helm repo add kubevela https://charts.kubevela.net/core