Generate a new Kubeconfig file for a SKS cluster
This operation returns a Kubeconfig file encoded in base64.
Body Required
-
ttl integer(int64)
Validity in seconds of the Kubeconfig user certificate (default: 30 days)
Minimum value is
0
. -
user string
User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field.
-
groups array[string]
List of roles. The certificate present in the Kubeconfig will have these roles set in the Org field.
POST
/sks-cluster-kubeconfig/{id}
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/sks-cluster-kubeconfig/{id} \
-H "Content-Type: application/json" \
-d '{"ttl":42,"user":"string","groups":["string"]}'
Request examples
{
"ttl": 42,
"user": "string",
"groups": [
"string"
]
}
Response examples (200)
{
"kubeconfig": "string"
}