安装 kubectl 插件
安装 vela kubectl 插件可以帮助你更简单的交付云原生应用!
安装
你可以通过以下方式安装 kubectl vela
:
- Krew
- Script
- 安装并且设置 krew
- 更新 kubectl 插件列表:
kubectl krew update
- 安装 kubectl vela:
kubectl krew install vela
macOS/Linux
curl -fsSl https://kubevela.io/script/install-kubectl-vela.sh | bash
你也可以在 release 页面(>= v1.0.3)手动下载二进制可执行文件,Kubectl 会自动从你的系统路径中找到它。
使用
$ kubectl vela -h
A Highly Extensible Platform Engine based on Kubernetes and Open Application Model.
Usage:
kubectl vela [flags]
kubectl vela [command]
Available Commands:
Flags:
-h, --help help for vela
dry-run Dry Run an application, and output the K8s resources as
result to stdout, only CUE template supported for now
live-diff Dry-run an application, and do diff on a specific app
revison. The provided capability definitions will be used
during Dry-run. If any capabilities used in the app are not
found in the provided ones, it will try to find from
cluster.
show Show the reference doc for a workload type or trait
version Prints out build version information
Use "kubectl vela [command] --help" for more information about a command.