Skip to content

Commit 0a1ade9

Browse files
authored
Merge branch 'master' into patch-1
2 parents a5b8886 + 30e76b2 commit 0a1ade9

File tree

685 files changed

+69809
-13566
lines changed

Some content is hidden

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

685 files changed

+69809
-13566
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2-
> For 1.11 Features: set Milestone to 1.11 and Base Branch to release-1.11
2+
> For 1.12 Features: set Milestone to 1.12 and Base Branch to release-1.12
33
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4-
> NOTE: After opening the PR, please *un-check and re-check* the ["Allow edits from maintainers"](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) box so that maintainers can work on your patch and speed up the review process. This is a temporary workaround to address a known issue with GitHub.>
54
>
65
> Please delete this note before submitting the pull request.
76
8-
![Allow edits from maintainers checkbox](https://help.github.com/assets/images/help/pull_requests/allow-maintainers-to-make-edits-sidebar-checkbox.png)

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ nohup.out
2929

3030
# Hugo output
3131
public/
32+
33+
# User-specific editorconfig files
34+
.editorconfig

.travis.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
language: go
22
go:
3-
- 1.9.3
3+
- 1.10.2
44

55
# Don't want default ./... here:
66
install:
77
- export PATH=$GOPATH/bin:$PATH
88
- mkdir -p $HOME/gopath/src/k8s.io
99
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/website && cd $HOME/gopath/src/k8s.io/website
10-
# Fetch dependencies for us to run the tests in test/examples_test.go
11-
- go get -t -v k8s.io/website/test
12-
# Make sure we are testing against the correct branch
13-
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.10 && popd
1410

15-
# Simplified deduplication of dependencies.
11+
# Make sure we are testing against the correct branch
12+
- pushd $GOPATH/src/k8s.io && git clone https://github.com/kubernetes/kubernetes && popd
13+
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
1614
- cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/
1715
- rm -r $GOPATH/src/k8s.io/kubernetes/vendor/
1816

17+
# Fetch additional dependencies to run the tests in examples/examples_test.go
18+
- go get -t -v k8s.io/website/content/en/examples
19+
1920
script:
20-
# TODO(bep)
21-
- go test -v k8s.io/website/test #fixed by https://github.com/kubernetes/website/pull/8388
21+
- go test -v k8s.io/website/content/en/examples
2222
#- ./verify-docs-format.sh

Dockerfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Credit to Julien Guyomard (https://github.com/jguyomard). This Dockerfile
2+
# is essentially based on his Dockerfile at
3+
# https://github.com/jguyomard/docker-hugo/blob/master/Dockerfile. The only significant
4+
# change is that the Hugo version is now an overridable argument rather than a fixed
5+
# environment variable.
6+
7+
FROM alpine:latest
8+
9+
MAINTAINER Luc Perkins <[email protected]>
10+
11+
RUN apk add --no-cache \
12+
curl \
13+
git \
14+
openssh-client \
15+
rsync
16+
17+
ARG HUGO_VERSION
18+
19+
RUN mkdir -p /usr/local/src && \
20+
cd /usr/local/src && \
21+
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-64bit.tar.gz | tar -xz && \
22+
mv hugo /usr/local/bin/hugo && \
23+
curl -L https://bin.equinox.io/c/dhgbqpS8Bvy/minify-stable-linux-amd64.tgz | tar -xz && \
24+
mv minify /usr/local/bin && \
25+
addgroup -Sg 1000 hugo && \
26+
adduser -Sg hugo -u 1000 -h /src hugo
27+
28+
WORKDIR /src
29+
30+
EXPOSE 1313

Makefile

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
DOCKER = docker
2+
HUGO_VERSION = 0.40.3
3+
DOCKER_IMAGE = kubernetes-hugo
4+
DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(PWD):/src
5+
16
.PHONY: all build sass build-preview help serve
27

38
help: ## Show this help.
@@ -18,5 +23,11 @@ build-preview: ## Build site with drafts and future posts enabled.
1823
serve: ## Boot the development server.
1924
hugo server
2025

21-
stage: ## This needs to be updated for Hugo
22-
#docker run -ti --rm -v "${PWD}":/k8sdocs -p 4000:4000 gcr.io/google-samples/k8sdocs:1.1
26+
docker-image:
27+
$(DOCKER) build . --tag $(DOCKER_IMAGE) --build-arg HUGO_VERSION=$(HUGO_VERSION)
28+
29+
docker-build:
30+
$(DOCKER_RUN) $(DOCKER_IMAGE) hugo
31+
32+
stage:
33+
$(DOCKER_RUN) -p 1313:1313 $(DOCKER_IMAGE) hugo server --watch --bind 0.0.0.0

OWNERS

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# Reviewers can /lgtm /approve but not sufficient for auto-merge without an
22
# approver
33
reviewers:
4-
- zhangxiaoyu-zidif
5-
- xiangpengzhao
4+
- Rajakavitha1
65
- stewart-yu
7-
- Rajakavitha1
6+
- xiangpengzhao
7+
- zhangxiaoyu-zidif
8+
89
# Approvers have all the ability of reviewers but their /approve makes
910
# auto-merge happen if a /lgtm exists, or vice versa, or they can do both
1011
# No need for approvers to also be listed as reviewers
1112
approvers:
12-
- heckj
1313
- bradamant3
1414
- bradtopol
15-
- steveperry-53
16-
- zacharysarah
1715
- chenopis
16+
- kbarnard10
1817
- mistyhacks
18+
- ryanmcginnis
19+
- steveperry-53
1920
- tengqm
21+
- zacharysarah
22+
- zparnold

OWNERS_ALIASES

+27-4
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,25 @@ aliases:
6161
- smarterclayton
6262
- soltysh
6363
- sttts
64-
sig-cluster-lifecycle: #GH: sig-cluster-lifecycle-pr-reviews
64+
sig-cluster-lifecycle-kubeadm-approvers: # Approving changes to kubeadm documentation
6565
- timothysc
66+
- lukemarsden
6667
- luxas
6768
- roberthbailey
68-
- fabriziopandini
69+
- fabriziopandini
70+
sig-cluster-lifecycle-kubeadm-reviewers: # Reviewing kubeadm documentation
71+
- timothysc
72+
- lukemarsden
73+
- luxas
74+
- roberthbailey
75+
- fabriziopandini
76+
- kad
77+
- xiangpengzhao
78+
- stealthybox
79+
- liztio
80+
- chuckha
81+
- detiber
82+
- dixudx
6983
sig-cluster-ops:
7084
- zehicle
7185
- jdumars
@@ -83,10 +97,19 @@ aliases:
8397
- spxtr
8498
sig-docs: #Team: documentation; GH: sig-docs-pr-reviews
8599
- bradamant3
100+
- bradtopol
101+
- chenopis
102+
- kbarnard10
103+
- mistyhacks
104+
- rajakavitha1
105+
- ryanmcginnis
86106
- steveperry-53
107+
- stewart-yu
108+
- tengqm
109+
- xiangpengzhao
87110
- zacharysarah
88-
- bradtopol
89-
- heckj
111+
- zhangxiaoyu-zidif
112+
- zparnold
90113
sig-federation: #Team: Federation; e.g. Federated Clusters
91114
- csbell
92115
sig-gcp: #Google Cloud Platform; GH: sig-gcp-pr-reviews

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,38 @@ For more information about contributing to the Kubernetes documentation, see:
1616
* [Using Page Templates](http://kubernetes.io/docs/home/contribute/page-templates/)
1717
* [Documentation Style Guide](http://kubernetes.io/docs/home/contribute/style-guide/)
1818

19+
## Building the site using Docker
20+
21+
If you'd like, you can build the Kubernetes docs using Docker. To get started, build the image locally:
22+
23+
```bash
24+
make docker-image
25+
26+
# The underlying command:
27+
docker build . \
28+
--tag kubernetes-hugo \
29+
--build-arg HUGO_VERSION=0.40.3
30+
```
31+
32+
You can create an image for a different version of Hugo by changing the value of the `HUGO_VERSION` argument for the build. You *must* specify a version or the image will not build.
33+
Once the `kubernetes-hugo` image has been built locally, you can build the site:
34+
35+
```bash
36+
make stage
37+
38+
# The underlying command:
39+
docker run \
40+
--rm \
41+
--interactive \
42+
--tty \
43+
--volume $(PWD):/src \
44+
-p 1313:1313 \
45+
kubernetes-hugo \
46+
hugo server --watch --bind 0.0.0.0
47+
```
48+
49+
As when building without using a Docker container, the results of the build will be published to the `public` directory (the default output directory for [Hugo](https://gohugo.io), the static site generator used to build this site).
50+
1951
## Thank you!
2052

2153
Kubernetes thrives on community participation, and we really appreciate your

config.toml

+17-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ enableRobotsTXT = true
77

88
disableKinds = ["taxonomy", "taxonomyTerm"]
99

10-
ignoreFiles = [ "^OWNERS$", "README.md", "^node_modules$" ]
10+
ignoreFiles = [ "^OWNERS$", "README.md", "^node_modules$", "content/en/docs/doc-contributor-tools" ]
1111

1212
contentDir = "content/en"
1313

@@ -19,6 +19,9 @@ pygmentsUseClasses = false
1919
# See https://help.farbox.com/pygments.html
2020
pygmentsStyle = "emacs"
2121

22+
# Enable Git variables like commit, lastmod
23+
enableGitInfo = true
24+
2225
[blackfriday]
2326
hrefTargetBlank = true
2427
fractions = false
@@ -27,7 +30,7 @@ fractions = false
2730
date = ["date", ":filename", "publishDate", "lastmod"]
2831

2932
[permalinks]
30-
blog = "/:section/:year/:month/:day/:slug/"
33+
blog = "/:section/:year/:month/:day/:slug/"
3134

3235
# Be explicit about the output formats. We (currently) only want an RSS feed for the home page.
3336
[outputs]
@@ -45,23 +48,31 @@ time_format_blog = "Monday, January 02, 2006"
4548
description = "Production-Grade Container Orchestration"
4649
showedit = true
4750

48-
latest = "v1.10"
51+
latest = "v1.11"
4952

50-
fullversion = "v1.10.3"
51-
version = "v1.10"
53+
fullversion = "v1.11.0"
54+
version = "v1.11"
5255
githubbranch = "master"
5356
docsbranch = "master"
5457
deprecated = false
5558
currentUrl = "https://kubernetes.io/docs/home/"
5659
nextUrl = "http://kubernetes-io-vnext-staging.netlify.com/"
5760
githubWebsiteRepo = "github.com/kubernetes/website"
61+
githubWebsiteRaw = "raw.githubusercontent.com/kubernetes/website"
62+
63+
[[params.versions]]
64+
fullversion = "v1.11.0"
65+
version = "v1.11"
66+
githubbranch = "v1.11.0"
67+
docsbranch = "release-1.11"
68+
url = "https://kubernetes.io"
5869

5970
[[params.versions]]
6071
fullversion = "v1.10.3"
6172
version = "v1.10"
6273
githubbranch = "v1.10.3"
6374
docsbranch = "release-1.10"
64-
url = "https://kubernetes.io"
75+
url = "https://v1-10.docs.kubernetes.io"
6576

6677
[[params.versions]]
6778
fullversion = "v1.9.7"
@@ -84,13 +95,6 @@ githubbranch = "v1.7.6"
8495
docsbranch = "release-1.7"
8596
url = "https://v1-7.docs.kubernetes.io"
8697

87-
[[params.versions]]
88-
fullversion = "v1.6.8"
89-
version = "v1.6"
90-
githubbranch = "v1.6.8"
91-
docsbranch = "release-1.6"
92-
url = "https://v1-6.docs.kubernetes.io"
93-
9498

9599
# Language definitions.
96100

content/.gitkeep

Whitespace-only changes.

content/cn/docs/concepts/configuration/secret.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $ kubectl create -f ./secret.yaml
104104
secret "mysecret" created
105105
```
106106

107-
**编码注意:** secret 数据的序列化 JSON 和 YAML 值使用 base64 编码成字符串。换行符在这些字符串中无效,必须省略。当在 Darwin/OS X 上使用 `base64` 实用程序时,用户应避免使用 `-b` 选项来拆分长行。另外,对于 Linux 用户如果 `-w` 选项不可用的话,应该添加选项 `-w 0` 到 `base64` 命令或管道 `base64 | tr -d '\n' ` 。
107+
**编码注意:** secret 数据的序列化 JSON 和 YAML 值使用 base64 编码成字符串。换行符在这些字符串中无效,必须省略。当在 Darwin/macOS 上使用 `base64` 实用程序时,用户应避免使用 `-b` 选项来拆分长行。另外,对于 Linux 用户如果 `-w` 选项不可用的话,应该添加选项 `-w 0` 到 `base64` 命令或管道 `base64 | tr -d '\n' ` 。
108108

109109
#### 解码 Secret
110110

content/cn/docs/tasks/administer-cluster/memory-defaults-pod-2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: default-mem-demo-2
55
spec:
66
containers:
7-
- name: defalt-mem-demo-2-ctr
7+
- name: default-mem-demo-2-ctr
88
image: nginx
99
resources:
1010
limits:

content/en/_index.html

+28-18
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ <h2>The Challenges of Migrating 150+ Microservices to Kubernetes</h2>
4747
<button id="desktopShowVideoButton" onclick="kub.showVideo()">Watch Video</button>
4848
<br>
4949
<br>
50+
<br>
5051
<a href="https://www.lfasiallc.com/events/kubecon-cloudnativecon-china-2018/" button id= "desktopKCButton">Attend KubeCon in Shanghai on Nov. 14-15, 2018</a>
5152
<br>
5253
<br>
@@ -120,22 +121,23 @@ <h4><a href="/docs/concepts/workloads/controllers/jobs-run-to-completion/">Batch
120121
<main>
121122
<h3>Case Studies</h3>
122123
<div id="caseStudiesWrapper">
123-
<div>
124-
<p>Using Kubernetes to reinvent the world's largest educational company</p>
125-
<a href="/case-studies/pearson/">Read more</a>
126-
</div>
127-
<div>
128-
<p>Kubernetes at Box: Microservices at Maximum Velocity</p>
129-
<a href="https://blog.box.com/blog/kubernetes-box-microservices-maximum-velocity/">Read more</a>
130-
</div>
131-
<div>
132-
<p>Inside eBay's shift to Kubernetes and containers atop OpenStack</p>
133-
<a href="https://www.nextplatform.com/2015/11/12/inside-ebays-shift-to-kubernetes-and-containers-atop-openstack/">Read more</a>
134-
</div>
135-
<div>
136-
<p>Migrating from a homegrown 'cluster' to Kubernetes</p>
137-
<a href="https://www.youtube.com/watch?v=6XGUTu3WhBw">Watch the video</a>
138-
</div>
124+
<div>
125+
<p>Supporting Fast Decisioning Applications with Kubernetes</p>
126+
<a href="/case-studies/capital-one">Read more</a>
127+
</div>
128+
<div>
129+
<p>Driving Banking Innovation with Cloud Native</p>
130+
<a href="/case-studies/ing">Read more</a>
131+
</div>
132+
<div>
133+
<p>Cloud Native at Northwestern Mutual</p>
134+
<a href="/case-studies/northwestern-mutual/">Read more</a>
135+
</div>
136+
<div>
137+
<p>Launching and Scaling Up Experiments, Made Simple</p>
138+
<a href="/case-studies/openai/">Read more</a>
139+
</div>
140+
139141
</div>
140142

141143
<!--<div id="bigSocial">-->
@@ -161,8 +163,16 @@ <h3>Case Studies</h3>
161163
<!--</div>-->
162164
<!--</div>-->
163165
<h5 style="text-align: center"><a href="/case-studies/" style="color: #3371E3; font-weight: 400">View all case studies</a></h5>
164-
</main>
165-
</section>
166+
</main>
167+
</section>
168+
<section id="cncf">
169+
<main>
170+
<center>
171+
<p>We are a <a href="https://cncf.io/">CNCF</a> graduated project</p>
172+
</center>
173+
</main>
174+
</section>
175+
166176

167177

168178

content/en/blog/_posts/2015-11-00-Creating-A-Raspberry-Pi-Cluster-Running-Kubernetes-The-Shopping-List-Part-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ At Devoxx Belgium and Devoxx Morocco, Ray Tsang and I showed a Raspberry Pi clus
88

99
### Wait! Why the heck build a Raspberry Pi cluster running Kubernetes?&nbsp;
1010

11-
We had two big reasons to build the Pi cluster at Quintor. First of all we wanted to experiment with container technology at scale on real hardware. You can try out container technology using virtual machines, but Kubernetes runs great on on bare metal too. To explore what that’d be like, we built a Raspberry Pi cluster just like we would build a cluster of machines in a production datacenter. This allowed us to understand and simulate how Kubernetes would work when we move it to our data centers.
11+
We had two big reasons to build the Pi cluster at Quintor. First of all we wanted to experiment with container technology at scale on real hardware. You can try out container technology using virtual machines, but Kubernetes runs great on bare metal too. To explore what that’d be like, we built a Raspberry Pi cluster just like we would build a cluster of machines in a production datacenter. This allowed us to understand and simulate how Kubernetes would work when we move it to our data centers.
1212

1313
Secondly, we did not want to blow the budget to do this exploration. And what is cheaper than a Raspberry Pi! If you want to build a cluster comprising many nodes, each node should have a good cost to performance ratio. Our Pi cluster has 20 CPU cores, which is more than many servers, yet cost us less than $400. Additionally, the total power consumption is low and the form factor is small, which is great for these kind of demo systems.
1414

0 commit comments

Comments
 (0)