Real World CI/CD with
Kubernetes
Jirayut Nimsaeng (Dear)
CEO/Founder Opsta
DevOps BKK 2018 @ Bitec Bangna
September 8, 2018
DevOps BKK 2018
Agenda
- Concept about DevOps, Kubernetes and CI/CD
- Real World Problem Scenario
- Demo
- How to start with DevOps?
- Q&A
DevOps BKK 2018
#whoweare
We are Technology Expert
Consultant Team
DevOps BKK 2018
What is DevOps
DevOps BKK 2018
Business
Dev Ops
DevOps BKK 2018
Ideal Development Cycle
Dev Ops
Code
Feedback
DevOps BKK 2018
Reality
Dev Ops
Code
Feedback
DevOps BKK 2018
THE WALL
Dev Ops
DevOps BKK 2018
What is DevOps
Dev Ops
Remove
Shorten
Faster
DevOps BKK 2018
DevOps Technology
Version
Control
CI/CD Infrastructure
as a Service
Infra Support
DevOps BKK 2018
DevOps Flow
Infrastructure
VCS CI CD
Dev
UAT
Prod
Monitoring
Load
Testing
Artifacts
Developer
DevOps BKK 2018
Kubernetes
Infrastructure
VCS CI CD
Monitoring
Load
Testing
Artifacts
Developer
DevOps BKK 2018
What is Container
DevOps BKK 2018
What is Container
Faster
lightweight
DevOps BKK 2018
One server
Server
Container
DevOps BKK 2018
Multiple Servers
Server 1 Server 2 Server 3
Container
???
DevOps BKK 2018
What is Kubernetes
= Standalone
= Clusters
DevOps BKK 2018
Kubernetes Clustering Features
● Automatic bin packing / Scheduling
● Self-healing
● Horizontal manual/auto-scaling
● Service discovery & load balancing
● Automated rollouts and rollbacks
● Secret and configuration management
● Storage orchestration
● Batch execution
DevOps BKK 2018
CI/CD
Infrastructure
VCS CI CD
Dev
UAT
Prod
Monitoring
Load
Testing
Artifacts
Developer
DevOps BKK 2018
CI/CD Flow
CI CD
DevOps BKK 2018
Demo Time
Infrastructure
VCS CI CD
Dev
UAT
Prod
Monitoring
Load
Testing
Artifacts
Developer
Real World
Problem
DevOps BKK 2018
DevOps BKK 2018
Docker, build once run anywhere
Docker Image
Dockerfile
Build Server
Docker
Registry
Dev UAT Prod
DockerContainer
DockerContainer
DockerContainer
Solution
DevOps BKK 2018
Microservices
Microservice
DB
Microservice Microservice
UI
Microservice
DB DB
DevOps BKK 2018
Feature I
I need ...
Microservice
DB
Microservice
UI
DB
UAT
Microservice
DB
Microservice Microservice
UI
Microservice
DB DB
Production
Microservice
DB
Microservice Microservice
UI
Microservice
DB DB
Feature II
Microservice
DB
Microservice
UI
DB
Development
Microservice
DB
Microservice Microservice
UI
Microservice
DB DB
DevOps BKK 2018
Kubernetes Cluster
Helm + Kubernetes
Charts
+ Env
Helm
Client
Feature I
Microservice
DB
Microservice
UI
DB
Feature II
Microservice
DB
Microservice
UI
DB
UAT
Microservice
DB
Microservice
UI
DB
Production
Microservice
DB
Microservice
UI
DB
Solution
This is a BUG
Acceptance Test
Unit Test Integration Test
Performance Test
DevOps BKK 2018
Review Code Solution
DevOps BKK 2018
Automated Test with CI/CD Solution
DevSecOps
DevOps BKK 2018
Code Analysis Solution
DevOps BKK 2018
Automated Security Check Solution
Demo
How to start with
It’s about the
IMPROVEMENT
DevOps BKK 2018
IT’S A LOT!!!
Version
Control
CI/CD Infrastructure
as a Service
Infra Support
It’s about the
IMPROVEMENT
CONTINUOUS
Are you
today?
Improve
DevOps BKK 2018
● Jirayut Nimsaeng (Dear)
● First Certified Kubernetes
Administrator in Thailand
● Interested in Cloud and
Open Source with
DevOps Driven Development
● CEO and Founder Opsta
● contact@opsta.co.th
● 0611234089
#whoami

Real World CI/CD with Kubernetes