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
2422

25-
35-
3623
`apiVersion: v1`
3724

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

40-
4127
## ServiceAccount {#ServiceAccount}
4228

4329
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** (}}">ObjectMetaa>)
6045

6146
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** ([]}}">ObjectReferencea>)
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** (}}">ListMetaa>)
119103

120104
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
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
161149
- **name** (**路径参数**): string, 必需
162150

163-
166-
ServiceAccount 的名称
151+
ServiceAccount 的名称。
167152

168153
@@ -337,7 +321,6 @@ GET /api/v1/serviceaccounts
337321

338322
339323

340-
341324
@@ -394,7 +377,6 @@ GET /api/v1/serviceaccounts
394377

395378
396379

397-
398380
@@ -453,15 +435,13 @@ POST /api/v1/namespaces/{namespace}/serviceaccounts
453435

454436
455437

456-
457438
460441
- **pretty** (**查询参数**): string
461442

462443
463444

464-
465445
@@ -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
497-
- **name** (**路径参数**): string, required
498476
499477
name of the ServiceAccount
478+
-->
479+
- **name** (**路径参数**): string,必需
500480

481+
ServiceAccount 的名称。
501482

502483
@@ -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
573555
- **name** (**路径参数**): string,必需
574556

575-
578-
ServiceAccount 的名称
557+
ServiceAccount 的名称。
579558

580559
@@ -616,21 +594,18 @@ PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name}
616594

617595
618596

619-
620597
623600
- **pretty** (**查询参数**): string
624601

625602
626603

627-
628604
631607
#### 响应
632608

633-
634609
635610

636611
@@ -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
659-
- **name** (**路径参数**): string,必需
660633
661-
664-
ServiceAccount 的名称
635+
-->
636+
- **name** (**路径参数**): string,必需
665637

638+
ServiceAccount 的名称。
666639

667640
695666
- **pretty** (**查询参数**): string
696667

697668
698669

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

702672
703673

704-
705674
@@ -736,7 +705,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
736705

737706
738707

739-
740708
741709

742710
@@ -761,7 +728,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
761728

762729
763730

764-
765731
@@ -783,7 +749,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
783749

784750
785751

786-
787752
@@ -826,7 +791,6 @@ DELETE /api/v1/namespaces/{namespace}/serviceaccounts
826791

827792
828793

829-
830794

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-
21-

0 commit comments

Comments
 (0)