DevOps

Docker Compose to Kubernetes Converter

Paste a docker-compose.yml file and get equivalent Kubernetes Deployment and Service YAML manifests, generated entirely in your browser.

docker-compose.yml
Kubernetes manifests
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
  labels:
    app: web
spec:
  replicas: 1
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
        - name: web
          image: nginx:1.25
          env:
            - name: NODE_ENV
              value: "production"
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis
  labels:
    app: redis
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
        - name: redis
          image: redis:7

Covers the common subset — image, ports, environment. Volumes, depends_on, build, networks, and healthchecks need manual review. Uses a lightweight built-in YAML parser and runs entirely client-side.

Frequently Asked Questions

Related

You might also need