Skip to content

Commit 32ff99f

Browse files
authored
Merge pull request #15 from kubernetes/main
merge
2 parents 34b3f3d + 3f5a3fe commit 32ff99f

File tree

759 files changed

+28771
-8151
lines changed

Some content is hidden

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

759 files changed

+28771
-8151
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
For overall help on editing and submitting pull requests, visit:
1212
https://kubernetes.io/docs/contribute/start/#improve-existing-content
1313
14-
Use the default base branch, “master”, if you're documenting existing
14+
Use the default base branch, “main”, if you're documenting existing
1515
features in the English localization.
1616
1717
If you're working on a different localization (not English), see

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda
66
# but this can be overridden when calling make, e.g.
77
# CONTAINER_ENGINE=podman make container-image
88
CONTAINER_ENGINE ?= docker
9+
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
910
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
10-
CONTAINER_IMAGE = kubernetes-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
11+
CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
1112
CONTAINER_RUN = $(CONTAINER_ENGINE) run --rm --interactive --tty --volume $(CURDIR):/src
1213

1314
CCRED=\033[0;31m
@@ -19,7 +20,11 @@ help: ## Show this help.
1920
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
2021

2122
module-check:
22-
@git submodule status --recursive | awk '/^[+-]/ {printf "\033[31mWARNING\033[0m Submodule not initialized: \033[34m%s\033[0m\n",$$2}' 1>&2
23+
@git submodule status --recursive | awk '/^[+-]/ {err = 1; printf "\033[31mWARNING\033[0m Submodule not initialized: \033[34m%s\033[0m\n",$$2} END { if (err != 0) print "You need to run \033[32mmake module-init\033[0m to initialize missing modules first"; exit err }' 1>&2
24+
25+
module-init:
26+
@echo "Initializing submodules..." 1>&2
27+
@git submodule update --init --recursive --depth 1
2328

2429
all: build ## Build site with production settings and put deliverables in ./public
2530

README-de.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ Um die Kubernetes-Website lokal laufen zu lassen, empfiehlt es sich, ein speziel
3737

3838
> Wenn Sie die Website lieber lokal ohne Docker ausführen möchten, finden Sie weitere Informationen unter [Website lokal mit Hugo ausführen](#Die-Site-lokal-mit-Hugo-ausführen).
3939
40+
Das benötigte [Docsy Hugo theme](https://github.com/google/docsy#readme) muss als git submodule installiert werden:
41+
42+
```
43+
#Füge das Docsy submodule hinzu
44+
git submodule update --init --recursive --depth 1
45+
```
46+
4047
Wenn Sie Docker [installiert](https://www.docker.com/get-started) haben, erstellen Sie das Docker-Image `kubernetes-hugo` lokal:
4148

4249
```bash
@@ -55,9 +62,18 @@ make container-serve
5562

5663
Hugo-Installationsanweisungen finden Sie in der [offiziellen Hugo-Dokumentation](https://gohugo.io/getting-started/installing/). Stellen Sie sicher, dass Sie die Hugo-Version installieren, die in der Umgebungsvariablen `HUGO_VERSION` in der Datei [`netlify.toml`](netlify.toml#L9) angegeben ist.
5764

65+
Das benötigte [Docsy Hugo theme](https://github.com/google/docsy#readme) muss als git submodule installiert werden:
66+
67+
```
68+
#Füge das Docsy submodule hinzu
69+
git submodule update --init --recursive --depth 1
70+
```
71+
5872
So führen Sie die Site lokal aus, wenn Sie Hugo installiert haben:
5973

6074
```bash
75+
# Installieren der JavaScript Abhängigkeiten
76+
npm ci
6177
make serve
6278
```
6379

README-zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Learn more about SIG Docs Kubernetes community and meetings on the [community pa
174174
175175
You can also reach the maintainers of this project at:
176176
177-
- [Slack](https://kubernetes.slack.com/messages/sig-docs)
177+
- [Slack](https://kubernetes.slack.com/messages/sig-docs) [Get an invite for this Slack](https://slack.k8s.io/)
178178
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-sig-docs)
179179
-->
180180
# 参与 SIG Docs 工作
@@ -184,7 +184,7 @@ You can also reach the maintainers of this project at:
184184

185185
你也可以通过以下渠道联系本项目的维护人员:
186186

187-
- [Slack](https://kubernetes.slack.com/messages/sig-docs)
187+
- [Slack](https://kubernetes.slack.com/messages/sig-docs) [加入Slack](https://slack.k8s.io/)
188188
- [邮件列表](https://groups.google.com/forum/#!forum/kubernetes-sig-docs)
189189

190190
<!--

cloudbuild.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
3+
# this must be specified in seconds. If omitted, defaults to 600s (10 mins)
4+
timeout: 1200s
5+
# this prevents errors if you don't use both _GIT_TAG and _PULL_BASE_REF,
6+
# or any new substitutions added in the future.
7+
options:
8+
substitution_option: ALLOW_LOOSE
9+
steps:
10+
# It's fine to bump the tag to a recent version, as needed
11+
- name: "gcr.io/k8s-testimages/gcb-docker-gcloud:v20190906-745fed4"
12+
entrypoint: make
13+
env:
14+
- DOCKER_CLI_EXPERIMENTAL=enabled
15+
- TAG=$_GIT_TAG
16+
- BASE_REF=$_PULL_BASE_REF
17+
args:
18+
- container-image
19+
substitutions:
20+
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
21+
# can be used as a substitution
22+
_GIT_TAG: "12345"
23+
# _PULL_BASE_REF will contain the ref that was pushed to to trigger this build -
24+
# a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
25+
_PULL_BASE_REF: "master"

content/en/_index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ <h2>The Challenges of Migrating 150+ Microservices to Kubernetes</h2>
4343
<button id="desktopShowVideoButton" onclick="kub.showVideo()">Watch Video</button>
4444
<br>
4545
<br>
46-
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/?utm_source=kubernetes.io&utm_medium=nav&utm_campaign=kccncna20" button id="desktopKCButton">Attend KubeCon NA virtually on November 17-20, 2020</a>
46+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/?utm_source=kubernetes.io&utm_medium=nav&utm_campaign=kccncna21" button id="desktopKCButton">Attend KubeCon North America on October 11-15, 2021</a>
4747
<br>
4848
<br>
4949
<br>
5050
<br>
51-
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/?utm_source=kubernetes.io&utm_medium=nav&utm_campaign=kccnceu21" button id="desktopKCButton">Attend KubeCon EU virtually on May 4 – 7, 2021</a>
51+
<a href="https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/?utm_source=kubernetes.io&utm_medium=nav&utm_campaign=kccnceu21" button id="desktopKCButton">Revisit KubeCon EU 2021</a>
5252
</div>
5353
<div id="videoPlayer">
5454
<iframe data-url="https://www.youtube.com/embed/H06qrNmGqyE?autoplay=1" frameborder="0" allowfullscreen></iframe>
@@ -58,4 +58,4 @@ <h2>The Challenges of Migrating 150+ Microservices to Kubernetes</h2>
5858

5959
{{< blocks/kubernetes-features >}}
6060

61-
{{< blocks/case-studies >}}
61+
{{< blocks/case-studies >}}

content/en/blog/_posts/2018-01-00-Core-Workloads-Api-Ga.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ The core workloads API surface is stable, but it’s still software, and softwar
9595
--Kenneth Owens, Software Engineer, Google
9696

9797

98-
- [Download](http://get.k8s.io/) Kubernetes
98+
- [Download](https://get.k8s.io/) Kubernetes
9999
- Get involved with the Kubernetes project on [GitHub](https://github.com/kubernetes/kubernetes)
100100
- Post questions (or answer questions) on [Stack Overflow](http://stackoverflow.com/questions/tagged/kubernetes)
101101
- Connect with the community on [Slack](http://slack.k8s.io/)

content/en/blog/_posts/2019-07-23-get-started-with-kubernetes-using-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Run the following command to have Docker run the application in a container and
120120
```
121121
docker run -p 5001:5000 hello-python
122122
```
123-
Now navigate to http://localhost:5001, and you should see the “Hello form Python!” message.
123+
Now navigate to http://localhost:5001, and you should see the “Hello from Python!” message.
124124

125125
### More info
126126
* [Get started with Docker](https://docs.docker.com/get-started/)
@@ -201,7 +201,7 @@ kubectl get pods
201201
```
202202
<img src="/images/blog/get-started-with-kubernetes-using-python/kubectl-get-pods.png" alt="Pod listing" />
203203

204-
Now navigate to http://localhost:6000, and you should see the “Hello form Python!” message.
204+
Now navigate to http://localhost:6000, and you should see the “Hello from Python!” message.
205205

206206
That’s it! The application is now running in Kubernetes!
207207

0 commit comments

Comments
 (0)