Kubernetes Manifest Generator

Build Deployment, Service, ConfigMap and Secret YAML visually

Application

Service

Resources

Environment variables

ConfigMap & Secret

Generated manifests

YAML
apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-app
  namespace: default
  labels:
    app: my-app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: my-app
  template:
    metadata:
      labels:
        app: my-app
    spec:
      containers:
        - name: app
          image: nginx:1.27
          ports:
            - containerPort: 8080
          env:
            - name: LOG_LEVEL
              value: info
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 500m
              memory: 512Mi

---
apiVersion: v1
kind: Service
metadata:
  name: my-app
  namespace: default
  labels:
    app: my-app
spec:
  type: ClusterIP
  selector:
    app: my-app
  ports:
    - port: 80
      targetPort: 8080
      protocol: TCP
      name: http

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-app-config
  namespace: default
  labels:
    app: my-app
data:
  app.properties: |-
    mode=production
    retry=3

Examples

A 3-replica web deployment

Input
my-app · 3 replicas · nginx:1.27 · port 8080 · ClusterIP service
Output
A multi-document YAML: Deployment (with labels, selector, resources) + Service + ConfigMap.

The form starts populated with a sensible default — adjust the fields and the YAML updates live.

Expose externally

Input
Switch the service type to LoadBalancer, service port 443
Output
Service spec.type: LoadBalancer with the chosen port.

Change the service type to expose the workload outside the cluster without editing YAML by hand.

About this tool

Writing Kubernetes YAML by hand is repetitive and easy to get wrong — indentation, label consistency, and the cross-references between a Deployment and its Service catch people out. This generator produces correct, ready-to-apply manifests from a form.

Configure the application (name, namespace, replicas, image, port), the Service (type, port, target port), resource requests and limits, environment variables, and optional ConfigMap and Secret. The generator emits a Deployment, a Service, and the selected ConfigMap/Secret as a multi-document YAML you can copy or download and apply with kubectl.

How to use

  1. Fill in the application

    Set the app name, namespace, replicas, image and container port.

  2. Configure the service

    Pick the service type and the service/target ports.

  3. Add resources and env

    Set CPU/memory requests and limits, and any environment variables.

  4. Copy and apply

    Copy the generated YAML and run kubectl apply -f to deploy it.

Common mistakes

Mistake:Forgetting resource requests/limits.

Fix:Without them a Pod can be evicted or starve neighbors. The generator includes sane defaults you can edit.

Mistake:Mismatched Service selector.

Fix:The generator keeps the Service selector and Pod labels in sync so traffic always reaches the workload.

Frequently asked questions

References & standards