Skip to main content
OnPremisesImmutable

Renew the certificates

The Kubernetes certificates of the control plane and of etcd expire. furyctl renews them for the OnPremises and Immutable providers.

note

The EKSCluster and KFDDistribution providers do not support certificate renewal: furyctl stops with the error renew is not supported. AWS manages the control plane of EKS, and you manage the control plane of a cluster that you install SD on.

Renew the cluster certificates​

Before you start, make sure that furyctl can connect with SSH to all the nodes of the configuration file. The command stops if a node does not answer.

Run, in the folder that contains the configuration file:

furyctl renew certificates

The command does these steps on the control plane and etcd nodes, one node at a time:

  1. It makes a copy of /etc/kubernetes/pki and /etc/etcd/pki in $HOME/certs-backup/<timestamp>/ on the node.
  2. It renews the certificates of the API server, the controller manager, the scheduler, the front proxy client, the admin kubeconfig and etcd.
  3. It restarts etcd, the API server, the controller manager and the scheduler, and waits until they run.
  4. It configures the kubelet to rotate its client certificate automatically, and restarts the kubelet.

At the end, the command shows the expiry dates of the renewed certificates.

warning

The command does not renew the certificate authorities (CA). It renews only the certificates that the CA signs.

Renew the kubeconfig files​

The client certificates in the kubeconfig files are valid for one year. To create new kubeconfig files, run:

furyctl renew kubeconfigs

The command renews the admin kubeconfig and the kubeconfig of each user in spec.kubernetes.advanced.users.names. It writes them in the current folder: kubeconfig for the admin, and <user>.kubeconfig for each user.

To renew only some kubeconfig files, give their names:

furyctl renew kubeconfigs admin alice

See the CLI reference for all the flags.