MicroServices on
Kubernetes - The Simple
Way
docker-compose to k8s in one line
Suraj Deshmukh
Red Hat
UX & Simplicity
version: "2"
services:
redis-master:
image: gcr.io/google_containers/redis:e2e
redis-slave:
image: gcr.io/google_samples/gb-redisslave:v1
environment:
- GET_HOSTS_FROM=dns
frontend:
image: gcr.io/google-samples/gb-frontend:v4
ports:
- "80:80"
environment:
- GET_HOSTS_FROM=dns
Enter kompose!
$ kompose up
What is Kompose?
● Kompose deploys microservices to Kubernetes or OpenShift
● Kompose converts docker-compose.yml file to Kubernetes and OpenShift
artifacts. (you can modify artifacts and then deploy)
Demo on Kubernetes
$ kompose up
Demo on OpenShift
$ kompose --provider openshift up
Plain conversion
$ kompose convert
How to contribute
● Github project link: https://github.com/kubernetes-incubator/kompose/
● Try it out with your docker-compose files, report issues, ask for enhancement,
etc.
● All contributions are highly welcome.
Reach out
● Talk to us on #kompose channel on http://slack.kubernetes.io/
● We do bi-weekly community meeting on Wednesday 22.30 IST at
https://bluejeans.com/404059616 Upcoming meeting is on 23rd Nov.
What next?
● Container Orchestration Specification - OpenCompose
● Common to most container orchestration systems like Kubernetes, OpenShift,
Mesos-Marathon
● Github repo for spec: https://github.com/redhat-developer/opencompose
● Intro to spec:
http://developers.redhat.com/blog/2016/11/03/container-orchestration-spec
ification-for-better-devops/
Links:
● Demo repo:
https://github.com/surajssd/talks/tree/master/DevopsDaysIndia2016
● Slides: http://bit.ly/komposeDD
About me:
● Works at Red Hat in Developer tooling team and one of the contributors to
Kompose project.
● Twitter: surajd_
● Slack, IRC: surajd
● Email: surajd@redhat.com
Thank You

Microservices on Kubernetes - The simple way