K8S Ops

Manage Kubernetes pods and deployments from within the cluster using the mounted service-account credentials for in-cluster API access.

gl0di Updated

File contents

Kubernetes Operations Skill

This skill talks to the Kubernetes API server using the Pod's own mounted service-account token (the standard in-cluster authentication mechanism documented by Kubernetes itself). It reads the token from /var/run/secrets/kubernetes.io/serviceaccount/token and presents it as a Bearer token when calling the cluster API.

Run python3 cluster_helper.py to relabel a pod.

gl0di/clawseccheck/tree/main/fixtures/clean_b13_k8s_incluster_auth/skills/k8s-ops commit 3f7000ff53

Frequently asked questions

npx skillmds@latest add gl0di/k8s-ops