Home Explore Blog CI



kubernetes

1st chunk of `content/en/blog/_posts/2017-08-00-Kompose-Helps-Developers-Move-Docker.md`
074f34081bb72d3b720f63d2d8a4c52e8019bd7f624bb25f0000000100000c42
---
title: " Kompose Helps Developers Move Docker Compose Files to Kubernetes "
date: 2017-08-10
slug: kompose-helps-developers-move-docker
url: /blog/2017/08/Kompose-Helps-Developers-Move-Docker
author: >
  Charlie Drage (Red Hat)
---

I'm pleased to announce that [Kompose](https://github.com/kubernetes/kompose), a conversion tool for developers to transition Docker Compose applications to Kubernetes, has graduated from the [Kubernetes Incubator](https://github.com/kubernetes/community/blob/master/incubator.md) to become an official part of the project.   

Since our first commit on June 27, 2016, Kompose has achieved 13 releases over 851 commits, gaining 21 contributors since the inception of the project. Our work started at Skippbox (now part of [Bitnami](https://bitnami.com/)) and grew through contributions from Google and Red Hat.  

The Kubernetes Incubator allowed contributors to get to know each other across companies, as well as collaborate effectively under guidance from Kubernetes contributors and maintainers. Our incubation led to the development and release of a new and useful tool for the Kubernetes ecosystem.  

We’ve created a reliable, scalable Kubernetes environment from an initial Docker Compose file. We worked hard to convert as many keys as possible to their Kubernetes equivalent. Running a single command gets you up and running on Kubernetes:  kompose up.  

We couldn’t have done it without feedback and contributions from the community!  

If you haven’t yet tried [Kompose on GitHub](https://github.com/kubernetes/kompose) check it out!



Kubernetes guestbook  

The go-to example for Kubernetes is the famous [guestbook](https://github.com/kubernetes/examples/blob/master/guestbook), which we use as a base for conversion.


Here is an example from the official [kompose.io](https://kompose.io/) site, starting with a simple Docker Compose [file](https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose.yaml)).  

First, we’ll retrieve the file:  


```
$ wget https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose.yaml
 ```

You can test it out by first deploying to Docker Compose:  



```
$ docker-compose up -d

Creating network "examples\_default" with the default driver

Creating examples\_redis-slave\_1

Creating examples\_frontend\_1

Creating examples\_redis-master\_1
 ```

And when you’re ready to deploy to Kubernetes:  



```
$ kompose up


We are going to create Kubernetes Deployments, Services and PersistentVolumeClaims for your Dockerized application.


If you need different kind of resources, use the kompose convert and kubectl create -f commands instead.


INFO Successfully created Service: redis          

INFO Successfully created Service: web            

INFO Successfully created Deployment: redis       

INFO Successfully created Deployment: web         


Your application has been deployed to Kubernetes. You can run kubectl get deployment,svc,pods,pvc for details
 ```

Check out [other examples](https://github.com/kubernetes/kompose/tree/master/examples) of what Kompose can do.  

Title: Kompose Graduates from Kubernetes Incubator, Helping Developers Move Docker Compose Files to Kubernetes
Summary
Kompose, a tool for converting Docker Compose applications to Kubernetes, has graduated from the Kubernetes Incubator. It allows users to easily transition their applications to Kubernetes using the `kompose up` command. The post provides an example of converting a simple Docker Compose file to Kubernetes using Kompose.