Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

GitOpsではじめるKubernetes CI/CD Pipeline

2,824 views

Published on

JAPAN CONTAINER DAYS V18.12
https://containerdays.jp/
での登壇資料です

Published in: Technology
  • Be the first to comment

GitOpsではじめるKubernetes CI/CD Pipeline

  1. 1. 8./ 2/ / /1 2/ - -2 2 - 2/ - Kohei Endo 2018.12.05
  2. 2. 2C @E 8 E . 6 0 1 @ 0 G E N Tci nI ah G Eo IRT ru me G E 6 Ttka N_ P_ W d bJ .,/ N_ ahL
  3. 3. / - 2 / 0 2 0 .1 / 0 2 10 .0 1 .0 .10 /. 8 :
  4. 4. • • B • B O • B G
  5. 5. • •
  6. 6. • ( / , • G , C D I • K P C ), ,/ • ), ,/ 8
  7. 7. • / / •
  8. 8. • J DM I S • . . , . , • M I C D G • / / / , • -. . - , • . , . . ,
  9. 9. • • •
  10. 10. • D • ea • . • M • M D , • . • M 8 c
  11. 11. ( ) ( apiVersion: apps/v1 kind: Deployment metadata: name: jkd namespace: jkd spec: selector: matchLabels: app: jkd template: metadata: labels: app: jkd spec: containers: - name: jkd image: myimage.local/endo-k/japancontainerdays:v18.12 ports: - containerPort: 80 apiVersion: v1 kind: Service metadata: name: jkd namespace: jkd labels: app: jkd spec: selector: app: jkd ports: - port: 80 targetPort: 80 name: http
  12. 12. • • • • • •
  13. 13. • ) 8 )( ) ( ) • 8 = • ) =
  14. 14. • 82 F2 lh if • iOkoG m c C D • 82 Ff 1 7 • 2 1/ W O 1 1 8 ae • 1 n G 2 1/ C 8 / 8 0D
  15. 15. • • • G • •
  16. 16. • • • G • • • • • G • •
  17. 17. , https://www.weave.works/blog/kubernetes-anti-patterns-let-s-do-gitops-not-ciops ' , ! ,
  18. 18. • C • C / • /T I • /8
  19. 19. App code (k8s manifest) Developer CI Tools Container Registry Kubernetes Push Hook Read Push Read Apply(set image) Read Read Push Pull Apply Read Exec
  20. 20. App code Developer CI Tools Container Registry Kubernetes Push Hook Read Push Read Read Push Pull Exec k8s manifest A GitOps Operator Read Push Read Apply (Write Image Tag)
  21. 21. • • • O • G K
  22. 22. • 8 • •
  23. 23. a 8 8 c R e f G G
  24. 24. • 8 • +( ) ( • G • + )( • + D
  25. 25. • W 8. 32 b f adG • 2 1 33 ( 4. )2 . , . 2 • 21 33 2. 2A • e Oc S B
  26. 26. • • O • P • H A G R
  27. 27. • b c • - • e G 8 • - P d • a 8 S • • -
  28. 28. • O C o • 8 • i A • G CA . O p • i C • A • C D k A r g
  29. 29. • ,8 8 • , G • 8 • à • à • à • à
  30. 30. - 2 / 0 2 0 .1 / 0 2 10 .0 1 .0 .10 /. 8 :
  31. 31. • :C 6 6B6A A : > B> A • BB A :C 6 6B6A A : > 6AA 6A .# / • > 16 D6 C -6 : A G F
  32. 32. • , I M • A L U • / , W • / , , ., , / , ,
  33. 33. /- . / / . .
  34. 34. • , , , J G , K e • Kgu t X sr Kgu m C A • KpaJ Ovk ibDF lf • W n , , , A o
  35. 35. • ACI: H - H F H / :G D • HHDG A :G D C A :G D C H ICIG! H =F H C !: A FL • , . H DG • HHDG KKK K KCF G H CAC= G = HCDG • .I F H G H !D HH F G / H G :C H DG CH - DG • HHDG KKK K KCF G AC= I F H G! H !D HH F G!A H!G!:C!= HCDG! CH! CDG • H DG ! F EI HAL G : I GH C G • HHDG KKK K KCF G H CAC= G = HCDG! F EI HAL! G :!EI GH C G
  36. 36. THANK YOU

×