DevOps
Kubernetes Deployment Manifest (JSON) JSON Example
A Kubernetes Deployment manifest as a JSON example — includes replicas, selector, pod template, container image, ports, resources, and probes. Copy-ready for kubectl and GitOps.
Field Reference
apiVersionrequiredstringAPI group/version — apps/v1 for DeploymentskindrequiredstringResource type — 'Deployment'spec.replicasoptionalintegerDesired number of pod replicas (defaults to 1)spec.selector.matchLabelsrequiredobjectMust match the pod template labels — links the Deployment to its podsspec.template.spec.containersrequiredarray<object>Container specs: image, ports, env, resources, probesresources.limitsoptionalobjectHard CPU/memory caps; the pod is throttled or OOM-killed beyond themVariants
ServiceA Service that exposes the Deployment's pods inside the cluster.
Common Use Cases
- →Declaring a containerised app's desired state for kubectl apply
- →Storing infrastructure as code in Git for GitOps workflows
- →Generating manifests programmatically from JSON templates
kubernetesk8sdeploymentmanifestdevopscontainers
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
DevOpsDocker Compose (JSON)Docker Compose multi-service config in JSON with ports, env, volumes, and depends_on.DevOpsGitHub Actions Workflow (JSON)GitHub Actions workflow in JSON with triggers, a job, steps, and a matrix.DataApp Config FileBackend config with database connection, auth settings, feature flags, and logging.