Files
kustomize/docs/zh/INSTALL.md
2019-11-21 23:52:53 -05:00

40 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[release 页面]: /../../releases
[Go]: https://golang.org
[golang.org]: https://golang.org
## 安装
在 macOS ,您可以使用软件包管理器 Homebrew 来安装 kustomize 。
brew install kustomize
在 windows ,您可以使用软件包管理器 Chocolatey 来安装 kustomize 。
choco install kustomize
有关软件包管理器 chocolatey 的使用以及对之前版本的支持,请参考以下链接:
- [Choco Package](https://chocolatey.org/packages/kustomize)
- [Package Source](https://github.com/kenmaglio/choco-kustomize)
对于其他系统,请在 [release 页面] 下载相应系统的二进制文件。
或者使用命令行获取最新的官方版本:
```
opsys=linux # or darwin, or windows
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |\
grep browser_download |\
grep $opsys |\
cut -d '"' -f 4 |\
xargs curl -O -L
mv kustomize_*_${opsys}_amd64 kustomize
chmod u+x kustomize
```
使用 [Go] v1.10.1 或更高版本安装(如果可以访问 [golang.org]
<!-- @installkustomize @testAgainstLatestRelease -->
```
go install sigs.k8s.io/kustomize/kustomize
```