Kubernetes Deployment Generator
Generate a Deployment + Service manifest.
Deployment options
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
labels:
app: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: nginx:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: my-app
labels:
app: my-app
spec:
type: ClusterIP
selector:
app: my-app
ports:
- protocol: TCP
port: 80
targetPort: 80
About this tool
Fill in the app name, image, replicas, and port to produce a Deployment and matching Service manifest ready for kubectl apply.
How to use
- Enter the app name, container image, and replica count.
- Set the container port and optional resource limits.
- Copy the generated Deployment and Service YAML.
Examples
Kind
apiVersion: apps/v1 kind: Deployment
Frequently asked questions
Yes, a ClusterIP Service targeting the Deployment's pods is generated alongside it.