Skip to content

Commit a010435

Browse files
committed
Merge remote-tracking branch 'upstream/master' into lperkins/issue-8483-service-watch
2 parents 7eb1e91 + a0ec957 commit a010435

File tree

567 files changed

+132623
-13092
lines changed

Some content is hidden

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

567 files changed

+132623
-13092
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)

.travis.yml

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

55
# Don't want default ./... here:
66
install:
@@ -10,7 +10,7 @@ install:
1010
# Fetch dependencies for us to run the tests in test/examples_test.go
1111
- go get -t -v k8s.io/website/test
1212
# Make sure we are testing against the correct branch
13-
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.10 && popd
13+
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
1414

1515
# Simplified deduplication of dependencies.
1616
- cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
reviewers:
44
- zhangxiaoyu-zidif
55
- xiangpengzhao
6+
- stewart-yu
7+
- Rajakavitha1
68
# Approvers have all the ability of reviewers but their /approve makes
79
# auto-merge happen if a /lgtm exists, or vice versa, or they can do both
810
# No need for approvers to also be listed as reviewers

README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +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 docker-serve
37+
38+
# The underlying command:
39+
$ docker run \
40+
--rm \
41+
--interactive \
42+
--tty \
43+
--volume $(PWD):/src \
44+
kubernetes-hugo:latest \
45+
hugo
46+
```
47+
48+
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).
49+
1950
## Thank you!
2051

2152
Kubernetes thrives on community participation, and we really appreciate your
22-
contributions to our site and our documentation!
53+
contributions to our site and our documentation!

config.toml

+16-12
Original file line numberDiff line numberDiff line change
@@ -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/en/_index.html

+16-16
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,22 @@ <h4><a href="/docs/concepts/workloads/controllers/jobs-run-to-completion/">Batch
120120
<main>
121121
<h3>Case Studies</h3>
122122
<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>
123+
<div>
124+
<p>Cloud Native at Northwestern Mutual</p>
125+
<a href="/case-studies/northwestern-mutual/">Read more</a>
126+
</div>
127+
<div>
128+
<p>Launching and Scaling Up Experiments, Made Simple</p>
129+
<a href="/case-studies/openai/">Read more</a>
130+
</div>
131+
<div>
132+
<p>The New York Times: From Print to the Web to Cloud Native</p>
133+
<a href="/case-studies/newyorktimes/">Read more</a>
134+
</div>
135+
<div>
136+
<p>Finding Millions in Potential Savings in a Tough Retail Climate</p>
137+
<a href="/case-studies/nordstrom/">Read more</a>
138+
</div>
139139
</div>
140140

141141
<!--<div id="bigSocial">-->

content/en/blog/_posts/2017-02-00-Highly-Available-Kubernetes-Clusters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $ KUBE\_GCE\_ZONE=europe-west1-b ./cluster/kube-up.sh
3838

3939

4040

41-
Now, we will add two additional pools of worker nodes, each of three nodes, in zones europe-west1-c and europe-west1-d (more details on adding pools of worker nodes can be find [here](http://kubernetes.io/docs/admin/multiple-zones/)):
41+
Now, we will add two additional pools of worker nodes, each of three nodes, in zones europe-west1-c and europe-west1-d (more details on adding pools of worker nodes can be find [here](http://kubernetes.io/docs/setup/multiple-zones/)):
4242

4343

4444
```

content/en/blog/_posts/2018-04-25-open-source-charts-2017.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ SIG meetings provide focused opportunities for users, maintainers, and specialis
4040

4141
## Join the party!
4242

43-
You may already be using solutions that are successfully managed and scaled on Kubernetes. For example, GitHub.com, which hosts Kubernetes’ upstream source code, [now runs on Kubernetes](https://githubengineering.com/kubernetes-at-github/) https://githubengineering.com/kubernetes-at-github/) as well!
43+
You may already be using solutions that are successfully managed and scaled on Kubernetes. For example, GitHub.com, which hosts Kubernetes’ upstream source code, [now runs on Kubernetes](https://githubengineering.com/kubernetes-at-github/) as well!
4444

4545
Check out the [Kubernetes Contributors’ guide](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md) for more information on how to get started as a contributor.
4646

47-
You can also join the [weekly Kubernetes Community meeting](https://github.com/kubernetes/community/tree/master/communication#weekly-meeting)and consider [joining a SIG or two](https://github.com/kubernetes/community/blob/master/sig-list.md#master-sig-list).
47+
You can also join the [weekly Kubernetes Community meeting](https://github.com/kubernetes/community/tree/master/communication#weekly-meeting) and consider [joining a SIG or two](https://github.com/kubernetes/community/blob/master/sig-list.md#master-sig-list).

content/en/blog/_posts/2018-04-30-zero-downtime-deployment-kubernetes-jenkins.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Ever since we added the [Kubernetes Continuous Deploy](https://aka.ms/azjenkinsk
1010
## Rolling Update
1111

1212
Kubernetes supports the RollingUpdate strategy to replace old pods with new ones gradually, while continuing to serve clients without incurring downtime. To perform a RollingUpdate deployment:
13+
1314
* Set `.spec.strategy.type` to `RollingUpdate` (the default value).
1415
* Set `.spec.strategy.rollingUpdate.maxUnavailable` and `.spec.strategy.rollingUpdate.maxSurge` to some reasonable value.
1516
* `maxUnavailable`: the maximum number of pods that can be unavailable during the update process. This can be an absolute number or percentage of the replicas count; the default is 25%.

0 commit comments

Comments
 (0)