Kubernetes YAML Generator
Generate a Kubernetes Deployment and Service manifest in your browser.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Generated a Deployment and Service for "web" with 53 line(s).
How it works
- Wrote the Deployment metadata, labels and replica count.
- Set the container image to "ghcr.io/example/web:1.4.0" and exposed port 3000.
- Emitted a Service whose selector matches the Deployment labels.
- The manifest is a starting point: review namespaces, probes, resources and policies for your cluster.
- No network request is made; the YAML is assembled in this page.
Methodology
- Validate the name, namespace, image, replica count, port and environment keys.
- Assemble the Deployment object with matching pod and selector labels, then the Service object with the same selector.
- Join both documents with `---` and prepend a review header.
Usage
- Enter a DNS-1123 workload name and image.
- Set the replica count, container port, resources and optional environment variables.
- Choose a Service type and copy the generated manifests.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Node web service
{
"name": "web",
"namespace": "default",
"image": "ghcr.io/example/web:1.4.0",
"replicas": 2,
"port": 3000,
"containerPortName": "http",
"env": "NODE_ENV=production\nPORT=3000",
"cpuRequest": "100m",
"cpuLimit": "500m",
"memoryRequest": "128Mi",
"memoryLimit": "512Mi",
"serviceType": "ClusterIP"
}Limitations
What the generated manifest includes
The Deployment carries the replica count, a pod template with the image and named container port, optional resource requests and limits, and optional environment entries. The Service selects the same `app` label.
Frequently asked questions
- Is the manifest applied to a cluster?
- No. The tool only assembles YAML in the page; run `kubectl apply --dry-run=client -f` yourself to check it.
- Where do secrets go?
- Never in this manifest. Reference a Secret with valueFrom and keep real values out of the generated file.
Sources
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.