Linode Kubernetes Engine (LKE)
Kubernetes Cluster Regenerate
https://api.linode.com/v4/lke/clusters/{clusterId}/regenerate
Regenerate the Kubeconfig file and/or the service account token for a Cluster.
This is a helper command that allows performing both the Kubeconfig Delete and the Service Token Delete actions with a single request.
When using this command, at least one of kubeconfig
or servicetoken
is required.
Note: 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 should not experience any disruption, while standard Clusters may experience brief control plane downtime while components are restarted.
Path Parameters
ID of the target Kubernetes cluster.
Request Body Schema
Whether to delete and regenerate the Kubeconfig file for this Cluster.
Whether to delete and regenerate the service access token for this Cluster.
Request Samples
- Shell
- CLI
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"kubeconfig": true;
"servicetoken": true
}' \
https://api.linode.com/v4/lke/clusters/12345/regenerate
Response Samples
- 200
- default
{}
Responses
200: Regenerate request successful.
default: Error
What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.
The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.