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

9f9df80ab6551776b49c4ad9432ba1b7?s=47 Kazuki Suda
August 01, 2017

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

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

9f9df80ab6551776b49c4ad9432ba1b7?s=128

Kazuki Suda

August 01, 2017
Tweet

Transcript

  1. 6.

    ,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. 9.

    ,VCFSOFUFTכؔ٦فٝד֮׷ Ӝ ؔ٦فٝا٦أاؿزؐؑ، HJUIVCDPNLVCFSOFUFTLVCFSOFUFT "QBDIF-JDFOTF  Ӝ ؔ٦فٝرؠ؎ٝ HJUIVCDPNLVCFSOFUFTDPNNVOJUZ Ӝ

    ؔ٦فٝ؝ىُصذ؍ 4QFDJBM*OUFSFTU(SPVQT 4*(T  4MBDL 4UBDL0WFSPX Ⰻ⚅歲ד⟃♳ךى٦ز،حف Ӝ $MPVE/BUJWF$PNQVUJOH'PVOEBUJPO $/$' 
  3. 10.

    ,VCFSOFUFTכه٦ةـٕד֮׷ Ӝ DMPVEQSPWJEFS --# ـٗحؙأزٖ٦آזוך乼⡲׾䬄韋⻉ ($1 "84 "[VSF 0QFO4UBDL 

    Ӝ $/* $POUBJOFS/FUXPSL*OUFSGBDF $BMJDP 'MBOOFM 0QFOW4XJUDI 8FBWF  Ӝ $POUBJOFS3VOUJNF %PDLFS SLU DSJP 
  4. 11.

    ,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. 14.

    ،٦ؗذؙثٍ $POUSPMMFS
 .BOBHFS FUDE 4DIFEVMFS BQJTFSWFS LVCFMFU $POUBJOFS
 3VOUJNF CLI

    API UI Master Node 1 LVCFMFU $POUBJOFS
 3VOUJNF Node “n”
  6. 23.

    ׉ך➭ Ӝ /BNFTQBDFTؙٓأة׾ⴓⶴׅ׷ Ӝ %FQMPZNFOUTٗ٦ؚٔٝ،حفر٦زծٗ٦ٕغحؙ Ӝ $POH.BQT،فٔ؛٦ءّٝה鏣㹀ךⴓꨄ Ӝ 4FDSFUT،فٔ؛٦ءّٝהء٦ؙٖحزךⴓꨄ Ӝ

    1FSTJTUFOU7PMVNFT 1FSTJTUFOU7PMVNF$MBJNT宕竲نُٔ٦ي Ӝ *OHSFTT-頾蚚ⴓ侔ծغ٦ثٍٕمأزծ5-4穄畭 Ӝ +PCTٙٝءّحزآّـ Ӝ $SPO+PCآّـך㹀劍㹋遤 Ӝ 4UBUFGVM4FUTأذ٦زؿٕ،فٔ؛٦ءّٝ Ӝ %BFNPO4FUTⰋגךظ٦سד1PE׾㹋遤 Ӝ )PMJ[POUBM1PE"VUP4DBMFSؔ٦زأ؛٦ٕ 
  7. 24.
  8. 28.

    $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
  9. 29.

    $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
  10. 35.

    ،٦ؗذؙثٍ $POUSPMMFS
 .BOBHFS FUDE 4DIFEVMFS BQJTFSWFS XJUI$3% CLI API $VTUPN

    $POUSPMMFST DMVTUFS DMVTUFS DMVTUFS˒O˒ Kubernetes