Skip to content

Commit

Permalink
sync /pods/_index init-container /labels-annotations-taints/_index
Browse files Browse the repository at this point in the history
sync /pods/_index  init-container  /labels-annotations-taints/_index
  • Loading branch information
asa3311 committed Jul 6, 2023
1 parent 3df479c commit 2b10c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/zh-cn/docs/concepts/workloads/pods/_index.md
Expand Up @@ -278,7 +278,7 @@ You should set the `.spec.os.name` field to either `windows` or `linux` to indic
In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no
effect on {{< glossary_tooltip text="scheduling" term_id="kube-scheduler" >}} of the pods.
Setting the `.spec.os.name` helps to identify the pod OS
authoratitively and is used for validation. The kubelet refuses to run a Pod where you have
authoritatively and is used for validation. The kubelet refuses to run a Pod where you have
specified a Pod OS, if this isn't the same as the operating system for the node where
that kubelet is running.
The [Pod security standards](/docs/concepts/security/pod-security-standards/) also use this
Expand Down
Expand Up @@ -167,7 +167,7 @@ Here are some ideas for how to use init containers:
* 等待一个 Service 完成创建,通过类似如下 Shell 命令:

```shell
for i in {1..100}; do sleep 1; if dig myservice; then exit 0; fi; done; exit 1
for i in {1..100}; do sleep 1; if nslookup myservice; then exit 0; fi; done; exit 1
```

<!--
Expand Down

0 comments on commit 2b10c37

Please sign in to comment.