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
- Roles:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
lke:read_write
- Scopes:
CLI
linode-cli lke regenerate 12345 \
--kubeconfig true \
--servicetoken true