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

Kubernetes とゼットラボの取り組み / Kubernetes and Z Lab's...

Kazuki Suda
August 01, 2017

Kubernetes とゼットラボの取り組み / Kubernetes and Z Lab's works

ビッグデータ基盤研究会@茗荷谷 17.08.01

Kazuki Suda

August 01, 2017
Tweet

More Decks by Kazuki Suda

Other Decks in Technology

Transcript

  1. ,VCFSOFUFT Ӝ ؝ٝذشؔ٦؛أزٖ٦ءّٝخ٦ٕ ؝ٝذشךꂁ⪒ծ鏣㹀ծ盖椚׾遤ֲ Ӝ ĜĦĔėģğήĥęςؘٔءٍ铂ד乼菭㡦 Ӝ (PPHMFך爡ⰻءأذيַ׵؎ٝأػ؎،ׁ׸׋  “Kubernetes

    is open source—a contrast to Borg and Omega,
 which were developed as purely Google-internal systems. “ Borg, Omega, and Kubernetes
 https://research.google.com/pubs/pub44843.html
  2. ,VCFSOFUFTכؔ٦فٝד֮׷ Ӝ ؔ٦فٝا٦أاؿزؐؑ، HJUIVCDPNLVCFSOFUFTLVCFSOFUFT "QBDIF-JDFOTF  Ӝ ؔ٦فٝرؠ؎ٝ HJUIVCDPNLVCFSOFUFTDPNNVOJUZ Ӝ

    ؔ٦فٝ؝ىُصذ؍ 4QFDJBM*OUFSFTU(SPVQT 4*(T  4MBDL 4UBDL0WFSPX Ⰻ⚅歲ד⟃♳ךى٦ز،حف Ӝ $MPVE/BUJWF$PNQVUJOH'PVOEBUJPO $/$' 
  3. ,VCFSOFUFTכه٦ةـٕד֮׷ Ӝ DMPVEQSPWJEFS --# ـٗحؙأزٖ٦آזוך乼⡲׾䬄韋⻉ ($1 "84 "[VSF 0QFO4UBDL 

    Ӝ $/* $POUBJOFS/FUXPSL*OUFSGBDF $BMJDP 'MBOOFM 0QFOW4XJUDI 8FBWF  Ӝ $POUBJOFS3VOUJNF %PDLFS SLU DSJP 
  4. ,VCFSOFUFTכ䧭ꞿ׃גְ׷  Kubernetes Docker Swarm Apache Mesos All Time Statistics

    Contributors 1,473 201 288 Commits 49,619 3,331 24,308 12 Month Statistics Contributors 756 66 155 Commits 19,223 567 7,946 https://www.openhub.net/p/_compare?project_0=Kubernetes&project_1=docker+swarm&project_2=Apache+Mesos As of 17/06/12
  5. ،٦ؗذؙثٍ $POUSPMMFS
 .BOBHFS FUDE 4DIFEVMFS BQJTFSWFS LVCFMFU $POUBJOFS
 3VOUJNF CLI

    API UI Master Node 1 LVCFMFU $POUBJOFS
 3VOUJNF Node “n”
  6. ׉ך➭ Ӝ /BNFTQBDFTؙٓأة׾ⴓⶴׅ׷ Ӝ %FQMPZNFOUTٗ٦ؚٔٝ،حفر٦زծٗ٦ٕغحؙ Ӝ $POH.BQT،فٔ؛٦ءّٝה鏣㹀ךⴓꨄ Ӝ 4FDSFUT،فٔ؛٦ءّٝהء٦ؙٖحزךⴓꨄ Ӝ

    1FSTJTUFOU7PMVNFT 1FSTJTUFOU7PMVNF$MBJNT宕竲نُٔ٦ي Ӝ *OHSFTT-頾蚚ⴓ侔ծغ٦ثٍٕمأزծ5-4穄畭 Ӝ +PCTٙٝءّحزآّـ Ӝ $SPO+PCآّـך㹀劍㹋遤 Ӝ 4UBUFGVM4FUTأذ٦زؿٕ،فٔ؛٦ءّٝ Ӝ %BFNPO4FUTⰋגךظ٦سד1PE׾㹋遤 Ӝ )PMJ[POUBM1PE"VUP4DBMFSؔ٦زأ؛٦ٕ 
  7. $VTUPN3FTPVSDF%FOJUJPOT Ӝ ⟣䠐ךٔا٦أ׾鷄⸇ "1*ؒٝسه؎ٝز $36%PQFSBUJPOT 8BUDI"1* Ӝ 513כWד䐖姺  apiVersion:

    apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: kubernetesclusters.kubernetes.zlab.co.jp spec: scope: Namespaced group: kubernetes.zlab.co.jp version: v1alpha1 names: kind: KubernetesCluster plural: kubernetesclusters singular: kubernetescluster
  8. $VTUPN3FTPVSDF%FOJUJPOT Ӝ ⟣䠐ךٔا٦أ׾鷄⸇ "1*ؒٝسه؎ٝز $36%PQFSBUJPOT 8BUDI"1* Ӝ 513כWד䐖姺  $

    cat cluster01.yaml apiVersion: kubernetes.zlab.co.jp/v1alpha1 kind: KubernetesCluster metadata: name: cluster01 spec: version: "1.7.0" masterReplicas: 3 masterFlavor: large workerReplicas: 5 workerFlavor: large $ kubectl create -f ./cluster01.yaml kubernetescluster “cluster01” created
  9. ،٦ؗذؙثٍ $POUSPMMFS
 .BOBHFS FUDE 4DIFEVMFS BQJTFSWFS XJUI$3% CLI API $VTUPN

    $POUSPMMFST DMVTUFS DMVTUFS DMVTUFS˒O˒ Kubernetes