You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also use "kubeadm init --upload-certs" without specifying a certificate key and it will
70
73
generate and print one for you.
74
+
`)
75
+
generateCSRLongDesc=cmdutil.LongDesc(`
76
+
Generates keys and certificate signing requests (CSRs) for all the certificates required to run the control plane.
77
+
This command also generates partial kubeconfig files with private key data in the "users > user > client-key-data" field,
78
+
and for each kubeconfig file an accompanying ".csr" file is created.
79
+
80
+
This command is designed for use in [Kubeadm External CA Mode](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#external-ca-mode).
81
+
It generates CSRs which you can then submit to your external certificate authority for signing.
82
+
83
+
The PEM encoded signed certificates should then be saved alongside the key files, using ".crt" as the file extension,
84
+
or in the case of kubeconfig files, the PEM encoded signed certificate should be base64 encoded
85
+
and added to the kubeconfig file in the "users > user > client-certificate-data" field.
86
+
`)
87
+
generateCSRExample=cmdutil.Examples(`
88
+
# The following command will generate keys and CSRs for all control-plane certificates and kubeconfig files:
0 commit comments