> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siflow.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 管理 Kubeconfig

## 生成 Kubeconfig

1. 进入 Serverless Kubernetes -> Kubeconfig 管理页面。
2. 在需要生成 kubeconfig 的用户条目右侧，点击 CreateKubeconfig。
3. 根据需要填写 kubeconfig 的有效期（天数），点击 Confirm 完成创建。如下图所示：

<img src="https://mintcdn.com/siflow/MD6YC9TIaGxx7fBG/gpu-cloud/cluster/media/generate-kc.png?fit=max&auto=format&n=MD6YC9TIaGxx7fBG&q=85&s=50b4926d11ac80c9d1b67c0f4a3e2258" alt="创建" width="1274" height="284" data-path="gpu-cloud/cluster/media/generate-kc.png" />

## 查看 Kubeconfig

1. 进入 Serverless Kubernetes -> Kubeconfig 管理页面。
2. 在需要查看 kubeconfig 的用户条目右侧，点击 GetKubeconfig。如下图所示：

<img src="https://mintcdn.com/siflow/MD6YC9TIaGxx7fBG/gpu-cloud/cluster/media/view-kc.png?fit=max&auto=format&n=MD6YC9TIaGxx7fBG&q=85&s=4e000c62d17d84044c8ed141c572f7a0" alt="Create" width="1274" height="397" data-path="gpu-cloud/cluster/media/view-kc.png" />

## 使用 Kubeconfig

获取 kubeconfig 后，即可使用它管理该命名空间内的 k8s 资源。示例：

<img src="https://mintcdn.com/siflow/MD6YC9TIaGxx7fBG/gpu-cloud/cluster/media/use-kc.png?fit=max&auto=format&n=MD6YC9TIaGxx7fBG&q=85&s=e910ddf0805ed7bc480be753c69a30a5" alt="创建" width="832" height="158" data-path="gpu-cloud/cluster/media/use-kc.png" />

## 删除 Kubeconfig

1. 进入 Serverless Kubernetes -> Kubeconfig 管理页面。
2. 在需要删除 kubeconfig 的用户条目右侧，点击 DeleteKubeconfig。如下图所示：

<img src="https://mintcdn.com/siflow/MD6YC9TIaGxx7fBG/gpu-cloud/cluster/media/delete-kc.png?fit=max&auto=format&n=MD6YC9TIaGxx7fBG&q=85&s=136b1da96796272ca9b187e8bd9369d4" alt="Create" width="1274" height="244" data-path="gpu-cloud/cluster/media/delete-kc.png" />
