Renewing kubeadm certificates before they expire

kubeadm issues control plane certificates with a one-year lifetime by default, so a cluster that is not renewed or upgraded can fail without warning. This page explains how to check expiry, renew safely, and plan the work.

On this page

Why kubeadm certificate renewal decides whether a cluster survives its first year

If your kubeadm cluster has been running for months and nobody has tracked its certificates, you may be closer to an outage than you think. kubeadm certificate renewal is the work of checking when each control plane and node certificate expires and renewing it before that date, so the API server, scheduler, controller manager and kubelets keep authenticating. kubeadm manages a set of certificates for the control plane, including the API server serving certificate, the API server's client certificates for etcd and kubelets, the front-proxy certificates, and the etcd certificates, plus client credentials kept in kubeconfig files such as admin.conf. Most of these are issued with a one-year default lifetime, so a cluster built and then left alone can reach expiry without any visible warning until components start failing to connect.

Renewal becomes necessary in three common situations. The first is a routine kubeadm upgrade, where the upgrade process can renew certificates as part of the control plane change. The second is a cluster that sat idle or was not upgraded for long periods, where certificates have aged past their window without anyone noticing. The third is a handover, when a new operator inherits a cluster and has no record of when certificates were last issued. Confirm with your own kubeadm version which certificates it manages, how it reports their expiry, and whether your upgrade procedure already renews them, because that determines whether a separate renewal task is needed at all.

Decide early who owns this check and how it is recorded. Write down the expiry dates for every managed certificate, add an alert well ahead of the earliest one, and name the person who runs renewal when the alert fires. The rest of this page covers how to check expiry, how renewal runs during upgrades, manual renewal, the static pod restarts that renewal requires, and the separate rotation of kubelet client certificates.

Renewal options and when each fits

This table compares the four ways kubeadm clusters get new certificates: renewal during an upgrade, manual renewal, full regeneration and kubelet client rotation. Read each row by asking which certificates it touches and whether it fits your current maintenance window. Confirm the exact command behavior for your kubeadm version before running any of them.

OptionWhat it renewsWhen it fitsMain risk
Renewal during a kubeadm upgradeControl plane certificates managed by kubeadm, renewed as part of the upgrade planClusters already due for a minor version upgrade, with a tested rollback pathUpgrade failures are harder to separate from certificate problems when both change at once
Manual renewal with kubeadm certs renewSelected or all kubeadm-managed control plane certificates, on demandClusters close to expiry with no upgrade planned soonControl plane components keep using old certificates until static pods restart
Full certificate regenerationCertificates and keys regenerated from existing cluster configuration, usually on a control plane node being rebuiltCertificates are compromised, the CA is being replaced, or renewal has already lapsedChanges trust material for every component, so kubeconfig files and clients must be updated
Kubelet client certificate rotationThe kubelet client certificate used to talk to the API serverNodes where automatic rotation is enabled or can be enabled in the kubelet configurationNodes with rotation disabled keep their client certificate until it expires
Admin kubeconfig refreshThe admin.conf credentials used by cluster administratorsAfter renewal or regeneration, so operator tooling uses current credentialsOld copies of admin.conf on laptops and CI systems keep working until they are removed
Static pod restartNot a certificate operation itself, but makes control plane components load renewed filesRequired after manual renewal so kube-apiserver, kube-controller-manager and kube-scheduler reload certificatesRestarting the wrong component, or all control plane nodes at once, can cause API downtime

How to check expiry and renew kubeadm certificates in order

This sequence inventories every kubeadm-managed certificate, takes a recoverable backup, renews the certificates on each control plane node, restarts the static pods that load them, and confirms that API access and kubelet credentials work before moving on. The result is a control plane with new expiry dates and a record of each change.

  1. Inventory certificate expiry on every control plane node

    Run kubeadm certs check-expiration on each control plane node, not only the first one, because each node holds its own copies of the certificates under /etc/kubernetes/pki. Record the expiry date for every entry, including the apiserver, etcd and front-proxy certificates. The CA certificates are not renewed by this command, so check their expiry separately with openssl x509. Also note the kubelet client certificate under /var/lib/kubelet/pki on each node for the final step. You are done when you have a per-node table of dates and you know which certificates fall inside your change window.

  2. Back up control plane state and etcd first

    Copy /etc/kubernetes from each control plane node to storage outside the cluster, including the pki directory and every .conf file. Then take an etcd snapshot with etcdctl snapshot save, passing the endpoint and the certificate flags that match your etcd setup. Confirm the snapshot file exists off the node and can be read, and keep etcdutl available because restores use it. You are done when the file copies and the snapshot are stored outside the nodes you are about to change.

  3. Renew certificates on the first control plane node

    On one control plane node, run kubeadm certs renew all, or renew only the certificates that are due with kubeadm certs renew followed by the certificate name. Read the output to confirm each renewed certificate is listed. Then run kubeadm certs check-expiration again and confirm the new dates. Renewal writes new files, but running static pods keep the old certificates in memory until they restart, so the next step is required. You are done when the check shows new expiry dates for every certificate you targeted.

  4. Restart static control plane pods on that node

    The kube-apiserver, kube-controller-manager, kube-scheduler and etcd pods run from manifests in /etc/kubernetes/manifests. Move each manifest out of that directory, wait until the pod stops, then move it back so the kubelet starts the pod with the renewed files. Restart the kubelet only if your version requires it, and confirm this behavior for your kubeadm release. On a stacked control plane, restart etcd one node at a time and check etcdctl endpoint health before continuing. You are done when the four pods show new start times and kubectl get --raw='/readyz?verbose' reports the API server ready.

  5. Refresh admin.conf and other kubeconfig files

    Check whether /etc/kubernetes/admin.conf, controller-manager.conf, scheduler.conf and kubelet.conf still embed an expired client certificate. Confirm in your kubeadm version whether renewal rewrote those files. If one still contains an old certificate, regenerate it with the matching kubeadm init phase kubeconfig subcommand, then copy the new admin file to each administrator's ~/.kube/config. Restart the control plane pods that read a regenerated file. You are done when a kubectl command run with the refreshed admin kubeconfig succeeds and the embedded certificate shows a future expiry date.

  6. Repeat the sequence on each remaining control plane node

    On a high availability cluster, run steps three through five on the next control plane node only after the previous node's API server and etcd member are healthy. Clients reach the API servers through a TCP load balancer on port 6443, so keep at least one healthy backend in rotation throughout. Check the load balancer's health checks after each node, and confirm that etcd still has quorum. You are done when every control plane node reports new certificate dates and the load balancer lists each API server backend as healthy.

  7. Verify API health and node readiness

    Run kubectl get nodes and confirm every node reports Ready, then check kubectl get pods -n kube-system for crash loops in the control plane pods. Run kubectl get --raw='/readyz?verbose' through the load balancer address, not a single node, so you test the path clients use. Review the apiserver and kubelet logs for TLS handshake errors. You are done when all nodes are Ready, system pods are running and the verbose readiness output shows no failed checks.

  8. Confirm kubelet client certificate rotation is active

    Check that the kubelet configuration has rotateCertificates enabled and that /var/lib/kubelet/pki contains a kubelet-client-current.pem link that kubelet.conf uses. Read the expiry date of the current client certificate with openssl x509. Run kubectl get csr to see whether rotation requests are being created and approved, and confirm your approval process handles them if you do not auto-approve. Ask your distribution's documentation whether the kubelet serving certificate needs a separate setting. You are done when the current symlink exists, its expiry is in the future, and rotation requests are being issued and approved as expected.

Renewal runs node by node, and an upgrade can renew certificates for you

The flow starts with checking expiry on the control plane nodes. Before anything changes, the team takes a backup of the certificates and the etcd data, then renews certificates on each control plane node in turn. Renewal alone does not reload anything: the static pods for the API server, controller manager, scheduler and etcd must be restarted so they read the new files, and the kubeconfig files must be refreshed. Verification comes before the kubelet client certificate rotation step, so a failed node is caught early.

Renewal path for each control plane node, with the upgrade branch.

How upgrades renew certificates and where they do not

On a kubeadm cluster, kubeadm upgrade plan and kubeadm upgrade apply renew the control plane certificates by default, so a regular upgrade often resets the expiry clock without a separate renewal step. That default only protects you if the cluster is upgraded on a schedule. Kubernetes ships roughly three minor releases a year, and the project supports only the three most recent minor versions, so a cluster that is upgraded rarely can fall behind the supported range and reach its certificate deadline before anyone has planned the work. Before relying on upgrades for renewal, confirm that the renewal behavior is not disabled in your ClusterConfiguration or in the flags your team passes to kubeadm, and record the date of the last successful control plane renewal for each cluster.

The version skew policy shapes how an upgrade can be sequenced. The kube-apiserver must be moved up one minor version at a time, and it must be upgraded before kube-controller-manager, kube-scheduler and the kubelets. Kubelets may run up to three minor versions behind the kube-apiserver. In practice, this means a cluster that has been left alone for several minor releases cannot be brought current in a single step. Each intermediate upgrade also renews certificates, but each one needs its own change window, rollback plan and workload checks. Work out how many steps your oldest cluster needs before you schedule anything, because the number of steps, not the renewal itself, is usually what turns a routine task into a long project. The Kubernetes version skew policy sets out the exact rules.

Upgrades do not renew everything. Certificates that kubeadm does not manage in the upgrade path, such as the kubeconfig embedded in admin.conf for a client outside the cluster, certificates on external etcd nodes, front-proxy or custom CA material you supplied, and certificates used by your identity or ingress tooling, need their own inventory and renewal plan. Treat the upgrade as one renewal path among several. The Kubernetes upgrades group covers the minor-version sequence in detail, and the manual renewal and expiry checks on this page cover what an upgrade leaves behind. Confirm with your operations team which certificates sit outside kubeadm's scope before you assume an upgrade covers them.

Failure modes that cause the one-year outage

kubeadm issues client and serving certificates with a one-year lifetime, and the failures below share one cause: a certificate expires without anyone noticing. Each card names the symptom operators see and the check that would have caught it before the cluster stopped responding.

Expired API server serving certificate

The kube-apiserver serving certificate is presented to every client that calls the API. When it expires, kubectl, the kubelets, controllers and any CI job that talks to the cluster fail TLS verification at once, and the cluster looks down even though its containers are still running. Check the expiry date of apiserver.crt on each control plane node with kubeadm certs check-expiration before the window closes, and alert on the date rather than on the failure.

kubeadm HA guide

Expired etcd peer and client certificates

In a stacked control plane, etcd members authenticate each other with peer certificates and the API server authenticates to etcd with a client certificate. If a peer certificate expires, members stop replicating to each other, and quorum is lost even though most nodes are healthy. Check the etcd/peer.crt, etcd/server.crt and apiserver-etcd-client.crt expiry dates, because they are easy to miss in a standard expiry review.

Expired admin.conf locks out operators

The admin.conf kubeconfig carries a client certificate for the cluster-admin identity. When it expires, the people who would run the renewal can no longer reach the API with that file, so recovery starts from a control plane shell. Check the embedded certificate's expiry with the kubeadm expiry command, and keep a separately issued administrator identity in your access model so a single expired file does not decide who can act.

Kubelet client certificate failure

Each kubelet uses a client certificate to report node status and fetch pod specs. When that certificate expires and rotation is not working, the API server marks the node NotReady, and the scheduler stops placing new work there. Check that kubelet certificate rotation is enabled and that the kubelet's current certificate in its PKI directory has a future expiry date. Node-level symptoms appear only after the certificate has already expired.

Renewal on one control plane node only

kubeadm certificate renewal runs on the node where it is invoked, so a control plane node skipped during the renewal keeps its old certificates. The cluster then works until the skipped node's certificates expire, which can be months after the renewal looked successful. Run the expiry check on every control plane node after each renewal and record the results, since each node holds its own copies of the certificates and keys.

Restarting static pods without a backup

Renewed certificates are written to /etc/kubernetes/pki, and the static pods for the API server, controller manager and scheduler only load them on restart. Restarting a static pod with a bad renewal or a damaged PKI directory, and without a copy of the old files, leaves no safe path back. Before renewal, copy /etc/kubernetes and take an etcd snapshot, then restart one control plane component at a time and confirm each returns healthy before moving on.

etcd operations docs

Questions teams ask before renewing kubeadm certificates

How much effort does renewing kubeadm certificates take?

Effort depends mainly on how the cluster was built and how well it is documented. A single control plane node with a current runbook is a small, contained task, while a stacked three-node control plane with custom static pod manifests, several kubeadm generations and no written procedure takes longer to check and verify. Node count matters less than the number of control plane nodes, because each one needs its own renewal and component restart. Costs split into internal engineering time, any partner fees under a written scope, and the maintenance window itself. Ask a partner to quote against your topology, your upgrade plan and whether they must also verify kubelet client rotation, not against a generic cluster.

How long does a certificate renewal window take?

The renewal itself is usually short, but the window must also cover checks before and after the change. Plan time for listing expiry dates, confirming you have a working etcd snapshot, renewing certificates, restarting static pods on each control plane node, and confirming the API server, controller manager and scheduler are healthy. Clusters with external etcd or a load balancer in front of kube-apiserver on port 6443 add steps for each component. Ask your team or a partner to show a time estimate based on your own environment, and test the procedure in a non-production cluster first so the production window reflects real steps.

Can our team renew kubeadm certificates without outside help?

Yes, if the team has engineers who understand kubeadm, static pod manifests and the control plane layout, and if they can test the procedure before production. The work is documented in the upstream kubeadm guides, so the main gap is usually practice rather than knowledge. Teams that have not renewed certificates on a cluster before often miss the kubelet client certificate, the admin kubeconfig or the restart of static pods that still hold old certificates. A short rehearsal on a staging cluster built the same way will show whether your team can do it alone.

What does the renewal work need from our team?

The work needs privileged access to every control plane node, access to a current etcd snapshot, and a change window approved by the people who own production. Prepare a backup of the cluster state and the /etc/kubernetes directory, confirm who can roll back, and agree on the checks that mark the work complete. Engineers should also know which workloads depend on the API server and which clients, such as CI jobs or GitOps controllers, will need new kubeconfig files. Teams that cannot provide a maintenance window or a tested restore path should resolve those gaps before the renewal date.

Is a cluster that was recently upgraded safe from certificate expiry?

Not automatically. kubeadm renews certificates during a control plane upgrade, but only when the upgrade is run with the standard procedure on every control plane node, and certificates that are not managed by kubeadm are left alone. Confirm the expiry dates after the upgrade rather than assuming they changed. Also check the admin kubeconfig, the kubelet client certificate and any certificates you added by hand, such as ingress or webhook certificates. The kubeadm documentation describes the expiry check command and the renewal options, so use it as the baseline for your verification.

Should a partner handle kubeadm certificate renewal for us?

A partner is worth considering when the cluster is a multi-node stacked or external etcd topology, when your team has not renewed certificates before, or when the renewal is combined with an upgrade that the team has not rehearsed. Ask for a written scope that names the clusters, the nodes, the checks, the rollback plan and the documentation you will receive. DeployOpen plans and implements self-hosted platforms in infrastructure you control, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. A partner does not change your accountability for production, so agree who approves the change and who runs it.

Which factors change the effort most for a kubeadm cluster?

The biggest drivers are topology, cluster age, node count and documentation quality. A stacked control plane with etcd on the same nodes needs careful ordering so that quorum is never lost during restarts. An external etcd cluster adds certificates for etcd peers and clients that must be checked separately. Older clusters often carry custom certificates, manifests or scripts that nobody has reviewed. Missing runbooks, undocumented load balancer settings and unknown consumers of the admin kubeconfig add time because each gap must be found before the change. Ask for an inventory of these items as the first step of any quote.

Where to read the official renewal and version rules

Start with the kubeadm high availability guide before you touch certificates on a multi-node control plane. The Creating highly available clusters with kubeadm page describes the two topologies you may be running: a stacked control plane, where etcd members share nodes with the control plane, and an external etcd cluster. It also sets out the baseline the rest of this topic assumes, including at least three control plane nodes and a TCP load balancer in front of kube-apiserver on port 6443. Confirm which topology your cluster uses, because it determines whether you renew certificates on every control plane node in turn and whether etcd certificates live on the same hosts. Check that your load balancer keeps routing during each node restart, since a renewal that restarts kube-apiserver on one node should never take the whole endpoint down.

The version skew policy covers the upgrade order that governs when certificate renewal can safely happen alongside a version change. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets, and allows kubelets to trail the API server by up to three minor versions. Read it before combining a kubeadm upgrade with renewal, so you know which components must already be on the new version. Ask your platform team to record the current control plane and kubelet versions for every node, then compare them against the policy and the release dates on the official releases page. Plan renewal as a separate, reversible step with its own change window wherever the skew rules leave any ambiguity.

How DeployOpen scopes and delivers certificate renewal work

DeployOpen plans and carries out kubeadm certificate renewal inside infrastructure you control, from the first expiry inventory through renewal, restart verification and handover. The work is written as a fixed scope with agreed deliverables, and the cluster's own certificates, kubeconfigs and control plane nodes stay in your environment throughout.

How we scope

  • Inventory every kubeadm-managed certificate and kubeconfig with its expiry date and owning node.
  • Confirm the cluster's kubeadm version and whether renewal will run alongside a planned upgrade.
  • Agree in writing whether kubelet client rotation and admin.conf replacement are in or out of scope.

How we build

  • Run renewal on a staged control plane node first, then roll the same steps across remaining control plane nodes.
  • Restart static pods in a controlled order and confirm the API server, scheduler and controller manager reload cleanly.
  • Test kubectl access with renewed credentials and check that kubelets on each node still report Ready.

How we hand over

  • Document the expiry inventory, renewal commands used and the date each certificate expires after renewal.
  • Deliver a runbook covering the manual renewal steps, static pod restart procedure and rollback path.
  • Walk your platform and security teams through the renewal and provide a calendar of the next expiry checks.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer for clusters that need recurring checks.
  • Ask for a quote built from the written scope, including which nodes, clusters and environments are covered.
  • Confirm with us whether your air-gapped or restricted network needs an offline procedure before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.