Successfully reported this slideshow.
Your SlideShare is downloading. ×

GitOps is IaC done right

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 62 Ad

GitOps is IaC done right

Download to read offline

這次在 twMVC #40 的分享,延續九月於 iThome Cloud Edge Summit 2020 談過的 GitOps 內容,再更多補充了 IaC 的內容。

以下是原公布的講題簡介:

延續 DevOps、IaC、K8S⋯⋯等熱潮,下一個被人們熱烈討論的技術實踐會是什麼?在新一波浮出水面的關鍵字中,GitOps 會不會是下一個明日之星?

嚴格檢視 GitOps,它並不是一個全新的概念,而是延續在 DevOps + IaC + CI/CD 之上的技術實踐。在這場演講中,將會分享 GitOps 與 IaC 的愛恨情仇,原來 GitOps 的出現,其實是為了讓 IaC 能做得盡善盡美?

這次在 twMVC #40 的分享,延續九月於 iThome Cloud Edge Summit 2020 談過的 GitOps 內容,再更多補充了 IaC 的內容。

以下是原公布的講題簡介:

延續 DevOps、IaC、K8S⋯⋯等熱潮,下一個被人們熱烈討論的技術實踐會是什麼?在新一波浮出水面的關鍵字中,GitOps 會不會是下一個明日之星?

嚴格檢視 GitOps,它並不是一個全新的概念,而是延續在 DevOps + IaC + CI/CD 之上的技術實踐。在這場演講中,將會分享 GitOps 與 IaC 的愛恨情仇,原來 GitOps 的出現,其實是為了讓 IaC 能做得盡善盡美?

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Similar to GitOps is IaC done right (20)

Advertisement

More from Chen Cheng-Wei (20)

Recently uploaded (20)

Advertisement

GitOps is IaC done right

  1. 1. Photo by Rae Tian on Unsplash Cheng Wei Chen @ twMVC#40 GitOps is IaC done right
  2. 2. 先交流一下吧 Photo by Camylla Battani on Unsplash 正在導入 GitOps? 正在使⽤用 K8s? 你認為 K8s 是⼀一種 IaC 嗎?
  3. 3. Cheng Wei Chen 陳 正瑋
 DevOps Taiwan Community 志工、GitLab Hero、譯者、作者 http://chengweichen.com
  4. 4. https://devopstw.club
  5. 5. 加入 GitLab Hero ! https://about.gitlab.com/community/heroes/
  6. 6. 天瓏購書網址
 https://bit.ly/3okmvAa ISBN: 9789864345311
  7. 7. Agenda ‧認識 IaC 與 GitOps ‧開始實踐 GitOps ‧結語
  8. 8. STORY Photo by Timothy Meinberg on Unsplash
  9. 9. Commit Code OK! Ops Code Photo by Jonathan Daniels on Unsplash Dev
  10. 10. Commit ……… Ops Code Photo by Jonathan Daniels on Unsplash Dev Deploy 炸 炸炸
  11. 11. Commit 啊,抱歉,我忘了了說 Application 有⼀一個新的 Config ~ Ops Code Photo by Michelle Tresemer on Unsplash Dev Deploy 炸 炸炸
  12. 12. Commit Ops Code Photo by Jonathan Daniels on Unsplash Dev Code OK ! Application Config OK !
  13. 13. Commit Ops Code Photo by Jonathan Daniels on Unsplash Dev …………這次不是我的問題喔~ Deploy 炸 炸炸 AgainAgainAgain
  14. 14. Commit Ops Code Photo by Thomas Bormans on Unsplash Ops 啊,我昨天有⼿手動改了了⼀一個 Service 的 Config,該不會 是我的錯吧? Dev Deploy 炸 炸炸 AgainAgainAgain
  15. 15. Commit Ops Code Photo by Jonathan Daniels and Thomas Bormans on Unsplash Dev Code OK ! Application Config OK ! Ops Service Config OK!
  16. 16. Commit Ops Code Dev …...這次不是我們問題喔~ Ops 炸 炸 AgainAgainAgain AgaiAgaAga 炸 炸炸炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸 炸炸 炸 炸炸 炸Deploy Photo by Jonathan Daniels and Thomas Bormans on Unsplash
  17. 17. Commit Ops Code Infra 炸 炸 AgainAgainAgain AgaiAgaAga 炸 炸炸炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸炸 炸 炸 炸炸 炸 炸炸 炸Deploy Dev Photo by maskedemann on Unsplash 我包,Infra 有⼩小微調, 我是不是沒有通知你?
  18. 18. Dev Ops Infra Photo by Jonathan Daniels, Thomas Bormans and maskedemann on Unsplash 炸 炸 炸
  19. 19. Photo by Fancycrave on Unsplash 認識 IaC 與 GitOps
  20. 20. Provision Code ⼀一條龍 ⼯工程師 Configuration DeployArtifacts Production Environment
  21. 21. Code DeployCI / CD Automation Configuration ⼀一條龍 ⼯工程團隊 Provision Production Environment
  22. 22. Code DeployCI / CD ⼀一條龍 ⼯工程團隊 Configuration Ops / Infra 團隊 Provision Production Environment Automation
  23. 23. 你需要 Infrastructure as Code (IaC)
  24. 24. Automation Server Production Environment Network Storage Measurable Reduced risks Consistency Version control Testing Immutable IaC Practices Benefits Collaboration
  25. 25. Automation Server Production Environment Network Storage Measurable Reduced risks Consistency IaC Practices Benefits Version control Testing Immutable Collaboration ⼈人⽣生總是有個 But…
  26. 26. Server Production Environment Network Storage IaC
  27. 27. Server Production Environment Network Storage IaC Cloud Service Config files Container Pipeline IaC
  28. 28. 也許你可以試試 GitOps?
  29. 29. 圖片來來源 https://youtu.be/Usb9iUphT6Y
  30. 30. 圖片來來源
 https://argoproj.github.io/argo-cd/
  31. 31. 圖片來來源 https://gitlab.com/gitops-demo/readme
  32. 32. GitOps = IaC + MRs + CI/CD GitLab 說的~
  33. 33. GitOps = IaC + MRs + CI/CD Infrastructure as Code Infrastructure Configuration Dependency
  34. 34. GitOps = IaC + MRs + CI/CD Continuous Integration Continuous Delivery And Automation
  35. 35. GitOps = IaC + MRs + CI/CD Merge Requests
  36. 36. GitOps = IaC + MRs + CI/CD DevOps
  37. 37. 新 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
  38. 38. Commit 檢查 .gitlab-ci.yml GitLab Server 產⽣生 CI/CD Pipeline GitLab Runner 執行 Job CI Job 回傳 Logs 顯⽰示於 Pipeline Terraform Ansible Cloud Vault Repository Cloud Cloud
  39. 39. App Infra GitLab Runner 1. Application 有更更新嗎? 2. Infrastructure 有更更新嗎? 3.有!執⾏行行異異動! Worker Build Test Release Validate Plan Validate Plan Approve
  40. 40. 圖片來來源 https://gitlab.com/gitops-demo/readme
  41. 41. Photo by Fancycrave on Unsplash 如何開始實踐 GitOps
  42. 42. 1. IaC 2. Automation 3. Code Review & Approve 4. Multi environment 5. CI/CD 6. Use Repository 7. Agile & Iteration DevOps
  43. 43. 1. IaC 讓⼀一切都成為 Code
  44. 44. 2. Automation 盡可能⾃自動化 如果不成,就紀錄它!
  45. 45. 3. Code Review & Approve 審查、複閱、檢查、稽核
  46. 46. 4. Multi environment 運⽤用在所有的環境!
  47. 47. 5. CI/CD ⾃自動化的唯⼀一觸發點!
  48. 48. 6. Use Repository 分⽀支策略略、Flow、Workflow
  49. 49. 7. Agile & Iteration ⼩小粒度、多迭代
  50. 50. 0. reborn ? 打掉重練 直接改換 K8s ⽣生態系 Photo by Timothy Meinberg on Unsplash
  51. 51. Photo by Fancycrave on Unsplash 結語
  52. 52. IaC, but !
  53. 53. GitOps = IaC + MRs + CI/CD
  54. 54. GitOps is IaC done right !
  55. 55. DevOps, then GitOps !
  56. 56. GitOps is not for everyone ! (with K8S)
  57. 57. GitOps is not for everyone ! (with K8S) but, IaC.
  58. 58. 工商服務
  59. 59. https://devopstw.club
  60. 60. 加入 GitLab Hero ! https://about.gitlab.com/community/heroes/
  61. 61. 天瓏購書網址
 https://bit.ly/3okmvAa ISBN: 9789864345311

×