Kubernetes YAML Generator
Free online Kubernetes YAML generator, no installation required. Generate Deployment, Service, and Ingress configs
About K8s YAML Generator
Builds a Kubernetes manifest combining a Deployment with optional Service and Ingress resources. You configure deployment name/namespace/replica count/labels and one or more containers (image, ports, env), then choose whether to attach a Service (ClusterIP/NodePort/LoadBalancer) and an NGINX Ingress. Output is joined with `---` separators.
How to Use
1. On the Deployment tab set Name, Namespace, Replicas, and Labels (one key: value per line). 2. Add Containers, filling name, image, comma-separated Ports, and optional env NAME/value pairs per container. 3. On the Service tab tick Enable Service and pick Type plus port/targetPort/protocol rows, and optionally Enable Ingress with a host name. 4. Switch to the Output tab to read the live YAML and click Copy.
Manifest Resource Layout
The Deployment is always emitted (apiVersion apps/v1) with selector.matchLabels, template.metadata.labels, and per-container ports (containerPort), env (name/value), and resources (requests/limits for cpu/memory). The Service (apiVersion v1) reuses the deployment labels as selector and lists port/targetPort/protocol triples. The Ingress uses networking.k8s.io/v1 with ingressClassName: nginx, a rewrite-target annotation, and a single `/` Prefix path backed by the first service port.
▶How are labels edited?
▶Where do container ports go?
▶What does the Ingress backend point at?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee