Skip to content

Commit 7deb7e7

Browse files
authored
Merge branch 'main' into patch-1
2 parents 3eb9334 + f1f8240 commit 7deb7e7

File tree

1,994 files changed

+81246
-29386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,994 files changed

+81246
-29386
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 🛈
1+
<!-- ℹ️
22
33
Hello!
44
@@ -9,7 +9,7 @@
99
PLEASE title the FIRST commit appropriately, so that if you squash all
1010
your commits into one, the combined commit message makes sense.
1111
For overall help on editing and submitting pull requests, visit:
12-
https://kubernetes.io/docs/contribute/start/#improve-existing-content
12+
https://kubernetes.io/docs/contribute/suggest-improvements/
1313
1414
Use the default base branch, “main”, if you're documenting existing
1515
features in the English localization.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ These are just guidelines, not rules. Use your best judgment, and feel free to p
99

1010
### Code of Conduct
1111

12-
Kubernetes follows the [Cloud Native Computing Foundation (CNCF) Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to the
12+
Kubernetes follows the [Cloud Native Computing Foundation (CNCF) Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to the
1313
[Kubernetes Code of Conduct Committee](https://github.com/kubernetes/community/tree/master/committee-code-of-conduct) <[email protected]>.
1414

1515
### Documentation and Site Decisions

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# change is that the Hugo version is now an overridable argument rather than a fixed
55
# environment variable.
66

7-
FROM golang:1.16-alpine
7+
FROM golang:1.18-alpine
88

99
LABEL maintainer="Luc Perkins <[email protected]>"
1010

@@ -24,7 +24,7 @@ RUN mkdir $HOME/src && \
2424
cd "hugo-${HUGO_VERSION}" && \
2525
go install --tags extended
2626

27-
FROM golang:1.16-alpine
27+
FROM golang:1.18-alpine
2828

2929
RUN apk add --no-cache \
3030
runuser \

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CONTAINER_ENGINE ?= docker
99
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
1010
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
1111
CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
12-
CONTAINER_RUN = $(CONTAINER_ENGINE) run --rm --interactive --tty --volume $(CURDIR):/src
12+
CONTAINER_RUN = "$(CONTAINER_ENGINE)" run --rm --interactive --tty --volume "$(CURDIR):/src"
1313

1414
CCRED=\033[0;31m
1515
CCEND=\033[0m
@@ -77,8 +77,9 @@ container-push: container-image ## Push container image for the preview of the w
7777
container-build: module-check
7878
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development"
7979

80-
container-serve: module-check ## Boot the development server using container. Run `make container-image` before this.
81-
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir
80+
# no build lock to allow for read-only mounts
81+
container-serve: module-check ## Boot the development server using container.
82+
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir --noBuildLock
8283

8384
test-examples:
8485
scripts/test_examples.sh install
@@ -94,7 +95,7 @@ docker-internal-linkcheck:
9495

9596
container-internal-linkcheck: link-checker-image-pull
9697
$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --config config.toml,linkcheck-config.toml --buildFuture --environment test
97-
$(CONTAINER_ENGINE) run --mount type=bind,source=$(CURDIR),target=/test --rm wjdp/htmltest htmltest
98+
$(CONTAINER_ENGINE) run --mount "type=bind,source=$(CURDIR),target=/test" --rm wjdp/htmltest htmltest
9899

99100
clean-api-reference: ## Clean all directories in API reference directory, preserve _index.md
100101
rm -rf content/en/docs/reference/kubernetes-api/*/

OWNERS_ALIASES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ aliases:
33
- onlydole
44
- mrbobbytables
55
- sftim
6+
- nate-double-u
67
sig-docs-blog-reviewers: # Reviewers for blog content
78
- mrbobbytables
89
- onlydole
@@ -199,6 +200,7 @@ aliases:
199200
- devlware
200201
- jhonmike
201202
- rikatz
203+
- stormqueen1990
202204
- yagonobre
203205
sig-docs-vi-owners: # Admins for Vietnamese content
204206
- huynguyennovem

README-ko.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
이 저장소에는 [쿠버네티스 웹사이트 및 문서](https://kubernetes.io/)를 빌드하는 데 필요한 자산이 포함되어 있습니다. 기여해주셔서 감사합니다!
66

7+
- [문서에 기여하기](#contributing-to-the-docs)
8+
- [`README.md`에 대한 쿠버네티스 문서 현지화](#localization-readmemds)
9+
710
# 저장소 사용하기
811

912
Hugo(확장 버전)를 사용하여 웹사이트를 로컬에서 실행하거나, 컨테이너 런타임에서 실행할 수 있습니다. 라이브 웹사이트와의 배포 일관성을 제공하므로, 컨테이너 런타임을 사용하는 것을 적극 권장합니다.
@@ -40,6 +43,8 @@ make container-image
4043
make container-serve
4144
```
4245

46+
에러가 발생한다면, Hugo 컨테이너를 위한 컴퓨팅 리소스가 충분하지 않기 때문일 수 있습니다. 이를 해결하려면, 머신에서 도커에 허용할 CPU 및 메모리 사용량을 늘립니다([MacOSX](https://docs.docker.com/docker-for-mac/#resources) / [Windows](https://docs.docker.com/docker-for-windows/#resources)).
47+
4348
웹사이트를 보려면 브라우저를 http://localhost:1313 으로 엽니다. 소스 파일을 변경하면 Hugo가 웹사이트를 업데이트하고 브라우저를 강제로 새로 고칩니다.
4449

4550
## Hugo를 사용하여 로컬에서 웹사이트 실행하기
@@ -56,7 +61,45 @@ make serve
5661

5762
그러면 포트 1313에서 로컬 Hugo 서버가 시작됩니다. 웹사이트를 보려면 http://localhost:1313 으로 브라우저를 엽니다. 소스 파일을 변경하면, Hugo가 웹사이트를 업데이트하고 브라우저를 강제로 새로 고칩니다.
5863

64+
## API 레퍼런스 페이지 빌드하기
65+
66+
`content/en/docs/reference/kubernetes-api`에 있는 API 레퍼런스 페이지는 <https://github.com/kubernetes-sigs/reference-docs/tree/master/gen-resourcesdocs>를 사용하여 Swagger 명세로부터 빌드되었습니다.
67+
68+
새로운 쿠버네티스 릴리스를 위해 레퍼런스 페이지를 업데이트하려면 다음 단계를 수행합니다.
69+
70+
1. `api-ref-generator` 서브모듈을 받아옵니다.
71+
72+
```bash
73+
git submodule update --init --recursive --depth 1
74+
```
75+
76+
2. Swagger 명세를 업데이트합니다.
77+
78+
```bash
79+
curl 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json' > api-ref-assets/api/swagger.json
80+
```
81+
82+
3. `api-ref-assets/config/`에서, 새 릴리스의 변경 사항이 반영되도록 `toc.yaml``fields.yaml` 파일을 업데이트합니다.
83+
84+
4. 다음으로, 페이지를 빌드합니다.
85+
86+
```bash
87+
make api-reference
88+
```
89+
90+
로컬에서 결과를 테스트하기 위해 컨테이너 이미지를 이용하여 사이트를 빌드 및 실행합니다.
91+
92+
```bash
93+
make container-image
94+
make container-serve
95+
```
96+
97+
웹 브라우저에서, <http://localhost:1313/docs/reference/kubernetes-api/>로 이동하여 API 레퍼런스를 확인합니다.
98+
99+
5. 모든 API 변경사항이 `toc.yaml``fields.yaml` 구성 파일에 반영되었다면, 새로 생성된 API 레퍼런스 페이지에 대한 PR을 엽니다.
100+
59101
## 문제 해결
102+
60103
### error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
61104

62105
Hugo는 기술적인 이유로 2개의 바이너리 세트로 제공됩니다. 현재 웹사이트는 **Hugo 확장** 버전 기반에서만 실행됩니다. [릴리스 페이지](https://github.com/gohugoio/hugo/releases)에서 이름에 `extended` 가 포함된 아카이브를 찾습니다. 확인하려면, `hugo version` 을 실행하고 `extended` 라는 단어를 찾습니다.
@@ -97,17 +140,17 @@ sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist
97140

98141
이 내용은 Catalina와 Mojave macOS에서 작동합니다.
99142

100-
101143
# SIG Docs에 참여하기
102144

103145
[커뮤니티 페이지](https://github.com/kubernetes/community/tree/master/sig-docs#meetings)에서 SIG Docs 쿠버네티스 커뮤니티 및 회의에 대한 자세한 내용을 확인합니다.
104146

105147
이 프로젝트의 메인테이너에게 연락을 할 수도 있습니다.
106148

107-
- [슬랙](https://kubernetes.slack.com/messages/sig-docs) [슬랙에 초대 받기](https://slack.k8s.io/)
149+
- [슬랙](https://kubernetes.slack.com/messages/sig-docs)
150+
- [슬랙에 초대 받기](https://slack.k8s.io/)
108151
- [메일링 리스트](https://groups.google.com/forum/#!forum/kubernetes-sig-docs)
109152

110-
# 문서에 기여하기
153+
# 문서에 기여하기 {#contributing-to-the-docs}
111154

112155
이 저장소에 대한 복제본을 여러분의 GitHub 계정에 생성하기 위해 화면 오른쪽 위 영역에 있는 **Fork** 버튼을 클릭하면 됩니다. 이 복제본은 *fork* 라고 부릅니다. 여러분의 fork에서 원하는 임의의 변경 사항을 만들고, 해당 변경 사항을 보낼 준비가 되었다면, 여러분의 fork로 이동하여 새로운 풀 리퀘스트를 만들어 우리에게 알려주시기 바랍니다.
113156

@@ -124,7 +167,15 @@ sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist
124167
* [문서화 스타일 가이드](http://kubernetes.io/docs/contribute/style/style-guide/)
125168
* [쿠버네티스 문서 현지화](https://kubernetes.io/docs/contribute/localization/)
126169

127-
# `README.md`에 대한 쿠버네티스 문서 현지화(localization)
170+
### 신규 기여자 대사(ambassadors)
171+
172+
기여 과정에서 도움이 필요하다면, [신규 기여자 대사](https://kubernetes.io/docs/contribute/advanced/#serve-as-a-new-contributor-ambassador)에게 연락하는 것이 좋습니다. 이들은 신규 기여자를 멘토링하고 첫 PR 과정에서 도움을 주는 역할도 담당하는 SIG Docs 승인자입니다. 신규 기여자 대사에게 문의할 가장 좋은 곳은 [쿠버네티스 슬랙](https://slack.k8s.io/)입니다. 현재 SIG Docs 신규 기여자 대사는 다음과 같습니다.
173+
174+
| Name | Slack | GitHub |
175+
| -------------------------- | -------------------------- | -------------------------- |
176+
| Arsh Sharma | @arsh | @RinkiyaKeDad |
177+
178+
# `README.md`에 대한 쿠버네티스 문서 현지화(localization) {#localization-readmemds}
128179

129180
## 한국어
130181

@@ -135,6 +186,7 @@ sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist
135186
* 손석호 ([GitHub - @seokho-son](https://github.com/seokho-son))
136187
* [슬랙 채널](https://kubernetes.slack.com/messages/kubernetes-docs-ko)
137188

189+
138190
# 행동 강령
139191

140192
쿠버네티스 커뮤니티 참여는 [CNCF 행동 강령](https://github.com/cncf/foundation/blob/master/code-of-conduct-languages/ko.md)을 따릅니다.

README-zh.md

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The Kubernetes website uses the [Docsy Hugo theme](https://github.com/google/doc
6565
Kubernetes 网站使用的是 [Docsy Hugo 主题](https://github.com/google/docsy#readme)。 即使你打算在容器中运行网站,我们也强烈建议你通过运行以下命令来引入子模块和其他开发依赖项:
6666

6767
```bash
68-
# pull in the Docsy submodule
68+
# 引入 Docsy 子模块
6969
git submodule update --init --recursive --depth 1
7070
```
7171

@@ -80,7 +80,7 @@ To build the site in a container, run the following to build the container image
8080
要在容器中构建网站,请通过以下命令来构建容器镜像并运行:
8181

8282
```bash
83-
make container-image
83+
# 你可以将 $CONTAINER_ENGINE 设置为任何 Docker 类容器工具的名称
8484
make container-serve
8585
```
8686

@@ -113,7 +113,7 @@ Hugo 扩展版本。
113113
若要在本地构造和测试网站,请运行:
114114

115115
```bash
116-
# install dependencies
116+
# 安装依赖
117117
npm ci
118118
make serve
119119
```
@@ -257,6 +257,51 @@ This works for Catalina as well as Mojave macOS.
257257
-->
258258
这适用于 Catalina 和 Mojave macOS。
259259

260+
### 对执行 make container-image 命令部分地区访问超时的故障排除
261+
262+
现象如下:
263+
264+
```shell
265+
langs/language.go:23:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/text/@v/v0.3.7.zip": dial tcp 142.251.43.17:443: i/o timeout
266+
langs/language.go:24:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/text/@v/v0.3.7.zip": dial tcp 142.251.43.17:443: i/o timeout
267+
common/text/transform.go:21:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/text/@v/v0.3.7.zip": dial tcp 142.251.43.17:443: i/o timeout
268+
common/text/transform.go:22:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/text/@v/v0.3.7.zip": dial tcp 142.251.43.17:443: i/o timeout
269+
common/text/transform.go:23:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/text/@v/v0.3.7.zip": dial tcp 142.251.43.17:443: i/o timeout
270+
hugolib/integrationtest_builder.go:29:2: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/tools/@v/v0.1.11.zip": dial tcp 142.251.42.241:443: i/o timeout
271+
deploy/google.go:24:2: google.golang.org/[email protected]: Get "https://proxy.golang.org/google.golang.org/api/@v/v0.76.0.zip": dial tcp 142.251.43.17:443: i/o timeout
272+
parser/metadecoders/decoder.go:32:2: gopkg.in/[email protected]: Get "https://proxy.golang.org/gopkg.in/yaml.v2/@v/v2.4.0.zip": dial tcp 142.251.42.241:443: i/o timeout
273+
The command '/bin/sh -c mkdir $HOME/src && cd $HOME/src && curl -L https://github.com/gohugoio/hugo/archive/refs/tags/v${HUGO_VERSION}.tar.gz | tar -xz && cd "hugo-${HUGO_VERS ION}" && go install --tags extended' returned a non-zero code: 1
274+
make: *** [Makefile:69:container-image] error 1
275+
```
276+
277+
请修改 `Dockerfile` 文件,为其添加网络代理。修改内容如下:
278+
279+
```dockerfile
280+
...
281+
FROM golang:1.18-alpine
282+
283+
LABEL maintainer="Luc Perkins <[email protected]>"
284+
285+
ENV GO111MODULE=on # 需要添加内容1
286+
287+
ENV GOPROXY=https://proxy.golang.org,direct # 需要添加内容2
288+
289+
RUN apk add --no-cache \
290+
curl \
291+
gcc \
292+
g++ \
293+
musl-dev \
294+
build-base \
295+
libc6-compat
296+
297+
ARG HUGO_VERSION
298+
...
299+
```
300+
301+
将 "https://proxy.golang.org" 替换为本地可以使用的代理地址。
302+
303+
**注意:** 此部分仅适用于中国大陆
304+
260305
<!--
261306
## Get involved with SIG Docs
262307

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ git submodule update --init --recursive --depth 1
3636

3737
## Running the website using a container
3838

39-
To build the site in a container, run the following to build the container image and run it:
39+
To build the site in a container, run the following:
4040

4141
```bash
42-
make container-image
42+
# You can set $CONTAINER_ENGINE to the name of any Docker-like container tool
4343
make container-serve
4444
```
4545

@@ -189,7 +189,7 @@ If you need help at any point when contributing, the [New Contributor Ambassador
189189

190190
## Code of conduct
191191

192-
Participation in the Kubernetes community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
192+
Participation in the Kubernetes community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
193193

194194
## Thank you
195195

0 commit comments

Comments
 (0)