1
1
---
2
2
title : 证书和证书签名请求
3
+ api_metadata :
4
+ - apiVersion : " certificates.k8s.io/v1"
5
+ kind : " CertificateSigningRequest"
6
+ override_link_text : " CSR v1"
7
+ - apiVersion : " certificates.k8s.io/v1alpha1"
8
+ kind : " ClusterTrustBundle"
3
9
content_type : concept
4
- weight : 25
10
+ weight : 60
5
11
---
6
12
<!--
7
13
reviewers:
@@ -10,8 +16,14 @@ reviewers:
10
16
- munnerz
11
17
- enj
12
18
title: Certificates and Certificate Signing Requests
19
+ api_metadata:
20
+ - apiVersion: "certificates.k8s.io/v1"
21
+ kind: "CertificateSigningRequest"
22
+ override_link_text: "CSR v1"
23
+ - apiVersion: "certificates.k8s.io/v1alpha1"
24
+ kind: "ClusterTrustBundle"
13
25
content_type: concept
14
- weight: 25
26
+ weight: 60
15
27
-->
16
28
17
29
<!-- overview -->
@@ -676,14 +688,14 @@ you like. If you want to add a note for human consumption, use the
676
688
677
689
{{< note >}}
678
690
<!--
679
- In Kubernetes {{< skew currentVersion >}}, you must enable the `ClusterTrustBundles `
691
+ In Kubernetes {{< skew currentVersion >}}, you must enable the `ClusterTrustBundle `
680
692
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
681
693
_and_ the `certificates.k8s.io/v1alpha1`
682
694
{{< glossary_tooltip text="API group" term_id="api-group" >}} in order to use
683
695
this API.
684
696
-->
685
697
在 Kubernetes {{< skew currentVersion >}} 中,如果想要使用此 API,
686
- 必须同时启用 `ClusterTrustBundles ` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
698
+ 必须同时启用 `ClusterTrustBundle ` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
687
699
**以及** `certificates.k8s.io/v1alpha1` {{< glossary_tooltip text="API 组" term_id="api-group" >}}。
688
700
{{< /note >}}
689
701
@@ -783,7 +795,7 @@ controller in the cluster, so they have several security features:
783
795
` <signerNameDomain>/*` .
784
796
* Signer-linked ClusterTrustBundles **must** be named with a prefix derived from
785
797
their `spec.signerName` field. Slashes (`/`) are replaced with colons (`:`),
786
- and a final colon is appended. This is followed by an arbitary name. For
798
+ and a final colon is appended. This is followed by an arbitrary name. For
787
799
example, the signer `example.com/mysigner` can be linked to a
788
800
ClusterTrustBundle `example.com:mysigner:<arbitrary-name>`.
789
801
-->
@@ -847,6 +859,19 @@ signer-unlinked ClusterTrustBundles **must not** contain a colon (`:`).
847
859
为了将它们与与签名者关联的 ClusterTrustBundle 区分开来,与签名者未关联的
848
860
ClusterTrustBundle 的名称**必须不**包含英文冒号 (`:`)。
849
861
862
+ <!--
863
+ # ## Accessing ClusterTrustBundles from pods {#ctb-projection}
864
+ -->
865
+ # ## 从 pod 访问 ClusterTrustBundles {#ctb-projection}
866
+
867
+ {{<feature-state for_k8s_version="v1.29" state="alpha" >}}
868
+
869
+ <!--
870
+ The contents of ClusterTrustBundles can be injected into the container filesystem, similar to ConfigMaps and Secrets. See the [clusterTrustBundle projected volume source](/docs/concepts/storage/projected-volumes#clustertrustbundle) for more details.
871
+ -->
872
+ ClusterTrustBundle 的内容可以注入到容器文件系统,这与 ConfigMap 和 Secret 类似。
873
+ 更多细节参阅 [clusterTrustBundle 投射卷源](/zh-cn/docs/concepts/storage/projected-volumes#clustertrustbundle)。
874
+
850
875
<!-- TODO this should become a task page -->
851
876
852
877
<!--
@@ -1049,9 +1074,13 @@ kubectl config use-context myuser
1049
1074
* View the source code for the kube-controller-manager built in [approver](http://github.com/kubernetes/kubernetes/blob/32ec6c212ec9415f604ffc1f4c1f29b782968ff1/pkg/controller/certificates/approver/sarapprove.go)
1050
1075
* For details of X.509 itself, refer to [RFC 5280](http://tools.ietf.org/html/rfc5280#section-3.1) section 3.1
1051
1076
* For information on the syntax of PKCS#10 certificate signing requests, refer to [RFC 2986](http://tools.ietf.org/html/rfc2986)
1077
+ * Read about the ClusterTrustBundle API:
1078
+ * {{< page-api-reference kind="ClusterTrustBundle" >}}
1052
1079
-->
1053
1080
* 参阅 [管理集群中的 TLS 认证](/zh-cn/docs/tasks/tls/managing-tls-in-a-cluster/)
1054
1081
* 查看 kube-controller-manager 中[签名者](http://github.com/kubernetes/kubernetes/blob/32ec6c212ec9415f604ffc1f4c1f29b782968ff1/pkg/controller/certificates/signer/cfssl_signer.go)部分的源代码
1055
1082
* 查看 kube-controller-manager 中[批准者](http://github.com/kubernetes/kubernetes/blob/32ec6c212ec9415f604ffc1f4c1f29b782968ff1/pkg/controller/certificates/approver/sarapprove.go)部分的源代码
1056
1083
* 有关 X.509 本身的详细信息,请参阅 [RFC 5280](http://tools.ietf.org/html/rfc5280#section-3.1) 第 3.1 节
1057
1084
* 有关 PKCS#10 证书签名请求语法的信息,请参阅 [RFC 2986](http://tools.ietf.org/html/rfc2986)
1085
+ * 阅读 ClusterTrustBundle 相关内容:
1086
+ * {{< page-api-reference kind="ClusterTrustBundle" >}}
0 commit comments