在 Kubernetes 中安装 KubeVela
- Kubernetes cluster >= v1.19 && <= v1.24
KubeVela 依赖 Kubernetes 作为管控平面,你需要自行搭建生产可用的 Kubernetes 集群,支持的方式包括:
- Alibaba Cloud ACK Service
- AWS EKS Service
- Azure AKS Service
- Google GKE Service
- Rancher K3s or RKE
KubeVela CLI 提供了常用的集群和应用管理能力。
- Script
- Homebrew
- Download directly from releases
- Docker
MacOS/Linux
curl -fsSl https://kubevela.net/script/install.sh | bash
Windows
powershell -Command "iwr -useb https://kubevela.net/script/install.ps1 | iex"
macOS/Linux
首先更新你的 Homebrew。注意,使用 Homebrew 安装只支持安装正式 release 的版本。
brew update
安装 Vela CLI。
brew install kubevela
- 通过 release log 下载二进制压缩文件。
- 解压文件并将二进制文件移动到 $PATH 路径下。
sudo mv ./vela /usr/local/bin/vela
安装提示: 如果你使用的是 macOS,会弹出因为开发者的包无法验证,“vela”无法打开的警告。
macOS 对可以在系统中运行的软件施加了更严格的限制。您可以通过打开“系统偏好设置 -> 安全和隐私 -> 常规”,并选择“从任何位置下载的程序”来临时解决此问题。
如果你需要在容器环境中使用 Vela CLI,我们提供了 CLI 镜像 oamdev/vela-cli
:
$ docker run --rm -it -v ~/.kube:/root/.kube oamdev/vela-cli version
CLI Version: master
Core Version: v1.3.4
GitRevision: git-1d823780
GolangVersion: go1.17.10
参考 使用 Vela CLI 镜像文档 获取更多用法。
- Default
- Helm
$ vela install
正常安装出现下述日志
...
Watching for changes to Job kubevela-vela-core-cluster-gateway-tls-secret-patch with timeout of 18m0s
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: ADDED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
kubevela-vela-core-cluster-gateway-tls-secret-patch: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
Add/Modify event for kubevela-vela-core-cluster-gateway-tls-secret-patch: MODIFIED
Starting delete for "kubevela-vela-core-admission" ServiceAccount
Starting delete for "kubevela-vela-core-admission" ClusterRole
Starting delete for "kubevela-vela-core-admission" ClusterRoleBinding
Starting delete for "kubevela-vela-core-admission" Role
Starting delete for "kubevela-vela-core-admission" RoleBinding
Starting delete for "kubevela-vela-core-admission-patch" Job
Starting delete for "kubevela-vela-core-cluster-gateway-admission" ServiceAccount
Starting delete for "kubevela-vela-core-cluster-gateway-admission" Role
Starting delete for "kubevela-vela-core-cluster-gateway-admission" RoleBinding
Starting delete for "kubevela-vela-core-cluster-gateway-tls-secret-patch" Job
KubeVela control plane has been successfully set up on your cluster.
If you want to enable dashboard, please run "vela addon enable velaux"
如果你是 Helm 用户,你可以通过 Helm 命令完成 VelaCore 的安装和升级:
helm v3.2.0+ required
helm repo add kubevela https://charts.kubevela.net/core
helm repo update
helm install --create-namespace -n vela-system kubevela kubevela/vela-core --wait
VelaUX 是 KubeVela 的仪表板。 它是在你的集群中运行的 Web 应用程序。 你可以使用浏览器访问它。 如果你不使用 KubeVela 的 UI 控制台,这是可选的。
请参考 VelaUX 插件文档.
请参考升级和高级安装选项
Last updated on 2023年2月9日 by dependabot[bot]