Skip to content

Commit ad68e2d

Browse files
Merge branch 'kubernetes:main' into patch-1
2 parents 448734c + 3a80221 commit ad68e2d

16 files changed

+235
-144
lines changed

content/en/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,11 @@ After 15 seconds, view Pod events to verify that the liveness check has not fail
274274
kubectl describe pod etcd-with-grpc
275275
```
276276

277-
Before Kubernetes 1.23, gRPC health probes were often implemented using
278-
[grpc-health-probe](https://github.com/grpc-ecosystem/grpc-health-probe/),
279-
as described in the blog post
280-
[Health checking gRPC servers on Kubernetes](/blog/2018/10/01/health-checking-grpc-servers-on-kubernetes/).
281-
The built-in gRPC probe's behavior is similar to the one implemented by grpc-health-probe.
282-
When migrating from grpc-health-probe to built-in probes, remember the following differences:
283-
284-
- Built-in probes run against the pod IP address, unlike grpc-health-probe that often runs against
285-
`127.0.0.1`. Be sure to configure your gRPC endpoint to listen on the Pod's IP address.
286-
- Built-in probes do not support any authentication parameters (like `-tls`).
277+
When using a gRPC probe, there are some technical details to be aware of:
278+
279+
- The probes run against the pod IP address or its hostname.
280+
Be sure to configure your gRPC endpoint to listen on the Pod's IP address.
281+
- The probes do not support any authentication parameters (like `-tls`).
287282
- There are no error codes for built-in probes. All errors are considered as probe failures.
288283
- If `ExecProbeTimeout` feature gate is set to `false`, grpc-health-probe does **not**
289284
respect the `timeoutSeconds` setting (which defaults to 1s), while built-in probe would fail on timeout.
@@ -425,23 +420,6 @@ liveness and readiness checks:
425420
See [probe-level `terminationGracePeriodSeconds`](#probe-level-terminationgraceperiodseconds)
426421
for more detail.
427422

428-
{{< note >}}
429-
Before Kubernetes 1.20, the field `timeoutSeconds` was not respected for exec probes:
430-
probes continued running indefinitely, even past their configured deadline,
431-
until a result was returned.
432-
433-
This defect was corrected in Kubernetes v1.20. You may have been relying on the previous behavior,
434-
even without realizing it, as the default timeout is 1 second.
435-
As a cluster administrator, you can disable the [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
436-
`ExecProbeTimeout` (set it to `false`) on each kubelet to restore the behavior from older versions,
437-
then remove that override once all the exec probes in the cluster have a `timeoutSeconds` value set.
438-
If you have pods that are impacted from the default 1 second timeout, you should update their
439-
probe timeout so that you're ready for the eventual removal of that feature gate.
440-
441-
With the fix of the defect, for exec probes, on Kubernetes `1.20+` with the `dockershim` container runtime,
442-
the process inside the container may keep running even after probe returned failure because of the timeout.
443-
{{< /note >}}
444-
445423
{{< caution >}}
446424
Incorrect implementation of readiness probes may result in an ever growing number
447425
of processes in the container, and resource starvation if this is left unchecked.
@@ -518,34 +496,19 @@ to resolve it.
518496

519497
{{< feature-state for_k8s_version="v1.28" state="stable" >}}
520498

521-
Prior to release 1.21, the Pod-level `terminationGracePeriodSeconds` was used
522-
for terminating a container that failed its liveness or startup probe. This
523-
coupling was unintended and may have resulted in failed containers taking an
524-
unusually long time to restart when a Pod-level `terminationGracePeriodSeconds`
525-
was set.
526-
527499
In 1.25 and above, users can specify a probe-level `terminationGracePeriodSeconds`
528500
as part of the probe specification. When both a pod- and probe-level
529501
`terminationGracePeriodSeconds` are set, the kubelet will use the probe-level value.
530502

531-
{{< note >}}
532-
Beginning in Kubernetes 1.25, the `ProbeTerminationGracePeriod` feature is enabled
533-
by default. For users choosing to disable this feature, please note the following:
503+
When setting the `terminationGracePeriodSeconds`, please note the following:
534504

535-
* The `ProbeTerminationGracePeriod` feature gate is only available on the API Server.
536-
The kubelet always honors the probe-level `terminationGracePeriodSeconds` field if
505+
* The kubelet always honors the probe-level `terminationGracePeriodSeconds` field if
537506
it is present on a Pod.
538507

539508
* If you have existing Pods where the `terminationGracePeriodSeconds` field is set and
540509
you no longer wish to use per-probe termination grace periods, you must delete
541510
those existing Pods.
542511

543-
* When you or the control plane, or some other components create replacement
544-
Pods, and the feature gate `ProbeTerminationGracePeriod` is disabled, then the
545-
API server ignores the Probe-level `terminationGracePeriodSeconds` field, even if
546-
a Pod or pod template specifies it.
547-
{{< /note >}}
548-
549512
For example:
550513

551514
```yaml

content/en/docs/tasks/tools/install-kubectl-macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Depending on how you installed `kubectl`, use one of the following methods.
280280
1. Locate the `kubectl` binary on your system:
281281

282282
```bash
283-
where kubectl
283+
which kubectl
284284
```
285285

286286
1. Remove the `kubectl` binary:

content/en/examples/admin/resource/limit-range-pod-3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
containers:
77
- name: busybox-cnt01
88
image: busybox:1.28
9+
command: ["sleep", "3600"]
910
resources:
1011
limits:
1112
memory: "300Mi"

content/en/examples/pods/share-process-namespace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ spec:
99
image: nginx
1010
- name: shell
1111
image: busybox:1.28
12+
command: ["sleep", "3600"]
1213
securityContext:
1314
capabilities:
1415
add:

content/en/examples/pods/storage/projected-secret-downwardapi-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
containers:
77
- name: container-test
88
image: busybox:1.28
9+
command: ["sleep", "3600"]
910
volumeMounts:
1011
- name: all-in-one
1112
mountPath: "/projected-volume"

content/en/examples/pods/storage/projected-secrets-nondefault-permission-mode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
containers:
77
- name: container-test
88
image: busybox:1.28
9+
command: ["sleep", "3600"]
910
volumeMounts:
1011
- name: all-in-one
1112
mountPath: "/projected-volume"

content/en/examples/pods/storage/projected-service-account-token.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
containers:
77
- name: container-test
88
image: busybox:1.28
9+
command: ["sleep", "3600"]
910
volumeMounts:
1011
- name: token-vol
1112
mountPath: "/service-account"

content/zh-cn/docs/reference/config-api/apiserver-audit.v1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ Resources is a list of resources this rule applies to.
497497
<p>For example:
498498
'pods' matches pods.
499499
'pods/log' matches the log subresource of pods.
500-
'<em>' matches all resources and their subresources.
501-
'pods/</em>' matches all subresources of pods.
502-
'*/scale' matches all scale subresources.</p>
500+
'&ast;' matches all resources and their subresources.
501+
'pods/&ast;' matches all subresources of pods.
502+
'&ast;/scale' matches all scale subresources.</p>
503503
-->
504504
<p>例如:</p>
505505
<ul>
@@ -767,10 +767,10 @@ PolicyRule 包含一个映射,基于元数据将请求映射到某审计级别
767767
<td>
768768
<!--
769769
NonResourceURLs is a set of URL paths that should be audited.
770-
<em>s are allowed, but only as the full, final step in the path.
770+
&ast;s are allowed, but only as the full, final step in the path.
771771
Examples:
772772
&quot;/metrics&quot; - Log requests for apiserver metrics
773-
&quot;/healthz</em>&quot; - Log all health checks</p>
773+
&quot;/healthz&ast;&quot; - Log all health checks</p>
774774
-->
775775

776776
<p>

content/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ kubeadm 所提供的默认值在必要时也会保证其在多个组件之间是
145145

146146
<!--
147147
<p>Users are always allowed to override default values, with the only exception of a small subset of setting with
148-
relevance for security (e.g. enforce authorization-mode Node and RBAC on api server)</p>
148+
relevance for security (e.g. enforce authorization-mode Node and RBAC on api server).</p>
149149
<p>If the user provides a configuration types that is not expected for the action you are performing, kubeadm will
150150
ignore those types and print a warning.</p>
151151
-->
@@ -1409,7 +1409,7 @@ HostPathMount contains elements describing volumes that are mounted from the hos
14091409
</td>
14101410
</tr>
14111411
<tr><td><code>pathType</code><br/>
1412-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#hostpathtype-v1-core"><code>core/v1.HostPathType</code></a>
1412+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#hostpathtype-v1-core"><code>core/v1.HostPathType</code></a>
14131413
</td>
14141414
<td>
14151415
<!--
@@ -1700,14 +1700,14 @@ Defaults to the hostname of the node if not provided.
17001700
<td>
17011701
<!--
17021702
<code>criSocket</code> is used to retrieve container runtime info.
1703-
This information will be annotated to the Node API object, for later re-use
1703+
This information will be annotated to the Node API object, for later re-use.
17041704
-->
17051705
<p><code>criSocket</code> 用来读取容器运行时的信息。
17061706
此信息会被以注解的方式添加到 Node API 对象至上,用于后续用途。</p>
17071707
</td>
17081708
</tr>
17091709
<tr><td><code>taints</code> <B><!--[Required]-->[必需]</B><br/>
1710-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#taint-v1-core"><code>[]core/v1.Taint</code></a>
1710+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#taint-v1-core"><code>[]core/v1.Taint</code></a>
17111711
</td>
17121712
<td>
17131713
<!--
@@ -1750,14 +1750,19 @@ command line except without leading dash(es).
17501750
<td>
17511751
<!--
17521752
<code>ignorePreflightErrors</code> provides a list of pre-flight errors to be ignored when
1753-
the current node is registered.
1753+
the current node is registered, e.g.
1754+
<code>IsPrevilegedUser,Swap</code>.
1755+
Value <code>all</code> ignores errors from all checks.
17541756
-->
1755-
<p><code>ignorePreflightErrors</code> 提供一组在当前节点被注册时可以
1756-
忽略掉的预检错误。</p>
1757+
<p>
1758+
<code>ignorePreflightErrors</code> 提供一组在当前节点被注册时可以忽略掉的预检错误。
1759+
例如:<code>IsPrevilegedUser,Swap</code>。
1760+
取值 <code>all</code> 忽略所有检查的错误。
1761+
</p>
17571762
</td>
17581763
</tr>
17591764
<tr><td><code>imagePullPolicy</code><br/>
1760-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#pullpolicy-v1-core"><code>core/v1.PullPolicy</code></a>
1765+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#pullpolicy-v1-core"><code>core/v1.PullPolicy</code></a>
17611766
</td>
17621767
<td>
17631768
<!--
@@ -1881,7 +1886,7 @@ for, so other administrators can know its purpose.
18811886
</td>
18821887
</tr>
18831888
<tr><td><code>expires</code><br/>
1884-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#time-v1-meta"><code>meta/v1.Time</code></a>
1889+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#time-v1-meta"><code>meta/v1.Time</code></a>
18851890
</td>
18861891
<td>
18871892
<!--

content/zh-cn/docs/reference/config-api/kubelet-credentialprovider.v1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ auth 是一个映射,包含传递给 kubelet 的身份验证信息。
132132
<!--
133133
Each key in the map is a pattern which can optionally contain a port and a path.
134134
Globs can be used in the domain, but not in the port or the path. Globs are supported
135-
as subdomains like <code>&ast;.k8s.io</code> or <code>k8s.&ast;.io</code>, and top-level-domains such as <code>k8s.&ast;</code>.
136-
Matching partial subdomains like <code>app&ast;.k8s.io</code> is also supported. Each glob can only match
137-
a single subdomain segment, so <code>&ast;.io</code> does not match <code>&ast;.k8s.io</code>.</p>
135+
as subdomains like '&ast;.k8s.io' or 'k8s.&ast;.io', and top-level-domains such as 'k8s.&ast;'.
136+
Matching partial subdomains like 'app&ast;.k8s.io' is also supported. Each glob can only match
137+
a single subdomain segment, so &ast;.io does not match &ast;.k8s.io.</p>
138138
-->
139139
<p>
140140
映射中的每个主键都可以包含端口和路径。

0 commit comments

Comments
 (0)