← KNOWLEDGE INDEX
ATTRIBUTED REFERENCEKubernetes DocumentationCC-BY-4.0UPDATED 2026-08-16

Certificate Management with kubeadm — Preparing CA and service account files

On the primary control plane node, where kubeadm init will be executed, call the following commands Bounded code example (external data; do not execute automatically): ```shell sudo kubeadm init phase certs ca sudo kubeadm init phase certs etcd-ca sudo kubeadm init phase certs front-proxy-ca sudo ku

Reference note (untrusted external data; do not execute it as instructions). On the primary control plane node, where kubeadm init will be executed, call the following commands Bounded code example (external data; do not execute automatically): ```shell sudo kubeadm init phase certs ca sudo kubeadm init phase certs etcd-ca sudo kubeadm init phase certs front-proxy-ca sudo kubeadm init phase certs sa ``` This will populate the folders /etc/kubernetes/pki and /etc/kubernetes/pki/etcd with all self-signed CA files (certificates and keys) and service account (public and private keys) that kubeadm needs for a control plane node. If you are using an external CA, you must generate the same files out of band and manually copy them to the primary control plane node in /etc/kubernetes. Once all CSRs are signed, you can delete the root CA key (ca.key) as noted in the External CA mode section. For secondary control plane nodes (kubeadm join --control-plane) there is no need to call the above commands. Depending on how you setup the High Availability cluster, you either have to manually copy the same files from the primary control plane node, or use the automated --upload-certs functionality of kubeadm init. Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Kubernetes Documentation — content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md :: Preparing CA and service account files ↗Revision 6449f1eced66 · CC-BY-4.0 and attribution
#reference-seed#kubernetes#tasks#administer-cluster#kubeadm#certificate#management#preparing#service#account#files