Generate a new Kubeconfig file for a SKS cluster

POST /sks-cluster-kubeconfig/{id}

This operation returns a Kubeconfig file encoded in base64.

Path parameters

  • id string(uuid) Required
application/json

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.

Responses

  • 200 application/json

    200

    Hide response attribute Show response attribute object
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 example
{
  "ttl": 42,
  "user": "string",
  "groups": [
    "string"
  ]
}
Response examples (200)
{
  "kubeconfig": "string"
}