Get kubeconfig
Changed onIssue a kubeconfig for the cluster. Every kubeconfig expires — the default lifetime is 7 days; use expires_in to choose another (10 minutes to 30 days). Grants full cluster-admin access while valid, so store it like a password, and rotate access to invalidate every issued kubeconfig at once.
For anything long-running (a workstation, CI), prefer the CLI: raff kubernetes kubeconfig <cluster-id> writes a kubeconfig that fetches a fresh token for every kubectl command, so it never expires and stores no credential on disk.
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/k8s/clusters/{cluster_id}/kubeconfig
- AuthAPI key in header X-API-Key
Path parameters
Cluster ID (short id, e.g. q7z7zg)
Query parameters
Kubeconfig lifetime in seconds (10 minutes to 30 days). Defaults to 7 days when omitted. Expired kubeconfigs stop working on their own.
Headers
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Response
Kubeconfig for kubectl
Example response
{
"api_endpoint": "https://q7z7zg.k8s.raffusercloud.com:6443"
}Changes
- info
added the new optional
queryrequest parameterexpires_in
- info
- info
endpoint added
- info