Skip to content

Commit 5b4e2d4

Browse files
committed
[zh] Update kubernetes-api/ files
1 parent 91c23ee commit 5b4e2d4

File tree

3 files changed

+33
-94
lines changed

3 files changed

+33
-94
lines changed

content/zh-cn/docs/reference/kubernetes-api/authentication-resources/service-account-v1.md

Lines changed: 25 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ content_type: "api_reference"
77
description: "ServiceAccount 将以下内容绑定在一起:1. 用户可以理解的名称,也可能是外围系统理解的身份标识 2. 可以验证和授权的主体 3. 一组 Secret。"
88
title: "ServiceAccount"
99
weight: 1
10-
auto_generated: true
1110
---
12-
1311
<!--
1412
api_metadata:
1513
apiVersion: "v1"
@@ -22,28 +20,17 @@ weight: 1
2220
auto_generated: true
2321
-->
2422

25-
<!--
26-
The file is auto-generated from the Go source code of the component using a generic
27-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
28-
to generate the reference documentation, please read
29-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
30-
To update the reference content, please follow the
31-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
32-
guide. You can file document formatting bugs against the
33-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
34-
-->
35-
3623
`apiVersion: v1`
3724

3825
`import "k8s.io/api/core/v1"`
3926

40-
4127
## ServiceAccount {#ServiceAccount}
4228

4329
<!--
4430
ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets
4531
-->
4632
ServiceAccount 将以下内容绑定在一起:
33+
4734
* 用户可以理解的名称,也可能是外围系统理解的身份标识
4835
* 可以验证和授权的主体
4936
* 一组 Secret
@@ -52,16 +39,15 @@ ServiceAccount 将以下内容绑定在一起:
5239

5340
- **apiVersion**: v1
5441

55-
5642
- **kind**: ServiceAccount
5743

58-
5944
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
6045

6146
<!--
6247
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
6348
-->
64-
标准对象的元数据,更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
49+
标准对象的元数据,更多信息:
50+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
6551

6652
- **automountServiceAccountToken** (boolean)
6753

@@ -77,8 +63,8 @@ ServiceAccount 将以下内容绑定在一起:
7763
ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
7864
-->
7965
imagePullSecrets 是对同一命名空间中 Secret 的引用列表,用于拉取引用此 ServiceAccount 的 Pod 中的任何镜像。
80-
imagePullSecrets 与 Secrets 不同,因为 Secrets 可以挂载在 Pod 中,但 imagePullSecrets 只能由 kubelet 访问。
81-
更多信息: https://kubernetes.io/zh-cn/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
66+
imagePullSecrets 与 Secret 不同,因为 Secret 可以挂载在 Pod 中,但 imagePullSecrets 只能由 kubelet 访问。更多信息:
67+
https://kubernetes.io/zh-cn/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
8268

8369
- **secrets** ([]<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>)
8470

@@ -94,7 +80,7 @@ ServiceAccount 将以下内容绑定在一起:
9480
-->
9581
**补丁策略:基于键 `name` 合并**
9682

97-
Secrets 是允许使用此 ServiceAccount 运行的 Pod 使用的同一命名空间中的秘密列表。
83+
secrets 是允许使用此 ServiceAccount 运行的 Pod 使用的同一命名空间中的秘密列表。
9884
仅当此服务帐户的 “kubernetes.io/enforce-mountable-secrets” 注释设置为 “true” 时,Pod 才限于此列表。
9985
此字段不应用于查找自动生成的服务帐户令牌机密以在 Pod 之外使用。
10086
相反,可以使用 TokenRequest API 直接请求令牌,或者可以手动创建服务帐户令牌 Secret。
@@ -111,16 +97,15 @@ ServiceAccountList 是 ServiceAccount 对象的列表
11197

11298
- **apiVersion**: v1
11399

114-
115100
- **kind**: ServiceAccountList
116101

117-
118102
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
119103

120104
<!--
121105
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
122106
-->
123-
标准列表元数据, 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
107+
标准列表元数据, 更多信息:
108+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
124109

125110
<!--
126111
- **items** ([]<a href="{{< ref "../authentication-resources/service-account-v1#ServiceAccount" >}}">ServiceAccount</a>), required
@@ -130,7 +115,8 @@ ServiceAccountList 是 ServiceAccount 对象的列表
130115
<!--
131116
List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
132117
-->
133-
ServiceAccount 列表,更多信息: https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/configure-service-account/
118+
ServiceAccount 列表,更多信息:
119+
https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/configure-service-account/
134120

135121
<!--
136122
## Operations {#Operations}
@@ -157,13 +143,12 @@ GET /api/v1/namespaces/{namespace}/serviceaccounts/{name}
157143

158144
<!--
159145
- **name** (*in path*): string, required
146+
147+
name of the ServiceAccount
160148
-->
161149
- **name** (**路径参数**): string, 必需
162150

163-
<!--
164-
name of the ServiceAccount
165-
-->
166-
ServiceAccount 的名称
151+
ServiceAccount 的名称。
167152

168153
<!--
169154
- **namespace** (*in path*): string, required
@@ -240,7 +225,6 @@ GET /api/v1/namespaces/{namespace}/serviceaccounts
240225

241226
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
242227

243-
244228
<!--
245229
- **limit** (*in query*): integer
246230
-->
@@ -337,7 +321,6 @@ GET /api/v1/serviceaccounts
337321

338322
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
339323

340-
341324
<!--
342325
- **labelSelector** (*in query*): string
343326
-->
@@ -394,7 +377,6 @@ GET /api/v1/serviceaccounts
394377

395378
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
396379

397-
398380
<!--
399381
#### Response
400382
-->
@@ -453,15 +435,13 @@ POST /api/v1/namespaces/{namespace}/serviceaccounts
453435

454436
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
455437

456-
457438
<!--
458439
- **pretty** (*in query*): string
459440
-->
460441
- **pretty** (**查询参数**): string
461442

462443
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
463444

464-
465445
<!--
466446
#### Response
467447
-->
@@ -480,7 +460,7 @@ POST /api/v1/namespaces/{namespace}/serviceaccounts
480460
481461
#### HTTP Request
482462
-->
483-
`update` 替换指定的ServiceAccount
463+
### `update` 替换指定的 ServiceAccount
484464

485465
#### HTTP 请求
486466

@@ -493,11 +473,12 @@ PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name}
493473

494474
<!--
495475
- **name** (*in path*): string, required
496-
-->
497-
- **name** (**路径参数**): string, required
498476
499477
name of the ServiceAccount
478+
-->
479+
- **name** (**路径参数**): string,必需
500480

481+
ServiceAccount 的名称。
501482

502483
<!--
503484
- **namespace** (*in path*): string, required
@@ -532,7 +513,6 @@ PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name}
532513

533514
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
534515

535-
536516
<!--
537517
- **pretty** (*in query*): string
538518
-->
@@ -556,7 +536,7 @@ PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name}
556536
557537
#### HTTP Request
558538
-->
559-
`patch` 部分更新指定的 ServiceAccount
539+
### `patch` 部分更新指定的 ServiceAccount
560540

561541
#### HTTP 请求
562542

@@ -569,13 +549,12 @@ PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name}
569549

570550
<!--
571551
- **name** (*in path*): string, required
552+
553+
name of the ServiceAccount
572554
-->
573555
- **name** (**路径参数**): string,必需
574556

575-
<!--
576-
name of the ServiceAccount
577-
-->
578-
ServiceAccount 的名称
557+
ServiceAccount 的名称。
579558

580559
<!--
581560
- **namespace** (*in path*): string, required
@@ -587,7 +566,6 @@ PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name}
587566

588567
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
589568

590-
591569
<!--
592570
- **dryRun** (*in query*): string
593571
-->
@@ -616,21 +594,18 @@ PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name}
616594

617595
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
618596

619-
620597
<!--
621598
- **pretty** (*in query*): string
622599
-->
623600
- **pretty** (**查询参数**): string
624601

625602
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
626603

627-
628604
<!--
629605
#### Response
630606
-->
631607
#### 响应
632608

633-
634609
200 (<a href="{{< ref "../authentication-resources/service-account-v1#ServiceAccount" >}}">ServiceAccount</a>): OK
635610

636611
201 (<a href="{{< ref "../authentication-resources/service-account-v1#ServiceAccount" >}}">ServiceAccount</a>): Created
@@ -643,8 +618,8 @@ PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name}
643618
#### HTTP Request
644619
-->
645620
### `delete` 删除一个 ServiceAccount
646-
#### HTTP 请求
647621

622+
#### HTTP 请求
648623

649624
DELETE /api/v1/namespaces/{namespace}/serviceaccounts/{name}
650625

@@ -655,14 +630,12 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts/{name}
655630

656631
<!--
657632
- **name** (*in path*): string, required
658-
-->
659-
- **name** (**路径参数**): string,必需
660633
661-
<!--
662634
name of the ServiceAccount
663-
-->
664-
ServiceAccount 的名称
635+
-->
636+
- **name** (**路径参数**): string,必需
665637

638+
ServiceAccount 的名称。
666639

667640
<!--
668641
- **namespace** (*in path*): string, required
@@ -671,7 +644,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts/{name}
671644

672645
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
673646

674-
675647
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
676648

677649
<!--
@@ -688,20 +660,17 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts/{name}
688660

689661
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
690662

691-
692663
<!--
693664
- **pretty** (*in query*): string
694665
-->
695666
- **pretty** (**查询参数**): string
696667

697668
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
698669

699-
700670
- **propagationPolicy** (*in query*): string
701671

702672
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
703673

704-
705674
<!--
706675
#### Response
707676
-->
@@ -736,7 +705,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
736705

737706
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
738707

739-
740708
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
741709

742710
<!--
@@ -746,7 +714,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
746714

747715
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
748716

749-
750717
<!--
751718
- **dryRun** (*in query*): string
752719
-->
@@ -761,7 +728,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
761728

762729
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
763730

764-
765731
<!--
766732
- **gracePeriodSeconds** (*in query*): integer
767733
-->
@@ -783,7 +749,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
783749

784750
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
785751

786-
787752
<!--
788753
- **pretty** (*in query*): string
789754
-->
@@ -826,7 +791,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
826791

827792
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
828793

829-
830794
<!--
831795
#### Response
832796
-->

content/zh-cn/docs/reference/kubernetes-api/other-resources/_index.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,3 @@ title: "Other Resources"
77
weight: 10
88
auto_generated: true
99
-->
10-
11-
<!--
12-
The file is auto-generated from the Go source code of the component using a generic
13-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
14-
to generate the reference documentation, please read
15-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
16-
To update the reference content, please follow the
17-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
18-
guide. You can file document formatting bugs against the
19-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
20-
-->
21-

0 commit comments

Comments
 (0)