Service Account Setup
- Generate an service account
- Create a new token
- Assign RBAC permissions
- List Pods
- Get Pods
- Watch Pods
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage Kubernetes resources through kubectl commands or native API access. This integration supports both CLI-based workflows and direct interaction with the Kubernetes API for full cluster control.
kubectl create serviceaccount mysa -n hoopdev
kubectl create token mysa -n hoopdev
kubectl apply -f - <<EOF
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: mysa-role
namespace: hoopdev
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: mysa-binding
namespace: hoopdev
subjects:
- kind: ServiceAccount
name: mysa
namespace: hoopdev
roleRef:
kind: Role
name: mysa-role
apiGroup: rbac.authorization.k8s.io
EOF
Was this page helpful?