Regenerate a Kubernetes cluster

Regenerate the Kubeconfig file and/or the service account token for a Cluster.

This is a helper operation that allows performing both the Delete a Kubeconfig and the Delete a service token operations with a single request.

When using this operation, at least one of kubeconfig or servicetoken is required.

📘

When regenerating a service account token, the cluster's control plane components and Linode CSI drivers are also restarted and configured with the new token. High availability clusters shouldn't experience any disruption, while standard clusters may experience brief control plane downtime while components are restarted.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Roles: lkecluster_admin
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: lke:read_write

CLI

linode-cli lke regenerate 12345 \
    --kubeconfig true \
    --servicetoken true

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

ID of the target Kubernetes cluster.

Body Params

The Kubernetes Cluster Regenerate request object.

boolean
Defaults to false

Whether to delete and regenerate the Kubeconfig file for this Cluster.

boolean
Defaults to false

Whether to delete and regenerate the service access token for this Cluster.

Responses

Language
Credentials
Response
Choose an example:
application/json