@@ -45,7 +45,7 @@ from all providers will be returned to the kubelet. If multiple providers are ca
4545for a single image, the results are combined. If providers return overlapping
4646auth keys, the value from the provider earlier in this list is attempted first.
4747-->
48- <code >providers</code > 是一组凭据提供者插件,这些插件会被 kubelet 启用。
48+ <code >providers</code > 是一组凭据提供者插件,这些插件会被 kubelet 启用。
4949多个提供者可以匹配到同一镜像上,这时,来自所有提供者的凭据信息都会返回给 kubelet。
5050如果针对同一镜像调用了多个提供者,则结果会被组合起来。如果提供者返回的认证主键有重复,
5151列表中先出现的提供者所返回的值将第一个被尝试使用。
@@ -60,7 +60,7 @@ auth keys, the value from the provider earlier in this list is attempted first.
6060<!--
6161ImagePullIntent is a record of the kubelet attempting to pull an image.
6262-->
63- ImagePullIntent 是 kubelet 尝试拉取镜像的记录。
63+ < code > ImagePullIntent</ code > 是 kubelet 尝试拉取镜像的记录。
6464</p >
6565
6666<table class =" table " >
@@ -80,7 +80,7 @@ Image is the image spec from a Container's <code>image</code> field.
8080The filename is a SHA-256 hash of this value. This is to avoid filename-unsafe
8181characters like ':' and '/'.
8282-->
83- image 是容器 <code >image</code > 字段中的镜像规约。
83+ < code > image</ code > 是容器 <code >image</code > 字段中的镜像规约。
8484文件名是此值的 SHA-256 哈希,这样做是为了避免文件名中不安全的字符,如 ':' 和 '/'。
8585</p >
8686</td >
@@ -94,7 +94,7 @@ image 是容器 <code>image</code> 字段中的镜像规约。
9494<!--
9595ImagePullRecord is a record of an image that was pulled by the kubelet.
9696-->
97- ImagePullRecord 是 kubelet 拉取的镜像的记录。
97+ < code > ImagePullRecord</ code > 是 kubelet 拉取的镜像的记录。
9898</p >
9999<p >
100100<!--
@@ -114,14 +114,14 @@ image represented by this record is being requested.
114114<tr ><td ><code >kind</code ><br />string</td ><td ><code >ImagePulledRecord</code ></td ></tr >
115115
116116<tr ><td ><code >lastUpdatedTime</code > <B ><!-- [Required]--> [必需]</B ><br />
117- <a href =" https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33 /#time-v1-meta " ><code >meta/v1.Time</code ></a >
117+ <a href =" https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34 /#time-v1-meta " ><code >meta/v1.Time</code ></a >
118118</td >
119119<td >
120120<p >
121121<!--
122122LastUpdatedTime is the time of the last update to this record
123123-->
124- lastUpdatedTime 是此记录上次更新的时间
124+ < code > lastUpdatedTime</ code > 是此记录上次更新的时间。
125125</p >
126126</td >
127127</tr >
@@ -136,7 +136,7 @@ from the CRI.
136136The filename is a SHA-256 hash of this value. This is to avoid filename-unsafe
137137characters like ':' and '/'.
138138-->
139- imageRef 是从 CRI 接收到的此文件所代表的镜像的引用。
139+ < code > imageRef</ code > 是从 CRI 接收到的此文件所代表的镜像的引用。
140140文件名是此值的 SHA-256 哈希。这是为了避免文件名中不安全的字符,如 ':' 和 '/'。
141141</p >
142142</td >
@@ -152,7 +152,7 @@ previously pulled with.
152152<code>image</code> in this case is the content of a pod's container <code>image</code> field that's
153153got its tag/digest removed.
154154-->
155- credentialMapping 将 <code >image</code > 映射到之前拉取它时使用的凭据集。
155+ < code > credentialMapping</ code > 将 <code >image</code > 映射到之前拉取它时使用的凭据集。
156156这里的 <code >image</code > 是 Pod 的容器中 <code >image</code > 字段的内容,
157157已去除其标签/摘要。
158158</p >
@@ -273,11 +273,11 @@ Example values of matchImages:
273273</ul >
274274<p ><code >matchImages</code > 的一些示例如下:</p >
275275<ul >
276- <li ><code >123456789.dkr.ecr.us-east-1.amazonaws.com</code ></li >
277- <li ><code >*.azurecr.io</code ></li >
278- <li ><code >gcr.io</code ></li >
279- <li ><code >*.*.registry.io</code ></li >
280- <li ><code >registry.io:8080/path</code ></li >
276+ <li ><code >123456789.dkr.ecr.us-east-1.amazonaws.com</code ></li >
277+ <li ><code >*.azurecr.io</code ></li >
278+ <li ><code >gcr.io</code ></li >
279+ <li ><code >*.*.registry.io</code ></li >
280+ <li ><code >registry.io:8080/path</code ></li >
281281</ul >
282282</td >
283283</tr >
@@ -329,12 +329,12 @@ Arguments to pass to the command when executing it.
329329<a href =" #kubelet-config-k8s-io-v1alpha1-ExecEnvVar " ><code >[ ] ExecEnvVar</code ></a >
330330</td >
331331<td >
332- <!--
333- Env defines additional environment variables to expose to the process. These
332+ <!--
333+ Env defines additional environment variables to expose to the process. These
334334are unioned with the host's environment, as well as variables client-go uses
335335to pass argument to the plugin.
336- -->
337- <code >env</code > 定义要提供给插件进程的额外的环境变量。
336+ -->
337+ <code >env</code > 定义要提供给插件进程的额外的环境变量。
338338这些环境变量会与主机上的其他环境变量以及 client-go 所使用的环境变量组合起来,
339339一起传递给插件。
340340</td >
@@ -394,7 +394,7 @@ ExecEnvVar 用来在执行基于 exec 的凭据插件时设置环境变量。
394394<!--
395395ImagePullCredentials describe credentials that can be used to pull an image.
396396-->
397- ImagePullCredentials 描述了可以用于拉取镜像的凭据 。
397+ < code > ImagePullCredentials</ code > 描述可以用于拉取镜像的凭据 。
398398</p >
399399
400400<table class =" table " >
@@ -410,11 +410,25 @@ ImagePullCredentials 描述了可以用于拉取镜像的凭据。
410410KuberneteSecretCoordinates is an index of coordinates of all the kubernetes
411411secrets that were used to pull the image.
412412-->
413- kuberneteSecretCoordinates 是用于拉取镜像的所有 Kubernetes
413+ < code > kuberneteSecretCoordinates</ code > 是用于拉取镜像的所有 Kubernetes
414414Secret 的坐标索引。
415415</p >
416416</td >
417417</tr >
418+ <tr ><td ><code >kubernetesServiceAccounts</code ><br />
419+ <a href =" #kubelet-config-k8s-io-v1alpha1-ImagePullServiceAccount " ><code >[ ] ImagePullServiceAccount</code ></a >
420+ </td >
421+ <td >
422+ <p >
423+ <!--
424+ KubernetesServiceAccounts is an index of coordinates of all the kubernetes
425+ service accounts that were used to pull the image.
426+ -->
427+ <code >kubernetesServiceAccounts</code > 是用于拉取镜像的所有 Kubernetes
428+ 服务账号的坐标索引。
429+ </p >
430+ </td >
431+ </tr >
418432<tr ><td ><code >nodePodsAccessible</code ><br />
419433<code >bool</code >
420434</td >
@@ -424,7 +438,7 @@ Secret 的坐标索引。
424438NodePodsAccessible is a flag denoting the pull credentials are accessible
425439by all the pods on the node, or that no credentials are needed for the pull.
426440-->
427- nodePodsAccessible 是一个标志,表示节点上的所有 Pod 都可以访问拉取凭据,
441+ < code > nodePodsAccessible</ code > 是一个标志,表示节点上的所有 Pod 都可以访问拉取凭据,
428442或者拉取不需要凭据。
429443</p >
430444<p >
@@ -452,7 +466,7 @@ If true, it is mutually exclusive with the <code>kubernetesSecrets</code> field.
452466ImagePullSecret is a representation of a Kubernetes secret object coordinates along
453467with a credential hash of the pull secret credentials this object contains.
454468-->
455- ImagePullSecret 是 Kubernetes Secret 对象坐标的表示,
469+ < code > ImagePullSecret</ code > 是 Kubernetes Secret 对象坐标的表示,
456470以及此对象包含的拉取 Secret 凭据的哈希值。
457471</p >
458472
@@ -487,10 +501,54 @@ ImagePullSecret 是 Kubernetes Secret 对象坐标的表示,
487501CredentialHash is a SHA-256 retrieved by hashing the image pull credentials
488502content of the secret specified by the UID/Namespace/Name coordinates.
489503-->
490- credentialHash 是通过对镜像拉取凭据的内容进行哈希计算获得的 SHA-256 值,
504+ < code > credentialHash</ code > 是通过对镜像拉取凭据的内容进行哈希计算获得的 SHA-256 值,
491505这些凭据由 UID/命名空间/名称坐标指定的 Secret 提供。
492506</p >
493507</td >
494508</tr >
495509</tbody >
496510</table >
511+
512+ ## ` ImagePullServiceAccount ` {#kubelet-config-k8s-io-v1alpha1-ImagePullServiceAccount}
513+
514+ <!--
515+ **Appears in:**
516+ -->
517+ ** 出现在:**
518+
519+ - [ ImagePullCredentials] ( #kubelet-config-k8s-io-v1alpha1-ImagePullCredentials )
520+
521+ <p >
522+ <!--
523+ ImagePullServiceAccount is a representation of a Kubernetes service account object coordinates
524+ for which the kubelet sent service account token to the credential provider plugin for image pull credentials.
525+ -->
526+ ImagePullServiceAccount 是 Kubernetes 服务账号对象坐标的表示,
527+ kubelet 将服务账号令牌发送给凭据提供程序以用于拉取镜像的凭据。
528+ </p >
529+
530+ <table class =" table " >
531+ <thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
532+ <tbody >
533+
534+
535+ <tr ><td ><code >uid</code > <B ><!-- [Required]--> 必需</B ><br />
536+ <code >string</code >
537+ </td >
538+ <td >
539+ <span class =" text-muted " ><!-- No description provided.--> 资源对象的唯一标识(UID)。</span ></td >
540+ </tr >
541+ <tr ><td ><code >namespace</code > <B ><!-- [Required]--> 必需</B ><br />
542+ <code >string</code >
543+ </td >
544+ <td >
545+ <span class =" text-muted " ><!-- No description provided.--> 资源对象所在名字空间。</span ></td >
546+ </tr >
547+ <tr ><td ><code >name</code > <B ><!-- [Required]--> 必需</B ><br />
548+ <code >string</code >
549+ </td >
550+ <td >
551+ <span class =" text-muted " ><!-- No description provided.--> 资源对象的名称。</span ></td >
552+ </tr >
553+ </tbody >
554+ </table >
0 commit comments