Document

SUBSCRIBE TO GET FULL ACCESS TO THE E-BOOKS FOR FREE 🎁SUBSCRIBE NOW

Professional Dropdown with Icon

SUBSCRIBE NOW TO GET FREE ACCESS TO EBOOKS

Kuberentes Kompose

Translate a Docker Compose File to Kubernetes Resources

 
What’s Kompose? It’s a conversion tool for all things compose (namely Docker Compose) to container orchestrators (Kubernetes or OpenShift).
 
1. curl -L https://github.com/kubernetes/kompose/releases/download/v1.21.0/kompose-linux-amd64 -o kompose
 
2.   mv kompose /usr/local/bin/
 
3.  chmod 777 /usr/local/bin/kompose
 
4. Create a docker-compose.yaml file
 
version: ‘3.3’
 
services:
   db:
      image: nginx
 
5.   kompose convert
 
6.   A deployment file should be created.
Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *