Docker Compose to Kubernetes YAML

100% Client-Side Private

Convert docker-compose.yml services into Kubernetes Deployments & Services

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: 5432

Pin this tool to your browser side panel

Access this utility anytime with Alt+M without switching tabs. 100% offline & free.

Get Extension

How to convert Docker Compose to Kubernetes YAML

  1. 1Paste your docker-compose.yml into the left editor.
  2. 2Customize target namespace, default replicas, and service type.
  3. 3Review the generated multi-document Kubernetes YAML on the right.
  4. 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