Kubernetes YAML Generator
Generate valid Kubernetes manifests from form input — Deployment, Service, ConfigMap, Ingress, StatefulSet, CronJob. No external dependencies, instant YAML output.
Select resource type
Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: default
labels:
app: my-app
spec:
replicas: 2
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: nginx:latest
ports:
- containerPort: 80
protocol: TCP
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
env:
- name: APP_ENV
value: "production"
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
initialDelaySeconds: 5
periodSeconds: 5Notes for Deployment
- Names must match RFC 1123: lowercase alphanumeric and hyphens only.
- CPU requests/limits use millicores (e.g.
100m= 0.1 CPU). - Memory uses binary suffixes:
Mi,Gi. - Enable probes only when your container exposes the configured paths.