Skip to content

Commit 1fb2c45

Browse files
committed
Replace outdated instructions and add a tip in kubeadm-certs.md
1 parent ce682af commit 1fb2c45

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

content/de/docs/tasks/tools/install-kubectl-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Um kubectl auf Linux zu installieren, gibt es die folgenden Möglichkeiten:
6868

6969
Falls die Validierung fehlschlägt, beendet sich `sha256` mit einem "nonzero"-Status und gibt einen Fehler aus, welcher so aussehen könnte:
7070

71-
```bash
71+
```console
7272
kubectl: FAILED
7373
sha256sum: WARNING: 1 computed checksum did NOT match
7474
```
@@ -253,7 +253,7 @@ Untenstehend ist beschrieben, wie die Autovervollständigungen für Fish und Zsh
253253

254254
Falls die Validierung fehlschlägt, beendet sich `sha256` mit einem "nonzero"-Status und gibt einen Fehler aus, welcher so aussehen könnte:
255255

256-
```bash
256+
```console
257257
kubectl-convert: FAILED
258258
sha256sum: WARNING: 1 computed checksum did NOT match
259259
```

content/en/docs/concepts/configuration/overview.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@ to others, please don't hesitate to file an issue or submit a PR.
3737

3838
- Put object descriptions in annotations, to allow better introspection.
3939

40+
{{< note >}}
41+
There is a breaking change introduced in the [YAML 1.2](https://yaml.org/spec/1.2.0/#id2602744)
42+
boolean values specification with respect to [YAML 1.1](https://yaml.org/spec/1.1/#id864510).
43+
This is a known [issue](https://github.com/kubernetes/kubernetes/issues/34146) in Kubernetes.
44+
YAML 1.2 only recognizes **true** and **false** as valid booleans, while YAML 1.1 also accepts
45+
**yes**, **no**, **on**, and **off** as booleans. However, Kubernetes uses YAML
46+
[parsers](https://github.com/kubernetes/kubernetes/issues/34146#issuecomment-252692024) that are
47+
mostly compatible with YAML 1.1, which means that using **yes** or **no** instead of **true** or
48+
**false** in a YAML manifest may cause unexpected errors or behaviors. To avoid this issue, it is
49+
recommended to always use **true** or **false** for boolean values in YAML manifests, and to quote
50+
any strings that may be confused with booleans, such as **"yes"** or **"no"**.
51+
52+
Besides booleans, there are additional specifications changes between YAML versions. Please refer
53+
to the [YAML Specification Changes](https://spec.yaml.io/main/spec/1.2.2/ext/changes) documentation
54+
for a comprehensive list.
55+
{{< /note >}}
56+
4057
## "Naked" Pods versus ReplicaSets, Deployments, and Jobs {#naked-pods-vs-replicasets-deployments-and-jobs}
4158

4259
- Don't use naked Pods (that is, Pods not bound to a [ReplicaSet](/docs/concepts/workloads/controllers/replicaset/) or
@@ -135,4 +152,3 @@ to others, please don't hesitate to file an issue or submit a PR.
135152
Deployments and Services.
136153
See [Use a Service to Access an Application in a Cluster](/docs/tasks/access-application-cluster/service-access-application-cluster/)
137154
for an example.
138-

content/en/docs/concepts/overview/working-with-objects/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ satisfy the StatefulSet specification.
120120
Different kinds of object can also have different `.status`; again, the API reference pages
121121
detail the structure of that `.status` field, and its content for each different type of object.
122122

123+
{{< note >}}
124+
See [Configuration Best Practices](/docs/concepts/configuration/overview/) for additional
125+
information on writing YAML configuration files.
126+
{{< /note >}}
127+
123128
## Server side field validation
124129

125130
Starting with Kubernetes v1.25, the API server offers server side

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ command. In that case, you should explicitly set `--certificate-renewal=true`.
136136

137137
## Manual certificate renewal
138138

139-
You can renew your certificates manually at any time with the `kubeadm certs renew` command.
139+
You can renew your certificates manually at any time with the `kubeadm certs renew` command, with the appropriate command line options.
140140

141141
This command performs the renewal using CA (or front-proxy-CA) certificate and key stored in `/etc/kubernetes/pki`.
142142

@@ -160,15 +160,20 @@ Name, Organization, SAN, etc.) instead of the `kubeadm-config` ConfigMap. It is
160160
to keep them both in sync.
161161
{{< /note >}}
162162

163-
`kubeadm certs renew` provides the following options:
163+
`kubeadm certs renew` can renew any specific certificate or, with the subcommand `all`, it can renew all of them, as shown below:
164164

165-
- The Kubernetes certificates normally reach their expiration date after one year.
165+
```shell
166+
kubeadm certs renew all
167+
```
166168

167-
- `--csr-only` can be used to renew certificates with an external CA by generating certificate
168-
signing requests (without actually renewing certificates in place); see next paragraph for more
169-
information.
169+
{{< note >}}
170+
Clusters built with kubeadm often copy the `admin.conf` certificate into `$HOME/.kube/config`, as instructed in [Creating a cluster with kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/). On such a system, to update the contents of `$HOME/.kube/config` after renewing the `admin.conf` you must run the following commands:
170171

171-
- It's also possible to renew a single certificate instead of all.
172+
```shell
173+
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
174+
sudo chown $(id -u):$(id -g) $HOME/.kube/config
175+
```
176+
{{< /note >}}
172177

173178
## Renew certificates with the Kubernetes certificates API
174179

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ You can override the default headers by defining `httpHeaders` for the probe.
797797
For example
798798
-->
799799
针对 HTTP 探针,kubelet 除了必需的 `Host` 头部之外还发送两个请求头部字段:
800-
- `User-Agent`:默认值是 `kube-probe/{{ skew currentVersion >}}`,其中 `{{< skew currentVersion >}}` 是 kubelet 的版本号。
800+
- `User-Agent`:默认值是 `kube-probe/{{< skew currentVersion >}}`,其中 `{{< skew currentVersion >}}` 是 kubelet 的版本号。
801801
- `Accept`:默认值 `*/*`。
802802

803803
你可以通过为探测设置 `httpHeaders` 来重载默认的头部字段值。例如:

0 commit comments

Comments
 (0)