fix redundant note (#18780)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
134f5a3b2f
commit
0ef0c60436
@@ -29,7 +29,7 @@ It does not mean that there is a file named `kubeconfig`.
|
||||
{{< /note >}}
|
||||
--->
|
||||
{{< note >}}
|
||||
注意:用于配置集群访问的文件称为 *kubeconfig 文件*。这是引用配置文件的通用方法。这并不意味着有一个名为 `kubeconfig` 的文件
|
||||
用于配置集群访问的文件称为 *kubeconfig 文件*。这是引用配置文件的通用方法。这并不意味着有一个名为 `kubeconfig` 的文件
|
||||
{{< /note >}}
|
||||
|
||||
<!--
|
||||
|
||||
@@ -181,7 +181,7 @@ After you initialize your master, the kubelet runs normally.
|
||||
请查阅[安装 kubeadm](/docs/setup/independent/install-kubeadm/)。
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 如果您的机器已经安装了 kubeadm, 请运行 `apt-get update &&
|
||||
如果您的机器已经安装了 kubeadm, 请运行 `apt-get update &&
|
||||
apt-get upgrade` 或者 `yum update` 来升级至最新版本的 kubeadm.
|
||||
|
||||
升级过程中,kubelet 会每隔几秒钟重启并陷入了不断循环等待 kubeadm 发布指令的状态。
|
||||
@@ -849,7 +849,7 @@ A few seconds later, you should notice this node in the output from `kubectl get
|
||||
nodes` when run on the master. -->
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 若需为 `<master-ip>:<master-port>` 参数设定一个 IPv6 的元组,地址必须写在一对方括号里面,比如: `[fd00::101]:2073`。
|
||||
若需为 `<master-ip>:<master-port>` 参数设定一个 IPv6 的元组,地址必须写在一对方括号里面,比如: `[fd00::101]:2073`。
|
||||
{{< /note >}}
|
||||
|
||||
输出类似这样:
|
||||
@@ -905,7 +905,7 @@ kubectl --kubeconfig ./admin.conf get nodes
|
||||
```
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 上面的例子生效的前提是 SSH 允许 root 用户连接登录。
|
||||
上面的例子生效的前提是 SSH 允许 root 用户连接登录。
|
||||
如果root 用户不能连接的话,您可以将 `admin.conf` 复制到允许其他用户访问的其他地方并将 `scp` 命令里的用户改成相对应的用户再复制。
|
||||
|
||||
这个 `admin.conf` 文件给予了用户整个集群的超级用户权限,因此这个操作必须小心谨慎。对于普通用户来说,
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ content_template: templates/task
|
||||
本文展示如何使用配置文件来配置对多个集群的访问。 在将集群、用户和上下文定义在一个或多个配置文件中之后,用户可以使用 `kubectl config use-context` 命令快速地在集群之间进行切换。
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 用于配置集群访问的文件有时被称为 *kubeconfig 文件*。
|
||||
用于配置集群访问的文件有时被称为 *kubeconfig 文件*。
|
||||
这是一种引用配置文件的通用方式,并不意味着存在一个名为 `kubeconfig` 的文件。
|
||||
{{< /note >}}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ base-64 形式的密码为 `Mzk1MjgkdmRnN0pi`。
|
||||
```
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 如果想要跳过 Base64 编码的步骤,可以使用 `kubectl create secret` 命令来创建 Secret:
|
||||
如果想要跳过 Base64 编码的步骤,可以使用 `kubectl create secret` 命令来创建 Secret:
|
||||
{{< /note >}}
|
||||
|
||||
```shell
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ content_template: templates/task
|
||||
第二个元素指示Pod的`annotations`字段的值保存在名为`annotations`的文件中。
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 本示例中的字段是Pod字段,不是Pod中容器的字段。
|
||||
本示例中的字段是Pod字段,不是Pod中容器的字段。
|
||||
{{< /note >}}
|
||||
|
||||
创建 Pod:
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ content_template: templates/task
|
||||
数组中第一个元素指定`MY_NODE_NAME`这个环境变量从Pod的`spec.nodeName`字段获取变量值。同样,其它环境变量也是从Pod的字段获取它们的变量值。
|
||||
|
||||
{{< note >}}
|
||||
**注意:** 本示例中的字段是Pod字段,不是Pod中容器的字段。
|
||||
本示例中的字段是Pod字段,不是Pod中容器的字段。
|
||||
{{< /note >}}
|
||||
|
||||
创建Pod:
|
||||
|
||||
Reference in New Issue
Block a user