add zh docsy

This commit is contained in:
guoxudong
2020-06-15 13:39:13 +08:00
parent a0072a2cf9
commit 518147c129
240 changed files with 49830 additions and 1083 deletions

View File

@@ -0,0 +1,9 @@
---
title: "安装"
linkTitle: "安装"
weight: 20
type: docs
menu:
main:
weight: 10
---

View File

@@ -0,0 +1,20 @@
---
title: "可执行文件"
linkTitle: "可执行文件"
weight: 3
type: docs
description: >
下载编译好的二进制文件来安装 Kustomize。
---
适用于 Linux、MacOS 和 Windows 的各版本的二进制可执行文件可以在 [releases 页面] 上手动下载。
下面的[脚本]会检测你的操作系统,并下载相应的 kustomize 二进制文件到你当前的工作目录中。
```bash
curl -s "https://raw.githubusercontent.com/\
kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
```
[releases 页面]: https://github.com/kubernetes-sigs/kustomize/releases
[脚本]: https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh

View File

@@ -0,0 +1,16 @@
---
title: "Chocolatey"
linkTitle: "Chocolatey"
weight: 4
type: docs
description: >
Windows 系统可以使用 Chocolatey 安装 Kustomize。
---
```
choco install kustomize
```
有关软件包管理器 chocolatey 的使用以及对之前版本的支持,请参考以下链接:
- [Choco Package](https://chocolatey.org/packages/kustomize)
- [Package Source](https://github.com/kenmaglio/choco-kustomize)

View File

@@ -0,0 +1,20 @@
---
title: "Homebrew / MacPorts"
linkTitle: "Homebrew / MacPorts"
weight: 3
type: docs
description: >
MacOS 系统可以使用 Homebrew 或 MacPorts 来安装 Kustomize。
---
[Homebrew](https://brew.sh) 用户可以:
```
brew install kustomize
```
[MacPorts](https://www.macports.org) 用户可以:
```
sudo port install kustomize
```

View File

@@ -0,0 +1,41 @@
---
title: "Go 源码"
linkTitle: "Go 源码"
weight: 2
type: docs
description: >
使用 Go 源码安装 Kustomize。
---
需要先安装 [Go]。
## 无需克隆源码库直接构建 kustomize CLI
```bash
GOBIN=$(pwd)/ GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3
```
## 在本地克隆源码库构建 kustomize CLI
```bash
# 需要 go 1.13 或更高版本
unset GOPATH
# 详见 https://golang.org/doc/go1.13#modules
unset GO111MODULES
# 拉取 repo
git clone git@github.com:kubernetes-sigs/kustomize.git
# 进入目录
cd kustomize
# 如果您不想从 HEAD 开始构建, 则可以选择切换特定的标签
git checkout kustomize/v3.2.3
# 开始构建
(cd kustomize; go install .)
# 运行
~/go/bin/kustomize version
```
[Go]: https://golang.org