Kubernetes YAML generator
Fill in a form and get YAML you can apply: a Deployment, StatefulSet or DaemonSet, with checks under every field. Nothing you type leaves your browser.
How to use it
- Pick the workload: a Deployment for most apps, a StatefulSet when each pod keeps its own data, a DaemonSet for one pod on every node.
- Fill in the App and Containers cards. The common fields show first; All fields shows every one.
- Fix what is marked: each message says what Kubernetes expects.
- Copy or download the YAML, check it against your cluster with
kubectl apply --dry-run=server -f my-app.yaml, then apply it.
FAQ
Will my cluster accept this YAML?
It is written for Kubernetes 1.29 and later, with stable APIs only, and every field is checked against the rules the API server applies: names, labels, ports, quantities, and references between fields. What the page cannot know is your cluster: whether a storage class, a priority class or an image exists there.
Before you apply it, let the cluster check it too: kubectl apply --dry-run=server -f my-app.yaml.
Does anything I type leave my browser?
No. The YAML is written in the page, and your draft is kept in this browser's storage so it is here when you come back. No request carries what you type, and Start over replaces the draft.
Why does the selector hold one label only?
A Deployment's, StatefulSet's or DaemonSet's selector cannot change after the first apply. It holds app.kubernetes.io/name alone, so you can add, rename and remove every other label later without deleting the workload.
Why are some values in quotes?
kubectl reads YAML 1.1, where yes, on and no are booleans and 1.10 is the number 1.1. A label, an annotation or an environment variable is always a string, so any value a reader could take for something else is quoted.
Why is the file mode a decimal number?
You type it in octal, as 0644. YAML 1.1 reads 0644 as octal and YAML 1.2 as decimal, so the generator writes the number both agree on: 420.
Where are Services, Ingresses and ConfigMaps?
On their way. For now the generator writes the workload: the Deployment, StatefulSet or DaemonSet and everything in its pods.
Learn Kubernetes on Opsfolk
CKA practice: Advanced Kubernetes administration
Practice quiz40 questions
CKA practice: Kubernetes administration basics
Practice quiz40 questions
KCNA practice: Kubernetes and cloud native basics
Practice quiz40 questions
Certified Kubernetes Administrator (CKA)
CertificationCNCF / The Linux Foundation
Certified Kubernetes Application Developer (CKAD)
CertificationCNCF / The Linux Foundation
Certified Kubernetes Security Specialist (CKS)
CertificationCNCF / The Linux Foundation
Kubernetes and Cloud Native Associate (KCNA)
CertificationCNCF / The Linux Foundation


