Agent skill

kubernetes

Provides comprehensive guidance for Kubernetes including pods, services, deployments, ingress, ConfigMaps, and cluster management. Use when the user asks about Kubernetes, needs to deploy applications, configure resources, or troubleshoot cluster issues.

Stars 254
Forks 41

Install this agent skill to your Project

npx add-skill https://github.com/partme-ai/full-stack-skills/tree/main/skills/devops-skills/kubernetes

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Write Deployment, Service, ConfigMap, Secret, or Ingress manifests
  • Deploy, scale, or troubleshoot pods and clusters with kubectl
  • Design resource limits, health probes, rolling updates, and operational workflows
  • Set up local development clusters with minikube, kind, or k3d

How to use this skill

Workflow

  1. Write manifests — define workloads and services in YAML
  2. Apply to cluster — use kubectl apply -f to deploy
  3. Verify status — check rollout, pod health, and service endpoints
  4. Debug issues — inspect logs, describe resources, exec into pods

Quick Start Example

yaml
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 3
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
        - name: myapp
          image: myapp:1.0.0
          ports:
            - containerPort: 8080
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 500m
              memory: 256Mi
          livenessProbe:
            httpGet:
              path: /healthz
              port: 8080
            initialDelaySeconds: 10
          readinessProbe:
            httpGet:
              path: /ready
              port: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: myapp
spec:
  selector:
    app: myapp
  ports:
    - port: 80
      targetPort: 8080
  type: ClusterIP
bash
# Apply manifests
kubectl apply -f deployment.yaml

# Check rollout status
kubectl rollout status deployment/myapp

# View pod logs
kubectl logs -l app=myapp --tail=50

# Exec into a pod for debugging
kubectl exec -it deployment/myapp -- /bin/sh

Essential kubectl Commands

Command Purpose
kubectl apply -f <file> Create or update resources
kubectl get pods -w Watch pod status
kubectl describe pod <name> Inspect pod details and events
kubectl logs <pod> -f Stream container logs
kubectl rollout undo deployment/<name> Roll back a deployment
kubectl scale deployment/<name> --replicas=5 Scale replicas

Best Practices

  • Always set requests and limits for CPU and memory
  • Configure livenessProbe and readinessProbe for every container
  • Use Secrets for sensitive data and ConfigMaps for configuration
  • Define rolling update strategy with maxSurge and maxUnavailable
  • Collect logs and metrics centrally; use RBAC and NetworkPolicies in production

Troubleshooting

  • CrashLoopBackOff: Run kubectl logs <pod> --previous to see crash output; check resource limits and probe configuration
  • ImagePullBackOff: Verify image name/tag exists and imagePullSecrets are configured
  • Pending pods: Run kubectl describe pod <name> — look for insufficient resources or unschedulable nodes
  • Service not reachable: Verify selector labels match pod labels; check endpoints with kubectl get endpoints <svc>

Keywords

kubernetes, k8s, kubectl, deployment, pod, service, ingress, configmap, secret, container orchestration

Expand your agent's capabilities with these related and highly-rated skills.

partme-ai/full-stack-skills

ocrmypdf-batch

OCRmyPDF batch processing skill — process multiple PDFs, Docker automation, shell scripting, and CI/CD integration. Use when the user needs to OCR many PDFs, set up automated OCR pipelines, or integrate OCR into workflows.

254 41
Explore
partme-ai/full-stack-skills

ocrmypdf-optimize

OCRmyPDF optimization skill — compress PDFs, configure PDF/A output, JBIG2 encoding, and lossless optimization. Use when the user needs to reduce PDF file size, create archival PDF/A files, or optimize OCR output.

254 41
Explore
partme-ai/full-stack-skills

ocrmypdf-image

OCRmyPDF image processing skill — deskew, rotate, clean, despeckle, remove border from scanned documents. Use when the user needs to improve scanned PDF quality, fix skewed pages, remove noise, or clean up scanned documents before OCR.

254 41
Explore
partme-ai/full-stack-skills

ocrmypdf-api

OCRmyPDF Python API and plugin skill — use OCRmyPDF programmatically from Python, integrate with applications, and extend with plugins (EasyOCR, PaddleOCR, AppleOCR). Use when the user needs to call OCRmyPDF from Python code, build OCR pipelines, or use alternative OCR engines.

254 41
Explore
partme-ai/full-stack-skills

ocrmypdf

OCRmyPDF core skill — add searchable OCR text layer to scanned PDFs, convert images to searchable PDFs, support 100+ languages via Tesseract. Use when the user needs to OCR a PDF, make a scanned PDF searchable, or extract text from scanned documents.

254 41
Explore
partme-ai/full-stack-skills

svelte

Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.

254 41
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results