docker-compose.yml
kubernetes-manifests.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: default
labels:
app: web
spec:
replicas: 1
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: nginx:alpine
ports:
- containerPort: 80
name: http-0
env:
- name: NODE_ENV
value: "production"
- name: API_URL
value: "https://api.example.com"
---
apiVersion: v1
kind: Service
metadata:
name: web-svc
namespace: default
labels:
app: web
spec:
type: ClusterIP
selector:
app: web
ports:
- name: http-0
port: 80
targetPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: database
namespace: default
labels:
app: database
spec:
replicas: 1
selector:
matchLabels:
app: database
template:
metadata:
labels:
app: database
spec:
containers:
- name: database
image: postgres:16-alpine
ports:
- containerPort: 5432
name: http-0
env:
- name: POSTGRES_DB
value: "analytics"
- name: POSTGRES_PASSWORD
value: "my_super_secret_password"
---
apiVersion: v1
kind: Service
metadata:
name: database-svc
namespace: default
labels:
app: database
spec:
type: ClusterIP
selector:
app: database
ports:
- name: http-0
port: 5432
targetPort: 5432Pin this tool to your browser side panel
Access this utility anytime with Alt+M without switching tabs. 100% offline & free.
How to convert Docker Compose to Kubernetes YAML
- 1Paste your docker-compose.yml into the left editor.
- 2Customize target namespace, default replicas, and service type.
- 3Review the generated multi-document Kubernetes YAML on the right.
- 4Copy or download the manifest to deploy with kubectl apply -f.
Zero-Upload Migration
Translates Compose environment variables, ports, and images without sending sensitive secrets to external servers.
Frequently Asked Questions
Enjoying Docker Compose to Kubernetes YAML?Help your engineering peers discover private, ad-free tools!
MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.
Related Developer Utilities
Popular
Docker Run to Compose Converter
Convert complex docker run CLI commands into clean, production-ready docker-compose.yml files
Launch toolβ
Popular
Nginx Config Generator
Visual builder for production-ready Nginx reverse proxy, SSL, and SPA configs
Launch toolβ
Popular
Dockerfile Multi-Stage Generator
Visual builder for security-hardened, multi-stage Dockerfiles across modern stacks
Launch toolβ
Popular
Kubernetes YAML Manifest Builder
Visual generator for Deployment, Service, Ingress, and ConfigMap manifests
Launch toolβ