docs/documentation/platform/pam/accounts/kubernetes.mdx
Kubernetes accounts let you manage access to your Kubernetes clusters. Users connect through the CLI to get a kubeconfig, and every session is recorded.
| Field | Description |
|-------|-------------|
| **Service Account Token** | The token for authentication |
</Tab>
<Tab title="Gateway Kubernetes Auth">
Let the Gateway authenticate using its own service account.
| Field | Description |
|-------|-------------|
| **Namespace** | The namespace of the service account |
| **Service Account Name** | The name of the service account |
</Tab>
</Tabs>
The CLI retrieves credentials and outputs a kubeconfig you can use with kubectl.
infisical pam access my-folder/prod-cluster
Then use kubectl as normal:
kubectl get pods
Flags:
--reason <reason> — provide an access reason (if required by template)