k8s-dev
Assistance with Remote Kubernetes Development (Telepresence, Okteto, DevSpace). Use when: k8s dev, remote dev, telepresence, okteto, devspace, tilt, scaffold, remote cluster.
SKILL.mdplugins/gabbe-ops/skills/k8s-dev/SKILL.md
GitHubKubernetes Dev Skill
Goal
To develop directly against a remote Kubernetes cluster, enabling access to cloud dependencies and effectively "infinite" resources.
Capabilities
1. Remote Interception (Telepresence)
- Intercept: Route traffic from a remote service to your laptop.
- Debug: Step through code locally while handling live remote requests.
- Preview URLs: Share a specific intercept version with teammates.
2. Sync & Hot Reload (Okteto / DevSpace)
- File Sync: Bi-directional sync between local folder and remote pod.
- Terminal: Get a shell inside the remote pod.
- Environment: Spin up ephemeral namespaces for each developer.
3. Configuration
- DevSpace: Generate
devspace.yamlfor pipeline + sync. - Okteto: Generate
okteto.yamlfor hybrid dev.
Steps
- When to use: Recommend Remote Dev when the app is too large for Docker Desktop (RAM/CPU limits) or depends on cloud-only resources (RDS, SQS).
- Isolation: Ensure developers work in their own Namespaces to avoid stepping on toes.
- Security: Use RBAC to limit developer permissions in the cluster.
Deliverables
devspace.yamlconfiguration.telepresenceintercept commands.okteto.yamlmanifest.
Constraints
- Each developer works in their own namespace with a time limit.
- Remote development targets dev or staging clusters only.
Output Format
The files named under Deliverables (devspace.yaml, okteto.yaml, intercept commands) and the namespace and RBAC manifests.
Limits and safety
- Never intercept or sync into the production namespace or cluster; check the current kube context before every command.
- Give developers edit and exec rights in their own namespace only, never cluster-admin.
- Set a TTL on developer namespaces; propose the cleanup command for stale ones and run it only after the human confirms.
- Exclude
.envfiles and local secret folders from sync to the cluster. - If your cluster supports network policies, block egress from dev pods to production namespaces.