PAGE1
DEVOPS INDONESIA
DEVOPS INDONESIA
Jakarta, 28 Agustus 2018
DevOps Community in Indonesia
Ansible + Docker: Container orchestration alternative
PAGE2
DEVOPS INDONESIA
Enjoy, we provide
rice... snack
2
PAGE3
DEVOPS INDONESIA
Let’s get know each other
PAGE4
DEVOPS INDONESIA
Head of Infrastructure & System Engineer
at
Kurnia D Win
PAGE5
DEVOPS INDONESIA
Okay, What is devops (again) ?
PAGE6
DEVOPS INDONESIA
PAGE7
DEVOPS INDONESIA
Why + What
7
Let me tell you a (fiction) story ...
PAGE8
DEVOPS INDONESIA
So, Microservices ?
Scaling horizontally is the key
PAGE9
DEVOPS INDONESIA
The solution (dev side)
- Use Linux (please, we are developing application for linux server).
- https://12factor.net
- The application must be able to be deployed in a distributed fashion.
- stateless app => easy
- stateful app => ???
- OCI Image (a.k.a. docker image) as unit for deploying
- ...
PAGE10
DEVOPS INDONESIA
The solution (ops side)
- Single service per VM
- OCI Image (a.k.a. docker image) as unit for deploying
- ...
Why?
- In AWS, cost for 2 x t2.nano is the same as 1 x t2.micro.
- https://martinfowler.com/bliki/PhoenixServer.html
- Principles of chaos engineering (http://principlesofchaos.org/)
- chaos monkey (https://github.com/Netflix/chaosmonkey)
- shared kernel configuration (sysctl) can be problematic
- CPU steal
http://blog.scoutapp.com/articles/2013/07/25/understanding-cpu-steal-time-
when-should-you-be-worried
- ...
PAGE11
DEVOPS INDONESIA
How
11
Here come the tools ...
PAGE12
DEVOPS INDONESIA
Docker
Container Linux (a.k.a. CoreOS)
PAGE13
DEVOPS INDONESIA
Ansible
PAGE14
DEVOPS INDONESIA
It’s demo time
14
PAGE15
DEVOPS INDONESIA
Bonus
“Monitoring, autoscale by triggering jenkins job (can be ansible) to create EC2
on AWS”
PAGE16
DEVOPS INDONESIA
Stay Connected
@devopsindonesia
http://www.devopsindonesia.com
Kurnia D Win
https://www.linkedin.com/in/kurniadwin/
https://github.com/win-t
mailto:win@payfazz.com
PAGE17
DEVOPS INDONESIA
Alone We are smart, together We are brilliant
THANK YOU !
Quote by Steve Anderson
Psssttt !!, PAYFAZZ is hiring … (mailto:win@payfazz.com)

Ansible + docker