
Web Scripts & Software
DEV3 Kubernetes YAML Generator — Source Code (React + Tailwind)
from $29
Live demoDeveloper tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Lowercase letters, digits and hyphens.
Leave empty to use the current context.
Pin a version tag, not latest.
Quotes allowed, for example node server.js --port 8080.
nginx, traefik, alb ...
One KEY=value per line. Lines starting with # are ignored.
Placed as stringData. Do not commit real secrets.
One key=value per line.
apiVersion: v1
kind: ServiceAccount
metadata:
name: web
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
automountServiceAccountToken: false
---
apiVersion: v1
kind: ConfigMap
metadata:
name: web-config
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
data:
NODE_ENV: production
LOG_LEVEL: info
---
apiVersion: v1
kind: Secret
metadata:
name: web-secrets
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
type: Opaque
stringData:
DATABASE_URL: postgres://user:pass@db:5432/app
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: production
labels: &a1
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
spec:
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: web
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 0
template:
metadata:
labels: *a1
spec:
serviceAccountName: web
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: web
image: ghcr.io/acme/web:1.4.2
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: web-config
- secretRef:
name: web-secrets
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
startupProbe:
httpGet: &a2
path: /healthz
port: http
failureThreshold: 30
periodSeconds: 5
readinessProbe:
httpGet: *a2
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 3
livenessProbe:
httpGet: *a2
periodSeconds: 20
timeoutSeconds: 2
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10001
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: web
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- hosts:
- app.example.com
secretName: web-tls
rules:
- host: app.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 80
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: web
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: web
minReplicas: 3
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
behavior:
scaleDown:
stabilizationWindowSeconds: 300
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: web
namespace: production
labels:
app.kubernetes.io/name: web
app.kubernetes.io/instance: web
app.kubernetes.io/managed-by: kubectl
spec:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/name: web
Apply with kubectl apply -f web.yaml, or check first with kubectl apply --dry-run=server -f.
Need Kubernetes YAML Generator built into your own product? We build it as a full app, API and admin included. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The kubernetes yaml generator stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Skip the build: ready-made apps with the code included. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $29
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demoWriting Kubernetes YAML by hand means repeating the same labels, selectors and ports in five places, and one typo leaves a Service pointing at nothing. This generator keeps them consistent for you and applies the settings that most production clusters expect.
1.4.2 instead of latest, so a rollback always returns to the same build.KEY=value per line.envFrom.volumeClaimTemplates for storage.Run kubectl apply --dry-run=server -f app.yaml first, then kubectl apply -f app.yaml. Roll back with kubectl rollout undo deployment/<name>.
No. The YAML is generated by JavaScript in your browser. Image names, hosts and variables never leave your device, and the form is only remembered in this browser's local storage.
The manifests use stable APIs: apps/v1, batch/v1, networking.k8s.io/v1, autoscaling/v2 and policy/v1. They work on current Kubernetes releases from 1.25 upward. Check your cluster with kubectl version before applying.
No. Secret values are written as plain text in stringData so the manifest works as a starting point. Never commit real credentials. In production use Sealed Secrets, External Secrets Operator or your CI system's secret store.
When a HorizontalPodAutoscaler manages a Deployment, the replicas field should be left out. Otherwise every kubectl apply resets the replica count and fights the autoscaler.
It runs the container as a non-root user, blocks privilege escalation, drops all Linux capabilities, makes the root filesystem read-only with a writable /tmp, and uses the runtime default seccomp profile. If your image writes elsewhere or needs root, turn it off or mount extra volumes.
Run kubectl apply --dry-run=server -f file.yaml to validate against your cluster without changing anything. Tools such as kubeconform and kube-linter add schema and policy checks in CI.