Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
IT Security NachrichtenNew infosec products of the week: October 2, 2026(02.10.2026 um 06:00 Uhr)
•
IT Security NachrichtenERP-Migration: Kostenfalle Schnittstellen(02.10.2026 um 05:34 Uhr)
•
Android Tipps & SecurityAmazon reduziert eure Prime-Gebühr jetzt auf den alten Preis(02.10.2026 um 06:00 Uhr)
•••
Sicherheitslücken (CVE)CVE-2026-21140 | Samsung Devices access control (EUVD-2026-91157)(02.10.2026 um 05:08 Uhr)
••••
Sichere ProgrammierungWhat Can NSL Actually Do? — A Look at Nova Signal Language(02.10.2026 um 05:14 Uhr)
•
IT Security NachrichtenNew infosec products of the week: October 2, 2026(02.10.2026 um 06:00 Uhr)
•
IT Security NachrichtenERP-Migration: Kostenfalle Schnittstellen(02.10.2026 um 05:34 Uhr)
•
Android Tipps & SecurityAmazon reduziert eure Prime-Gebühr jetzt auf den alten Preis(02.10.2026 um 06:00 Uhr)
•••
Sicherheitslücken (CVE)CVE-2026-21140 | Samsung Devices access control (EUVD-2026-91157)(02.10.2026 um 05:08 Uhr)
••••
Sichere ProgrammierungWhat Can NSL Actually Do? — A Look at Nova Signal Language(02.10.2026 um 05:14 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

How to Convert a docker-compose file to K8S manifest

How to Convert a Docker Compose File to Kubernetes Manifests Using Kompose Many of us use Docker for local development, but when it’s time to run containers on …

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!




How to Convert a Docker Compose File to Kubernetes Manifests Using Kompose



Many of us use Docker for local development, but when it’s time to run containers on Kubernetes, converting your setup can seem daunting. Kompose makes this transition easy by converting your docker-compose.yml into Kubernetes manifests.



Below are the latest steps to get your services running on Kubernetes:









1. Install Kompose (Latest Version)



On Mac (using Homebrew):




brew install kompose






Or download the latest release manually:




curl -L https://github.com/kubernetes/kompose/releases/latest/download/kompose-darwin-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose












2. Prepare Your Docker Compose File





  • Build and push your Docker images to a remote registry.


  • Update your docker-compose.yml so that each service uses the image URL from your registry (not a local build context).



Example docker-compose.yml:




version: "3"
services:
mythical-requester:
image: <REMOTE-IMAGE>
ports:
- "4001:4001"
environment:
- NAMESPACE=production
- LOGS_TARGET=http://loki:3100/loki/api/v1/push
- TRACING_COLLECTOR_HOST=agent
- TRACING_COLLECTOR_PORT=4317
- OTEL_EXPORTER_OTLP_TRACES_INSECURE=true
- OTEL_RESOURCE_ATTRIBUTES=ip=1.2.3.4

mythical-server:
image: <REMOTE-IMAGE>
ports:
- "4000:4000"
- "80:80"
depends_on:
- mythical-database
environment:
- NAMESPACE=production
- LOGS_TARGET=http://loki:3100/loki/api/v1/push
- TRACING_COLLECTOR_HOST=agent
- TRACING_COLLECTOR_PORT=4317
- OTEL_EXPORTER_OTLP_TRACES_INSECURE=true
- OTEL_RESOURCE_ATTRIBUTES=ip=1.2.3.5

mythical-recorder:
image: <REMOTE-IMAGE>
ports:
- "4002:4002"
environment:
- NAMESPACE=production
- LOGS_TARGET=http://loki:3100/loki/api/v1/push
- TRACING_COLLECTOR_HOST=agent
- TRACING_COLLECTOR_PORT=4317
- OTEL_EXPORTER_OTLP_TRACES_INSECURE=true
- OTEL_RESOURCE_ATTRIBUTES=ip=1.2.3.5












3. Convert Docker Compose to Kubernetes Manifests



Run the following command in the directory containing your docker-compose.yml:




kompose convert






Kompose will generate Kubernetes YAML files for each service, typically creating both a deployment and a service manifest per service.









4. Deploy to Kubernetes





  1. Move all generated YAML files to a folder (e.g., deployment/):


    mkdir deployment
    mv *.yaml deployment/



  2. Connect to your Kubernetes cluster (ensure kubectl is configured).



  3. Apply all manifests:


    kubectl apply -f deployment/




  4. Check your pods:


    kubectl get pods








Congratulations!


Your Docker Compose services are now running on your Kubernetes cluster.






References:



🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

Bedrohungsgraph · ATT&CK-Mapping · Exploit-Belege
IoC Intelligence
2 Indikatoren · Defanged · STIX 2.1
1[.]2[.]3[.]41[.]2[.]3[.]5
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
3 Knoten · 2 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Convert a docker-compose file to K8S manifest

Thematisch verwandte Begriffe: Convert, dockercompose, file, manifest · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag