kubernetes-manifest-author
Kubernetes Manifest Author
Overview
Produce correct, secure, and reliable Kubernetes YAML for deploying stateless and stateful workloads. This skill turns an application description into a complete manifest set: workload (Deployment/StatefulSet/CronJob), Service, optional Ingress, probes, resource governance, security context hardening, and configuration wiring.
Keywords: kubernetes, k8s, manifest, yaml, deployment, statefulset, service, ingress, liveness probe, readiness probe, startup probe, resources requests limits, securityContext, runAsNonRoot, podSecurityStandards, HPA, autoscaling, ConfigMap, Secret, PodDisruptionBudget, rollout, kubectl, helm, kustomize.
This skill is opinionated toward the restricted Pod Security Standard and production SRE defaults. Loosen only when the user has a concrete reason.
Workflow
-
Gather the workload shape. Determine: container image + tag (never
:latest), listening port(s), stateless vs stateful, replica count, environment/config inputs, secrets, and exposure (cluster-internal, Ingress, LoadBalancer). If the user omits something, apply the safe defaults inreferences/best-practices.mdand state the assumption. -
Pick the workload kind using the decision table below. Most web/API services are
Deployment. -
Author the workload manifest. Start from
templates/deployment.yaml. Always fill in: explicit labels, image with pinned tag, resource requests AND limits, all three probe types where appropriate, a hardenedsecurityContext, and aRollingUpdatestrategy. -
Add the Service. Use
templates/service.yaml. Matchselectorto the Pod template labels exactly. Default toClusterIP; useLoadBalancer/NodePortonly when externally requested.