You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `imagePullPolicy` is defined without a specific value, it is also set to `Always`.
115
-
-->
116
116
如果 `imagePullPolicy` 未被定义为特定的值,也会被设置为 `Always`。
117
117
118
118
<!--
119
-
## Building Multi-architecture Images with Manifests
119
+
## Multi-architecture Images with Manifests
120
120
121
121
As well as providing binary images, a container registry can also serve a [container image manifest](https://github.com/opencontainers/image-spec/blob/master/manifest.md). A manifest can reference image manifests for architecture-specific versions of an container. The idea is that you can have a name for an image (for example: `pause`, `example/mycontainer`, `kube-apiserver`) and allow different systems to fetch the right binary image for the machine architecture they are using.
122
122
@@ -139,27 +139,27 @@ YAML 文件也能兼容。
139
139
<!--
140
140
## Using a Private Registry
141
141
142
-
Private registries may require keys to read images from them.
142
+
Private registries may require keys to read images from them.
143
143
Credentials can be provided in several ways:
144
144
-->
145
-
## 使用私有仓库 {#using-a-private-registry}
145
+
## 使用私有仓库 {#using-a-private-registry}
146
146
147
147
从私有仓库读取镜像时可能需要密钥。
148
-
凭据信息可以用以下方式提供:
149
-
150
-
<!--
151
-
- Configuring Nodes to Authenticate to a Private Registry
152
-
- all pods can read any configured private registries
153
-
- requires node configuration by cluster administrator
154
-
- Pre-pulled Images
155
-
- all pods can use any images cached on a node
156
-
- requires root access to all nodes to setup
157
-
- Specifying ImagePullSecrets on a Pod
158
-
- only pods which provide own keys can access the private registry
159
-
- Vendor-specific or local extensions
160
-
- if you're using a custom node configuration, you (or your cloud
161
-
provider) can implement your mechanism for authenticating the node
162
-
to the container registry.
148
+
凭证可以用以下方式提供:
149
+
150
+
<!--
151
+
- Configuring Nodes to Authenticate to a Private Registry
152
+
- all pods can read any configured private registries
153
+
- requires node configuration by cluster administrator
154
+
- Pre-pulled Images
155
+
- all pods can use any images cached on a node
156
+
- requires root access to all nodes to setup
157
+
- Specifying ImagePullSecrets on a Pod
158
+
- only pods which provide own keys can access the private registry
159
+
- Vendor-specific or local extensions
160
+
- if you're using a custom node configuration, you (or your cloud
161
+
provider) can implement your mechanism for authenticating the node
162
+
to the container registry.
163
163
-->
164
164
- 配置节点向私有仓库进行身份验证
165
165
- 所有 Pod 均可读取任何已配置的私有仓库
@@ -174,9 +174,9 @@ Credentials can be provided in several ways:
174
174
向容器仓库认证的机制
175
175
176
176
<!--
177
-
These options are explained in more detail below.
177
+
These options are explaind in more detail below.
178
178
-->
179
-
下面将详细描述每一种方案。
179
+
下面将详细描述每一项。
180
180
181
181
<!--
182
182
### Configuring Nodes to authenticate to a Private Registry
@@ -299,21 +299,6 @@ EOF
299
299
pod/private-image-test-1 created
300
300
```
301
301
302
-
<!--
303
-
If everything is working, then, after a few moments, you can run:
304
-
-->
305
-
如果一切正常,一段时间后,可以运行:
306
-
307
-
```shell
308
-
kubectl logs private-image-test-1
309
-
```
310
-
311
-
并看到命令输出为:
312
-
313
-
```
314
-
SUCCESS
315
-
```
316
-
317
302
<!--
318
303
If you suspect that the command failed, you can run:
319
304
-->
@@ -388,7 +373,7 @@ All pods will have read access to any pre-pulled images.
388
373
<!--
389
374
### Specifying ImagePullSecrets on a Pod
390
375
-->
391
-
### 为 Pod 设置 ImagePullSecrets
376
+
### 在 Pod 上指定 ImagePullSecrets {#specifying-imagepullsecrets-on-a-pod}
392
377
393
378
<!--
394
379
This is the recommended approach to run containers based on images
@@ -408,9 +393,9 @@ Kubernetes 支持在 Pod 中设置容器镜像仓库的密钥。
408
393
409
394
Run the following command, substituting the appropriate uppercase values:
0 commit comments