@@ -38,19 +38,19 @@ Kubelet 从磁盘上读取这些配置信息,并根据 CredentialProvider 类
38
38
<a href =" #kubelet-config-k8s-io-v1-CredentialProvider " ><code >[ ] CredentialProvider</code ></a >
39
39
</td >
40
40
<td >
41
- <!--
42
- providers is a list of credential provider plugins that will be enabled by the kubelet.
43
- Multiple providers may match against a single image, in which case credentials
44
- from all providers will be returned to the kubelet. If multiple providers are called
45
- for a single image, the results are combined . If providers return overlapping
46
- auth keys , the value from the provider earlier in this list is attempted first.
47
- -->
48
- < p >
49
- <code >providers</code > 是一组凭据提供程序插件,这些插件会被 kubelet 启用。
50
- 多个提供程序可以匹配到同一镜像上,这时,来自所有提供程序的凭据信息都会返回给 kubelet。
51
- 如果针对同一镜像调用了多个提供程序,则结果会被组合起来。如果提供程序返回的认证主键有重复,
52
- 列表中先出现的提供程序所返回的值将被首先尝试。
53
- </p >
41
+ < p >
42
+ <!--
43
+ providers is a list of credential provider plugins that will be enabled by the kubelet.
44
+ Multiple providers may match against a single image, in which case credentials
45
+ from all providers will be returned to the kubelet . If multiple providers are called
46
+ for a single image , the results are combined. If providers return overlapping
47
+ auth keys, the value from the provider earlier in this list is attempted first.
48
+ -- >
49
+ <code >providers</code > 是一组凭据提供程序插件,这些插件会被 kubelet 启用。
50
+ 多个提供程序可以匹配到同一镜像上,这时,来自所有提供程序的凭据信息都会返回给 kubelet。
51
+ 如果针对同一镜像调用了多个提供程序,则结果会被组合起来。如果提供程序返回的认证主键有重复,
52
+ 列表中先出现的提供程序所返回的值将被首先尝试。
53
+ </p >
54
54
</td >
55
55
</tr >
56
56
</tbody >
@@ -80,13 +80,13 @@ CredentialProvider 代表的是要被 kubelet 调用的一个 exec 插件。
80
80
<code >string</code >
81
81
</td >
82
82
<td >
83
+ <p >
83
84
<!--
84
85
name is the required name of the credential provider. It must match the name of the
85
86
provider executable as seen by the kubelet. The executable must be in the kubelet's
86
87
bin directory (set by the --image-credential-provider-bin-dir flag).
87
88
Required to be unique across all providers.
88
89
-->
89
- <p >
90
90
<code >name</code > 是凭据提供程序的名称(必需)。此名称必须与 kubelet
91
91
所看到的提供程序可执行文件的名称匹配。可执行文件必须位于 kubelet 的
92
92
<code >bin</code > 目录(通过 <code >--image-credential-provider-bin-dir</code > 设置)下。
@@ -98,33 +98,39 @@ CredentialProvider 代表的是要被 kubelet 调用的一个 exec 插件。
98
98
<code >[ ] string</code >
99
99
</td >
100
100
<td >
101
+ <p >
101
102
<!--
102
103
matchImages is a required list of strings used to match against images in order to
103
104
determine if this provider should be invoked. If one of the strings matches the
104
105
requested image from the kubelet, the plugin will be invoked and given a chance
105
106
to provide credentials. Images are expected to contain the registry domain
106
107
and URL path.
107
108
-->
108
- <p >< code >matchImages</code > 是一个必须设置的字符串列表,用来匹配镜像以便确定是否要调用此提供程序。
109
+ <code >matchImages</code > 是一个必须设置的字符串列表,用来匹配镜像以便确定是否要调用此提供程序。
109
110
如果字符串之一与 kubelet 所请求的镜像匹配,则此插件会被调用并给予提供凭据的机会。
110
- 镜像应该包含镜像库域名和 URL 路径。</p >
111
+ 镜像应该包含镜像库域名和 URL 路径。
112
+ </p >
111
113
114
+ <p >
112
115
<!--
113
116
Each entry in matchImages is a pattern which can optionally contain a port and a path.
114
117
Globs can be used in the domain, but not in the port or the path. Globs are supported
115
118
as subdomains like '*.k8s.io' or 'k8s.*.io', and top-level-domains such as 'k8s.*'.
116
119
Matching partial subdomains like 'app</em>.k8s.io' is also supported. Each glob can only match
117
120
a single subdomain segment, so *.io does not match *.k8s.io.
118
121
-->
119
- <p >< code >matchImages</code > 中的每个条目都是一个模式字符串,其中可以包含端口号和路径。
122
+ <code >matchImages</code > 中的每个条目都是一个模式字符串,其中可以包含端口号和路径。
120
123
域名部分可以包含通配符,但端口或路径部分不可以。'&ast ; .k8s.io' 或 'k8s.&ast ; .io' 等子域名以及
121
124
'k8s.&ast ; ' 这类顶级域名都支持通配符。</p >
122
125
<p >对于 'app</em >.k8s.io' 这类部分子域名的匹配也是支持的。
123
- 每个通配符只能用来匹配一个子域名段,所以 &ast ; .io 不会匹配 &ast ; .k8s.io。</p >
126
+ 每个通配符只能用来匹配一个子域名段,所以 &ast ; .io 不会匹配 &ast ; .k8s.io。
127
+ </p >
128
+ <p >
124
129
<!--
125
130
A match exists between an image and a matchImage when all of the below are true:
126
131
-->
127
- <p >镜像与 <code >matchImages</code > 之间存在匹配时,以下条件都要满足:</p >
132
+ 镜像与 <code >matchImages</code > 之间存在匹配时,以下条件都要满足:
133
+ </p >
128
134
<ul >
129
135
<!--
130
136
<li>Both contain the same number of domain parts and each part matches.</li>
@@ -135,10 +141,12 @@ A match exists between an image and a matchImage when all of the below are true:
135
141
<li ><code >matchImages</code > 条目中的 URL 路径部分必须是目标镜像的 URL 路径的前缀;</li >
136
142
<li >如果 <code >matchImages</code > 条目中包含端口号,则端口号也必须与镜像端口号匹配。</li >
137
143
</ul >
144
+ <p >
138
145
<!--
139
146
Example values of matchImages:
140
147
-->
141
- <p ><code >matchImages</code > 的一些示例如下:</p >
148
+ <code >matchImages</code > 的一些示例如下:
149
+ </p >
142
150
<ul >
143
151
<li >123456789.dkr.ecr.us-east-1.amazonaws.com</li >
144
152
<li >&ast ; .azurecr.io</li >
@@ -152,11 +160,11 @@ Example values of matchImages:
152
160
<a href =" https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration " ><code >meta/v1.Duration</code ></a >
153
161
</td >
154
162
<td >
163
+ <p >
155
164
<!--
156
165
defaultCacheDuration is the default duration the plugin will cache credentials in-memory
157
166
if a cache duration is not provided in the plugin response. This field is required.
158
167
-->
159
- <p >
160
168
<code >defaultCacheDuration</code > 是插件在内存中缓存凭据的默认时长,
161
169
在插件响应中没有给出缓存时长时,使用这里设置的值。此字段是必需的。
162
170
</p >
@@ -166,11 +174,11 @@ Example values of matchImages:
166
174
<code >string</code >
167
175
</td >
168
176
<td >
177
+ <p >
169
178
<!--
170
179
Required input version of the exec CredentialProviderRequest. The returned CredentialProviderResponse
171
180
MUST use the same encoding version as the input. Current supported values are:
172
181
-->
173
- <p >
174
182
要求 exec 插件 CredentialProviderRequest 请求的输入版本。
175
183
所返回的 CredentialProviderResponse 必须使用与输入相同的编码版本。当前支持的值有:
176
184
</p >
@@ -183,26 +191,28 @@ Example values of matchImages:
183
191
<code >[ ] string</code >
184
192
</td >
185
193
<td >
186
- <!--
187
- Arguments to pass to the command when executing it.
188
- -->
189
- <p >在执行插件可执行文件时要传递给命令的参数。</p >
194
+ <p >
195
+ <!--
196
+ Arguments to pass to the command when executing it.
197
+ -->
198
+ 在执行插件可执行文件时要传递给命令的参数。
199
+ </p >
190
200
</td >
191
201
</tr >
192
202
<tr ><td ><code >env</code ><br />
193
203
<a href =" #kubelet-config-k8s-io-v1-ExecEnvVar " ><code >[ ] ExecEnvVar</code ></a >
194
204
</td >
195
205
<td >
196
- <!--
197
- Env defines additional environment variables to expose to the process. These
198
- are unioned with the host's environment, as well as variables client-go uses
199
- to pass argument to the plugin.
200
- -->
201
- < p >
202
- <code >env</code > 定义要提供给插件进程的额外的环境变量。
203
- 这些环境变量会与主机上的其他环境变量以及 client-go 所使用的环境变量组合起来,
204
- 一起传递给插件。
205
- </p >
206
+ < p >
207
+ <!--
208
+ Env defines additional environment variables to expose to the process. These
209
+ are unioned with the host's environment, as well as variables client-go uses
210
+ to pass argument to the plugin.
211
+ -- >
212
+ <code >env</code > 定义要提供给插件进程的额外的环境变量。
213
+ 这些环境变量会与主机上的其他环境变量以及 client-go 所使用的环境变量组合起来,
214
+ 一起传递给插件。
215
+ </p >
206
216
</td >
207
217
</tr >
208
218
<tr ><td ><code >tokenAttributes</code ><br />
@@ -307,8 +317,7 @@ ServiceAccountTokenAttributes 是将被传递给插件的服务账号令牌的
307
317
<table class =" table " >
308
318
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
309
319
<tbody >
310
-
311
-
320
+
312
321
<tr ><td ><code >serviceAccountTokenAudience</code > <B ><!-- [Required]--> [必需]</B ><br />
313
322
<code >string</code >
314
323
</td >
0 commit comments