Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KubeCon + CloudNativeCon 2018 NA Recap

cyberblack28
December 27, 2018

KubeCon + CloudNativeCon 2018 NA Recap

「KubeCon+CNCon NA 2018 Recap!!」Documents
2018.12.12.27

cyberblack28

December 27, 2018
Tweet

More Decks by cyberblack28

Other Decks in Technology

Transcript

  1. KubeCon + CloudNativeCon 2018 Seattle Recap ~ MySQL Operator ~

    KubeCon + CloudNativeCon NA 2018 Recap !! 2018.12.27 @cybozu © cyberblack28
  2. Profile Twitter:cyberblack28 Hatena Blog:https://cyberblack28.hatenablog.com/ Job Educational Solution Architect Developer Advocate/Technical

    Evangelist Infrastructure Engineer Frontend Engineer Community Music,Live,FES !! Take a picture !! https://www.flickr.com/photos/cyberblack ISBN-10: 4798155373 ISBN-13: 978-4798155371 I wrote the Chapter 6 Rancher 2.0 part. Release on March 15, 2018 ! #rancherjp #kujiraya #deepcn
  3. Session’s Summary Documents http://urx.space/ONjM Slide Movie https://youtu.be/g924HDB81oc Running MySQL on

    Kubernetes Session https://www.youtube.com/watch?v=scQScx02eWg Demo https://www.youtube.com/watch?v=rlG51bZ6wkk
  4. Session’s Summary MySQLWXOEQ %7D-+1.9+Kubernetes !"LF IK  mj# 68 !'"&

    $),*Kubernetes1- 75 2+  qe MySQLa`5.DioMySQLhHPlb;+./+C6MySQL GaleraHP;B/;+.lb^8B</>2"]N StatefulSet a` !  ni5.DgpkdJ1=D+2C*?D'"("&$) MySQL'1- MySQL%0. "3/75  MySQL Operator94   \dJ Vitess&@+.AD'*+0<MySQLUT+(AD'%: C.  !Y[G_*>3cMfS7B&$A)4.#, ZVR
  5. Session’s Summary • De-mystifying containers • MySQL running on containers

    • MySQL on Kubernetes • Stateful applications – StatefulSets • Operators - MySQL Operator • Sharding - Vitess Time permitting… • Save questions until the end Time Out
  6. Session’s Summary Oh no! Database is on containers !? •

    %#  ,'& • !($ !+) #" • +) •  !* 
  7. Session’s Summary Databases: Pet vs. Cattle • The containers are

    cattle ! • The data is pet ! Databases Containers are…
  8. Session’s Summary Kubernetes ingredients for stateful applications • Labels •

    Services • KubeDNS • Helm Charts • PV/PVC,StorageClass • StatefulSets • Init containers • VolumeCalimTemplates • Operators • CustomResourceDefinition • Side-car containers • NodeSelector
  9. Session’s Summary Node Affinity/AntiAffinity • -- -- I H NEA

    HcDAE he P • g / • - d - / • -- -- I i • -- I f SH he P -- I f S a he P Pod Affinity/AntiAffinity
  10. Session’s Summary StatefulSet • U R 1 U1 • •

    D • P O a 2.NodeMySQL Pod
  11. Session’s Summary Headless Service • Poda IP V P ※StatefulSet

    Headless Service StorageClass & VolumeClaimTemplate • S C T • e g d 3.     4.MySQL Pod 
  12. MySQL Operator Operators • ns c ko a v r

    • A , A , MP A LQ D ns c ko luhd a k • p b ei mt ns c D DI W • sf eQa v r OK • , A B SR A • ns c ge y • C QMP e t • A , A g n MP ns c yE A A C A A A , SR
  13. MySQL Operator MySQL Operators • Oracle https://github.com/oracle/mysql-operator • Presslabs https://github.com/presslabs/mysql-operator

    • GRTL https://github.com/grtl/mysql-operator • Comparisons https://banzaicloud.com/blog/mysql-on-kubernetes/
  14. MySQL Operator • B1*0& 4?9, "7 MySQL0 "0 Kubernetes$)/ •

    API'@A MySQLCluster58Custom Resource DefinitionD - ! 62 • Backup,BackupSchedule,Restore "+-! >9 '##)/- %6< • MySQL 8.0 • Group Replication/ InnoDB Cluster=9 • (% %. :C3;'##)/- %6< https://github.com/oracle/mysql-operator Oracle MySQL Operators
  15. MySQL Operator • S rsC Ln c • o K

    rg f f f Sb M L c gi Q a e K M S L p Q / L / MK
  16. MySQL Operator mysqlclusters.mysql.oracle.com MySQL   (kind: Cluster) mysqlbackups.mysql.oracle.com 

      (kind:Backup ) mysqlrestores.mysql.oracle.com     (kind: Restore) mysqlbackupschedules.mysql.oracle.com    (kind: BackupSchedule)
  17. Reference DEMO Oracle MySQL Operator DEMO • 3 B l

    O Rc W • 3 S oS o3 - S q o3 m • S Rc W r 3 L 3 3 • Sa e nMs g Q pk 3 d https://www.youtube.com/watch?v=scQScx02eWg
  18. Reference DEMO Presslabs MySQL Operator DEMO • M 3 LM

    • LQ M S S 1 Q a • dL LM • LM e OQ https://www.youtube.com/watch?v=rlG51bZ6wkk