SlideShare a Scribd company logo
Photo by Rae Tian on Unsplash Cheng Wei Chen @ twMVC#40
GitOps is IaC done right
先交流一下吧
Photo by Camylla Battani on Unsplash
正在導入 GitOps? 正在使⽤用 K8s?
你認為 K8s 是⼀一種 IaC 嗎?
Cheng Wei Chen 陳 正瑋

DevOps Taiwan Community 志工、GitLab Hero、譯者、作者
http://chengweichen.com
https://devopstw.club
加入 GitLab Hero !
https://about.gitlab.com/community/heroes/
天瓏購書網址

https://bit.ly/3okmvAa
ISBN: 9789864345311
GitOps is IaC done right
Agenda
‧認識 IaC 與 GitOps
‧開始實踐 GitOps
‧結語
STORY
Photo by Timothy Meinberg on Unsplash
Commit
Code OK!
Ops
Code
Photo by Jonathan Daniels on Unsplash
Dev
Commit
………
Ops
Code
Photo by Jonathan Daniels on Unsplash
Dev
Deploy
炸
炸炸
Commit
啊,抱歉,我忘了了說 Application
有⼀一個新的 Config ~
Ops
Code
Photo by Michelle Tresemer on Unsplash
Dev
Deploy
炸
炸炸
Commit
Ops
Code
Photo by Jonathan Daniels on Unsplash
Dev
Code OK !
Application Config OK !
Commit
Ops
Code
Photo by Jonathan Daniels on Unsplash
Dev
…………這次不是我的問題喔~
Deploy
炸
炸炸
AgainAgainAgain
Commit
Ops
Code
Photo by Thomas Bormans on Unsplash
Ops
啊,我昨天有⼿手動改了了⼀一個
Service 的 Config,該不會
是我的錯吧?
Dev
Deploy
炸
炸炸
AgainAgainAgain
Commit
Ops
Code
Photo by Jonathan Daniels and Thomas Bormans on Unsplash
Dev
Code OK !
Application Config OK !
Ops
Service Config OK!
Commit
Ops
Code
Dev
…...這次不是我們問題喔~
Ops
炸
炸
AgainAgainAgain
AgaiAgaAga
炸
炸炸炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸
炸炸
炸
炸炸
炸Deploy
Photo by Jonathan Daniels and Thomas Bormans on Unsplash
Commit
Ops
Code
Infra
炸
炸
AgainAgainAgain
AgaiAgaAga
炸
炸炸炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸炸
炸
炸
炸炸
炸
炸炸
炸Deploy
Dev
Photo by maskedemann on Unsplash
我包,Infra 有⼩小微調,
我是不是沒有通知你?
Dev
Ops
Infra
Photo by Jonathan Daniels, Thomas Bormans and maskedemann on Unsplash
炸
炸
炸
Photo by Fancycrave on Unsplash
認識 IaC 與 GitOps
Provision
Code
⼀一條龍
⼯工程師
Configuration
DeployArtifacts
Production
Environment
Code DeployCI / CD
Automation
Configuration
⼀一條龍
⼯工程團隊
Provision
Production
Environment
Code DeployCI / CD
⼀一條龍
⼯工程團隊
Configuration
Ops / Infra
團隊
Provision
Production
Environment
Automation
你需要
Infrastructure as Code
(IaC)
Automation
Server
Production
Environment
Network Storage
Measurable
Reduced risks
Consistency
Version control
Testing
Immutable
IaC
Practices
Benefits
Collaboration
Automation
Server
Production
Environment
Network Storage
Measurable
Reduced risks
Consistency
IaC
Practices
Benefits
Version control
Testing
Immutable
Collaboration
⼈人⽣生總是有個
But…
Server
Production
Environment
Network Storage
IaC
Server
Production
Environment
Network Storage
IaC
Cloud Service
Config files
Container
Pipeline
IaC
也許你可以試試
GitOps?
圖片來來源 https://youtu.be/Usb9iUphT6Y
圖片來來源

https://argoproj.github.io/argo-cd/
圖片來來源 https://gitlab.com/gitops-demo/readme
GitOps = IaC + MRs + CI/CD
GitLab 說的~
GitOps = IaC + MRs + CI/CD
Infrastructure as Code
Infrastructure Configuration Dependency
GitOps = IaC + MRs + CI/CD
Continuous Integration
Continuous Delivery
And Automation
GitOps = IaC + MRs + CI/CD
Merge Requests
GitOps = IaC + MRs + CI/CD
DevOps
新 Issue
Coding
Commit CI/CD Pipeline
建立 Feature branch
測試驗收
Feature branch
Master branch
Prod Pipeline
新 Issue
Merge
Merge
Monitor
Production branch
Feedback
Code Review
CI/CD Pipeline
Commit
檢查 .gitlab-ci.yml
GitLab
Server
產⽣生 CI/CD Pipeline
GitLab
Runner
執行 Job
CI Job
回傳 Logs
顯⽰示於 Pipeline
Terraform Ansible
Cloud
Vault Repository
Cloud
Cloud
App
Infra
GitLab
Runner
1. Application 有更更新嗎?
2. Infrastructure 有更更新嗎?
3.有!執⾏行行異異動!
Worker
Build Test Release
Validate Plan
Validate Plan Approve
圖片來來源 https://gitlab.com/gitops-demo/readme
Photo by Fancycrave on Unsplash
如何開始實踐 GitOps
1. IaC
2. Automation
3. Code Review & Approve
4. Multi environment
5. CI/CD
6. Use Repository
7. Agile & Iteration
DevOps
1. IaC
讓⼀一切都成為 Code
2. Automation
盡可能⾃自動化
如果不成,就紀錄它!
3. Code Review & Approve
審查、複閱、檢查、稽核
4. Multi environment
運⽤用在所有的環境!
5. CI/CD
⾃自動化的唯⼀一觸發點!
6. Use Repository
分⽀支策略略、Flow、Workflow
7. Agile & Iteration
⼩小粒度、多迭代
0. reborn ?
打掉重練
直接改換 K8s ⽣生態系
Photo by Timothy Meinberg on Unsplash
Photo by Fancycrave on Unsplash
結語
IaC, but !
GitOps = IaC + MRs + CI/CD
GitOps is IaC done right !
DevOps, then GitOps !
GitOps is not for everyone !
(with K8S)
GitOps is not for everyone !
(with K8S)
but, IaC.
工商服務
https://devopstw.club
加入 GitLab Hero !
https://about.gitlab.com/community/heroes/
天瓏購書網址

https://bit.ly/3okmvAa
ISBN: 9789864345311

More Related Content

What's hot (20)

PDF
Terraform: An Overview & Introduction
Lee Trout
 
PDF
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
smalltown
 
PDF
GitOps and ArgoCD
Omar Fathy
 
PDF
CTO Summit 2022
Dr. Jimmy Schwarzkopf
 
PDF
OpenShift-Technical-Overview.pdf
JuanSalinas593459
 
PDF
GitOps - Operation By Pull Request
Kasper Nissen
 
PDF
From DevOps to GitOps with GitLab
Chen Cheng-Wei
 
PPTX
Git and GitFlow branching model
Pavlo Hodysh
 
PDF
Kubernetes GitOps featuring GitHub, Kustomize and ArgoCD
Sunnyvale
 
PDF
Monitoring with Prometheus
Shiao-An Yuan
 
PPTX
コンテナネットワーキング(CNI)最前線
Motonori Shindo
 
PDF
Introduction to Tekton
Victor Iglesias
 
PDF
GitOps 101 Presentation.pdf
ssuser31375f
 
PPTX
Infrastructure-as-Code (IaC) using Terraform
Adin Ermie
 
PDF
Intro to GitOps & Flux.pdf
Weaveworks
 
PDF
JenkinsとCodeBuildとCloud Buildと私
Shoji Shirotori
 
PPTX
Apache Spark on Kubernetes入門(Open Source Conference 2021 Online Hiroshima 発表資料)
NTT DATA Technology & Innovation
 
PDF
Using MLOps to Bring ML to Production/The Promise of MLOps
Weaveworks
 
PDF
【de:code 2020】 Azure Red hat OpenShift (ARO) によるシステムアーキテクチャ構築の実践
日本マイクロソフト株式会社
 
PDF
Building an Observability platform with ClickHouse
Altinity Ltd
 
Terraform: An Overview & Introduction
Lee Trout
 
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
smalltown
 
GitOps and ArgoCD
Omar Fathy
 
CTO Summit 2022
Dr. Jimmy Schwarzkopf
 
OpenShift-Technical-Overview.pdf
JuanSalinas593459
 
GitOps - Operation By Pull Request
Kasper Nissen
 
From DevOps to GitOps with GitLab
Chen Cheng-Wei
 
Git and GitFlow branching model
Pavlo Hodysh
 
Kubernetes GitOps featuring GitHub, Kustomize and ArgoCD
Sunnyvale
 
Monitoring with Prometheus
Shiao-An Yuan
 
コンテナネットワーキング(CNI)最前線
Motonori Shindo
 
Introduction to Tekton
Victor Iglesias
 
GitOps 101 Presentation.pdf
ssuser31375f
 
Infrastructure-as-Code (IaC) using Terraform
Adin Ermie
 
Intro to GitOps & Flux.pdf
Weaveworks
 
JenkinsとCodeBuildとCloud Buildと私
Shoji Shirotori
 
Apache Spark on Kubernetes入門(Open Source Conference 2021 Online Hiroshima 発表資料)
NTT DATA Technology & Innovation
 
Using MLOps to Bring ML to Production/The Promise of MLOps
Weaveworks
 
【de:code 2020】 Azure Red hat OpenShift (ARO) によるシステムアーキテクチャ構築の実践
日本マイクロソフト株式会社
 
Building an Observability platform with ClickHouse
Altinity Ltd
 

Similar to GitOps is IaC done right (20)

PDF
DevOps:建造開發維運的跨界之橋 (@ C.C. Agile #37)
Chen Cheng-Wei
 
PDF
ArgoCD 的雷 碰過的人就知道 @TSMC IT Community Meetup #4
Johnny Sung
 
PDF
Progressive Deployment & NoDeploy
Yi-Feng Tzeng
 
PPTX
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Vietnam Open Infrastructure User Group
 
PDF
Openshift argo cd_v1_2
RastinKenarsari
 
PDF
GitOps: Git come unica fonte di verità per applicazioni e infrastruttura
sparkfabrik
 
PDF
GitOps is the best modern practice for CD with Kubernetes
Volodymyr Shynkar
 
PDF
提到 DevOps 到底在
談些什麼玩意兒?(@ Agile Tour Taichung 2017)
Chen Cheng-Wei
 
PDF
CI/CD、自動化,你還沒準備好(GCPUG.TW Meetup #34)
Chen Cheng-Wei
 
PDF
和艦長一起玩轉 GitLab & GitLab Workflow
Chen Cheng-Wei
 
PDF
Promise of DevOps
Juraj Hantak
 
PDF
Effective DevOps:一場文化與技術的轉型運動
Chen Cheng-Wei
 
PDF
快快樂樂打造自動化開發環境
Chen Cheng-Wei
 
PDF
提到 DevOps 到底在談些什麼玩意兒?
Chen Cheng-Wei
 
PPTX
CICD pipelines with GitOps
Huynh Thai Bao
 
PDF
DevOps Foundations
Amr Fawzy
 
PPTX
GitOps - Argo CD - GDSC WoW Punjab
TusharVilekar1
 
PDF
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
Chen Cheng-Wei
 
PDF
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
PDF
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
DevOps:建造開發維運的跨界之橋 (@ C.C. Agile #37)
Chen Cheng-Wei
 
ArgoCD 的雷 碰過的人就知道 @TSMC IT Community Meetup #4
Johnny Sung
 
Progressive Deployment & NoDeploy
Yi-Feng Tzeng
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Vietnam Open Infrastructure User Group
 
Openshift argo cd_v1_2
RastinKenarsari
 
GitOps: Git come unica fonte di verità per applicazioni e infrastruttura
sparkfabrik
 
GitOps is the best modern practice for CD with Kubernetes
Volodymyr Shynkar
 
提到 DevOps 到底在
談些什麼玩意兒?(@ Agile Tour Taichung 2017)
Chen Cheng-Wei
 
CI/CD、自動化,你還沒準備好(GCPUG.TW Meetup #34)
Chen Cheng-Wei
 
和艦長一起玩轉 GitLab & GitLab Workflow
Chen Cheng-Wei
 
Promise of DevOps
Juraj Hantak
 
Effective DevOps:一場文化與技術的轉型運動
Chen Cheng-Wei
 
快快樂樂打造自動化開發環境
Chen Cheng-Wei
 
提到 DevOps 到底在談些什麼玩意兒?
Chen Cheng-Wei
 
CICD pipelines with GitOps
Huynh Thai Bao
 
DevOps Foundations
Amr Fawzy
 
GitOps - Argo CD - GDSC WoW Punjab
TusharVilekar1
 
PHP Conf Taiwan 2016 自動化與持續整合實作工作坊
Chen Cheng-Wei
 
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
What is GitOps? How GitOps works? we discuss Key Challanges.
aniporwal00
 
Ad

More from Chen Cheng-Wei (20)

PDF
GitLab Auto DevOps 大解析—CI/CD 原來可以這樣做
Chen Cheng-Wei
 
PDF
Become a GitLab Hero
Chen Cheng-Wei
 
PDF
以自動化先行的 DevOps 實踐經驗分享
Chen Cheng-Wei
 
PDF
SRE 讀書會:導讀《持續交付》第15章 - 持續交付管理
Chen Cheng-Wei
 
PDF
DevOpsDays Taiepi 2018 - Farewell 閉幕
Chen Cheng-Wei
 
PDF
SRE 讀書會 - 導讀:第 31 章
Chen Cheng-Wei
 
PDF
SRE 讀書會 - 導讀:第 30 章
Chen Cheng-Wei
 
PDF
跟著 geerlingguy 大神
一起測試 Ansible Roles
Chen Cheng-Wei
 
PDF
iThome Serverless All-Star 開場
Chen Cheng-Wei
 
PDF
Ignite talks
Chen Cheng-Wei
 
PDF
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Chen Cheng-Wei
 
PDF
CI、CD、Automation你還沒準備好!?(Agile Tour Kaohsiung 2017)
Chen Cheng-Wei
 
PDF
Effective DevOps (Agile Tour HsinChu 2017)
Chen Cheng-Wei
 
PDF
SRE 讀書會 - 導讀:第一章
Chen Cheng-Wei
 
PDF
DevOpsDays Taipei 2017 Opening Talk
Chen Cheng-Wei
 
PDF
DevOpsDays Taipei 2017 Farewell
Chen Cheng-Wei
 
PDF
Ignite talks - 自動化的關鍵
Chen Cheng-Wei
 
PDF
從 DevOps 到 ChatOps:War Room、Bots 與 Automation
Chen Cheng-Wei
 
PDF
困境與轉型:一個小型開發團隊的 DevOps 學習之旅
Chen Cheng-Wei
 
PDF
DevOps叢林裡的小隊游擊戰術 (@ iThome DevOps 2015)
Chen Cheng-Wei
 
GitLab Auto DevOps 大解析—CI/CD 原來可以這樣做
Chen Cheng-Wei
 
Become a GitLab Hero
Chen Cheng-Wei
 
以自動化先行的 DevOps 實踐經驗分享
Chen Cheng-Wei
 
SRE 讀書會:導讀《持續交付》第15章 - 持續交付管理
Chen Cheng-Wei
 
DevOpsDays Taiepi 2018 - Farewell 閉幕
Chen Cheng-Wei
 
SRE 讀書會 - 導讀:第 31 章
Chen Cheng-Wei
 
SRE 讀書會 - 導讀:第 30 章
Chen Cheng-Wei
 
跟著 geerlingguy 大神
一起測試 Ansible Roles
Chen Cheng-Wei
 
iThome Serverless All-Star 開場
Chen Cheng-Wei
 
Ignite talks
Chen Cheng-Wei
 
Ansible & GitLab CI / CD Workshop 101 ( @Agile Tour Taipei 2017)
Chen Cheng-Wei
 
CI、CD、Automation你還沒準備好!?(Agile Tour Kaohsiung 2017)
Chen Cheng-Wei
 
Effective DevOps (Agile Tour HsinChu 2017)
Chen Cheng-Wei
 
SRE 讀書會 - 導讀:第一章
Chen Cheng-Wei
 
DevOpsDays Taipei 2017 Opening Talk
Chen Cheng-Wei
 
DevOpsDays Taipei 2017 Farewell
Chen Cheng-Wei
 
Ignite talks - 自動化的關鍵
Chen Cheng-Wei
 
從 DevOps 到 ChatOps:War Room、Bots 與 Automation
Chen Cheng-Wei
 
困境與轉型:一個小型開發團隊的 DevOps 學習之旅
Chen Cheng-Wei
 
DevOps叢林裡的小隊游擊戰術 (@ iThome DevOps 2015)
Chen Cheng-Wei
 
Ad

Recently uploaded (20)

PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 

GitOps is IaC done right