Skip to content

Commit 44eea99

Browse files
committed
Merge branch 'master' into issue#28062
2 parents 2312296 + 765877a commit 44eea99

File tree

357 files changed

+8002
-8181
lines changed

Some content is hidden

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

357 files changed

+8002
-8181
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ help: ## Show this help.
1919
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
2020

2121
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
22+
@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
23+
24+
module-init:
25+
@echo "Initializing submodules..." 1>&2
26+
@git submodule update --init --recursive --depth 1
2327

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

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
<!--

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

content/en/docs/concepts/cluster-administration/flow-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,6 @@ When you enable the API Priority and Fairness feature, the kube-apiserver serves
526526

527527

528528
For background information on design details for API priority and fairness, see
529-
the [enhancement proposal](https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20190228-priority-and-fairness.md).
529+
the [enhancement proposal](https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1040-priority-and-fairness).
530530
You can make suggestions and feature requests via [SIG API Machinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery)
531531
or the feature's [slack channel](http://kubernetes.slack.com/messages/api-priority-and-fairness).

content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ message AllocatableResourcesResponse {
253253

254254
`ContainerDevices` do expose the topology information declaring to which NUMA cells the device is affine.
255255
The NUMA cells are identified using a opaque integer ID, which value is consistent to what device
256-
plugins report [when they register themselves to the kubelet](https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager).
256+
plugins report [when they register themselves to the kubelet](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager).
257257

258258

259259
The gRPC service is served over a unix socket at `/var/lib/kubelet/pod-resources/kubelet.sock`.

content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ During a node-pressure eviction, the kubelet sets the `PodPhase` for the
1616
selected pods to `Failed`. This terminates the pods.
1717

1818
Node-pressure eviction is not the same as
19-
[API-initiated eviction](/docs/concepts/scheduling-eviction/eviction/#api-eviction).
19+
[API-initiated eviction](/docs/concepts/scheduling-eviction/api-eviction/).
2020

2121
The kubelet does not respect your configured `PodDisruptionBudget` or the pod's
2222
`terminationGracePeriodSeconds`. If you use [soft eviction thresholds](#soft-eviction-thresholds),
@@ -408,4 +408,4 @@ to estimate or measure an optimal memory limit value for that container.
408408
* Learn about [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/)
409409
* Learn about [PodDisruptionBudgets](/docs/tasks/run-application/configure-pdb/)
410410
* Learn about [Quality of Service](/docs/tasks/configure-pod-container/quality-service-pod/) (QoS)
411-
* Check out the [Eviction API](/docs/reference/generated/kubernetes-api/{{<param "version">}}/#create-eviction-pod-v1-core)
411+
* Check out the [Eviction API](/docs/reference/generated/kubernetes-api/{{<param "version">}}/#create-eviction-pod-v1-core)

content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,40 @@ each resource to score nodes based on the request to capacity ratio. This
2626
allows users to bin pack extended resources by using appropriate parameters
2727
and improves the utilization of scarce resources in large clusters. The
2828
behavior of the `RequestedToCapacityRatioResourceAllocation` priority function
29-
can be controlled by a configuration option called
30-
`requestedToCapacityRatioArguments`. This argument consists of two parameters
31-
`shape` and `resources`. The `shape` parameter allows the user to tune the
32-
function as least requested or most requested based on `utilization` and
33-
`score` values. The `resources` parameter consists of `name` of the resource
34-
to be considered during scoring and `weight` specify the weight of each
35-
resource.
29+
can be controlled by a configuration option called `RequestedToCapacityRatioArgs`.
30+
This argument consists of two parameters `shape` and `resources`. The `shape`
31+
parameter allows the user to tune the function as least requested or most
32+
requested based on `utilization` and `score` values. The `resources` parameter
33+
consists of `name` of the resource to be considered during scoring and `weight`
34+
specify the weight of each resource.
3635

3736
Below is an example configuration that sets
3837
`requestedToCapacityRatioArguments` to bin packing behavior for extended
3938
resources `intel.com/foo` and `intel.com/bar`.
4039

4140
```yaml
42-
apiVersion: v1
43-
kind: Policy
41+
apiVersion: kubescheduler.config.k8s.io/v1beta1
42+
kind: KubeSchedulerConfiguration
43+
profiles:
4444
# ...
45-
priorities:
46-
# ...
47-
- name: RequestedToCapacityRatioPriority
48-
weight: 2
49-
argument:
50-
requestedToCapacityRatioArguments:
51-
shape:
52-
- utilization: 0
53-
score: 0
54-
- utilization: 100
55-
score: 10
56-
resources:
57-
- name: intel.com/foo
58-
weight: 3
59-
- name: intel.com/bar
60-
weight: 5
61-
```
45+
pluginConfig:
46+
- name: RequestedToCapacityRatio
47+
args:
48+
shape:
49+
- utilization: 0
50+
score: 10
51+
- utilization: 100
52+
score: 0
53+
resources:
54+
- name: intel.com/foo
55+
weight: 3
56+
- name: intel.com/bar
57+
weight: 5
58+
```
59+
60+
Referencing the `KubeSchedulerConfiguration` file with the kube-scheduler
61+
flag `--config=/path/to/config/file` will pass the configuration to the
62+
scheduler.
6263

6364
**This feature is disabled by default**
6465

0 commit comments

Comments
 (0)