Skip to content
Docs

Get NKS Cluster Kubeconfig

GET/v1/nks/clusters/{cluster_id}/kubeconfig

Get the kubeconfig for an NKS cluster

Path ParametersExpand Collapse
cluster_id: string
ReturnsExpand Collapse
Kubeconfig object { kubeconfig }

Kubeconfig for an NKS Cluster.

kubeconfig: string

Kubeconfig content for the Cluster.

Get NKS Cluster Kubeconfig

curl https://api.nirvanalabs.io/v1/nks/clusters/$CLUSTER_ID/kubeconfig \
    -H "Authorization: Bearer $NIRVANA_LABS_API_KEY"
{
  "kubeconfig": "kubeconfig"
}
Returns Examples
{
  "kubeconfig": "kubeconfig"
}