skills/kubernetes-deployment-manifests/SKILL.md
To define how applications should run, scale, and update within a Kubernetes cluster using declarative YAML manifests. Use when: Deploying containerized applications to K8s; Defining resource limits, replicas, and environment variables.
npx skillsauth add jyjeanne/ai-setup-forge kubernetes-deployment-manifestsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
To define how applications should run, scale, and update within a Kubernetes cluster using declarative YAML manifests.
Create a deployment.yaml to manage your application's lifecycle.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app-deployment
labels:
app: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: my-registry/my-app:1.2.3
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: my-app-config
- secretRef:
name: my-app-secrets
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /ready
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
Create a service.yaml to expose the application within the cluster.
apiVersion: v1
kind: Service
metadata:
name: my-app-service
spec:
selector:
app: my-app
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: ClusterIP # Internal exposure only
Decouple configuration from the deployment.
# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: my-app-config
data:
NODE_ENV: "production"
LOG_LEVEL: "info"
---
# secret.yaml (values must be base64 encoded)
apiVersion: v1
kind: Secret
metadata:
name: my-app-secrets
type: Opaque
data:
DATABASE_URL: bXktZGItaG9zdC1jb25uZWN0aW9uLXN0cmluZw==
Use kubectl to apply the manifests and check status.
# Apply all files in the directory
kubectl apply -f ./k8s/
# Check rollout status
kubectl rollout status deployment/my-app-deployment
# Get logs from a specific pod
kubectl logs -l app=my-app --tail=100
# Scale the deployment
kubectl scale deployment/my-app-deployment --replicas=5
latest tag; use specific versions or image SHAs to ensure reproducibility.liveness (restart if hung) and readiness (don't send traffic until ready) probes.secret.yaml files to Git. Use tools like Sealed Secrets, External Secrets, or HashiCorp Vault.Valid YAML files (deployment.yaml, service.yaml) that successfully launch the application in a cluster.
development
Generate breadboard circuit mockups and visual diagrams using HTML5 Canvas drawing techniques. Use when asked to create circuit layouts, visualize electronic component placements, draw breadboard diagrams, mockup 6502 builds, generate retro computer schematics, or design vintage electronics projects. Supports 555 timers, W65C02S microprocessors, 28C256 EEPROMs, W65C22 VIA chips, 7400-series logic gates, LEDs, resistors, capacitors, switches, buttons, crystals, and wires.
development
Apply lean thinking to UX: hypothesis-driven design, collaborative sketching, and rapid experiments instead of heavy deliverables. Use when the user mentions "Lean UX", "design hypothesis", "UX experiment", "collaborative design", or "outcome over output". Covers hypothesis statements, MVPs for UX, and cross-functional collaboration. For Build-Measure-Learn, see lean-startup. For usability audits, see ux-heuristics.
development
Design MVPs, validated learning experiments, and pivot-or-persevere decisions using Build-Measure-Learn. Use when the user mentions "MVP scope", "validated learning", "pivot or persevere", "vanity metrics", or "test assumptions". Covers innovation accounting and actionable metrics. For 5-day prototype testing, see design-sprint. For customer motivation analysis, see jobs-to-be-done.
tools
Instrument, trace, evaluate, and monitor LLM applications and AI agents with LangSmith. Use when setting up observability for LLM pipelines, running offline or online evaluations, managing prompts in the Prompt Hub, creating datasets for regression testing, or deploying agent servers. Triggers on: langsmith, langchain tracing, llm tracing, llm observability, llm evaluation, trace llm calls, @traceable, wrap_openai, langsmith evaluate, langsmith dataset, langsmith feedback, langsmith prompt hub, langsmith project, llm monitoring, llm debugging, llm quality, openevals, langsmith cli, langsmith experiment, annotate llm, llm judge.