IBM Kubernetesの全貌と始め方

B8d0f591da3869f3bb9d5473853be2a2?s=47 Maho Takara
December 04, 2018

IBM Kubernetesの全貌と始め方

Japan Container Days v18.12 でお話した IBM の Kubernetesのご紹介とkubectl コマンドが利用できるまで手順の紹介です。

B8d0f591da3869f3bb9d5473853be2a2?s=128

Maho Takara

December 04, 2018
Tweet

Transcript

  1. IBM Cloud Kubernetes       2018

    124 1CL 12:20 – 13:00 JapanContainerDays v18.12
  2. ͓࿩͢͠Δਓ EC ?A   :;+!,+#<5/@ & .=;D & '$,%*

    , & 960(440F SI"( 7. Kubernetes 2B 141 =>3-8 )) 
  3. *#.ͱ͸ʁ ͲΜͳձࣾ IBM Q 

  4. 4 © 2018 IBM Corporation ະདྷʹ޲͚ͨݚڀ ྔࢠίϯϐϡʔλʔ *#.2

  5. *#. ૑ۀ೥ه೦αΠτ ʮ*#.Ͱݕࡧʯ

  6. *#.ͷྺ࢙ ϓϩάϥϛϯάݴޠΛ։ൃ '0353"/ IBM 7090 1961 7 0 NASA 

        NASA https://www.ibm.com/thought-leadership/hidden-figures/jp-ja/ 2017 
  7. H 3 0 / S 6 F O I 6

    *#.ͷྺ࢙ ϋʔυ΢ΣΞͱ04͕෼཭͞ΕͨΞʔΩςΫνϟΛ։ൃ 1964 System/360  
  8. ) ( *#.ͷྺ࢙ ίϯϐϡʔλʔɾωοτϫʔΫɾγεςϜΛ։ൃ 1970 System/370 DEC PDP-11 UNIX 

    1970 ʙ1988 Linux
  9. - ) ( *#.ͷྺ࢙ ύιίϯΛ։ൃɺ04։ൃΛϚΫϩιϑτ΁ҕୗ 1981 IBM 5150 PC 1975

    Microsoft  1976 Apple 
  10. 2 / *#.ͷྺ࢙ ϓϦΤϯςΟϒͳύιίϯ04ͷݪܕΛ։ൃ 1987

  11. 11 © 2018 IBM Corporation *#.ͷྺ࢙ 1992 ʙ2005 %047ύιίϯ

  12. *#.ͷྺ࢙ νΣεͷνϟϯϐΦϯʹ௅ઓ 1996

  13. # )    "% + – &$! –

    , – ( – ' – -*"% *#.ͷྺ࢙ ࣗવݴޠʹ࣭໰ʹ౴͑Δ8BUTPOΛ։ൃ 2011
  14. C 2 4 7 3 I C 0 1 C

    02 B *#.ͷྺ࢙ Ϋϥ΢υ΁ͷํ޲స׵ 2013ʙ2017 2006 AWS 2008 GCP 2010 Azure Bluemix Watson
  15. 15 © 2018 IBM Corporation *#.ͷ͜Ε͔Β 2018ʙ https://www-03.ibm.com/press/jp/ja/pressrelease/54463.wss

  16. *#.͸ ৘ใٕज़ΛݗҾ ೥ͷྺ࢙Λ࣋ͭ άϩʔόϧاۀ ݱࡏ "* ͱ Ϋϥ΢υΛத৺ʹ มֵΛਐΊͯ·͢ɻ 16

  17. *#.ͰҰॹʹಇ͘ ஥ؒΛืूதͰ͢ɻ ͝ڵຯͷ͋Δํ͸ ͓੠͕͚͍ͩ͘͞ɻ 17 © 2018 IBM Corporation http://www-07.ibm.com/employment/jp/

  18. 2007 IBM  Blue Gene/P

  19. *#.ͷ,VCFSOFUFT੡඼ͱαʔϏε ICP IKS       IBM

    Cloud Private IBM Cloud Kubernetes Service
  20. ίϯςφ૚ʢڞ௨ʣ EPDLFSίϯςφͷϏϧυɺϨδετϦ΁ͷొ࿥ˍऔग़͠ ΦʔέετϨʔλ૚ ڞ௨ʣ LVCFDUM ϩʔϧΞ΢τɺෛՙ෼ࢄɺϦιʔε੍ݶɺίϯςφؒ࿈ܞ Πϯϑϥ૚ʢϕϯμʔݸผʣ Ϋϥελߏ੒ɺϨδετϦૢ࡞ɺ'8-#ઃఆɺετϨʔδૢ࡞ *#. $MPVE

    ,VCFSOFUFT 4FSWJDF ֓ཁ Master Node Worker Node Public Network Container Registry Services Cloud Service Storage Service Load Balancer Firewall "# docker  k8s  kubectl   Ibmcloud  Server Worker Node   !    
  21. *#.$MPVEΞʔΩςΫνϟʔ ͱ Λ௒͑ΔαʔϏε Infrastructure Service CloudFoundry Kubernetes Global Network SQL

    / NoSQL Watson APIBlock-Chain ServerLessAnalytics MessageDevOpsetc CF" Java,Python,Go Ruby,JavaScript Node-Redetc  / %( ## ## ! /  /    VLAN / Subnet / Portable IP #!#" # VPNDirect Linkvmware #" / " #" DCsPoPs DoS+*',!#" " )&$k8s#" 1.12.21.11.41.10.8
  22. *#. $MPVE(MPCBM/FUXPSL 22 © 2018 IBM Corporation Infrastructure Service CloudFoundry

    Kubernetes Global Network 1988 
  23.       *#. $MPVEάϩʔόϧωοτϫʔΫ

  24. 2 B 3 2 1 4 C *#. $MPVEάϩʔόϧωοτϫʔΫ AMS01

    - Amsterdam AMS03 - Amsterdam CHE01 - Chennai DAL01 - Dallas DAL05 - Dallas DAL06 - Dallas DAL09 - Dallas DAL10 - Dallas DAL12 - Dallas DAL13 - Dallas FRA02 - Frankfurt FRA04 - Frankfurt FRA05 - Frankfurt HKG02 - Hong Kong HOU02 - Houston LON02 - London LON04 - London LON05 - London LON06 - London MEX01 - Queretaro MIL01 - Milan MON01 - Montreal OSL01 - Oslo PAR01 - Paris SAO01 - Sao Paulo SEA01 - Seattle SEO01 - Seoul SJC01 - San Jose SJC03 - San Jose SJC04 - San Jose SNG01 - Singapore SYD01 - Sydney SYD04 – Sydney MEL01 - Melbourne TOK02 - Tokyo TOK04 - Tokyo TOK05 - Tokyo TOR01 - Toronto WDC01 - Washington, DC WDC04 - Washington, DC WDC06 - Washington, DC WDC07 - Washington, DC   DC –     IKS 
  25. • %%P4อޢ • τϥϯεϙʔτ૚ηΩϡϦςΟʔ 5-4 • άϩʔόϧɾϩʔυɾόϥϯαʔ (-# • 8FCΞϓϦέʔγϣϯɾϑΝΠΞ΢Υʔϧ

    8"' • υϝΠϯɾωʔϜɾαʔόʔ %/4 • Ωϟογϡ • ແྉτϥΠΞϧ • εϚʔτϧʔςΟϯάʢ࠷୹αΠτ༠ಋʣ • Ϩʔτ੍ݶ άϩʔόϧωοτϫʔΫ *#.$MPVE *OUFSOFU 4FSWJDFT $*4 TOK02 TOK04 TOK05 CIS              
  26. *#. $MPVE *OGSBTUSVDVSF4FSWJDF 26 © 2018 IBM Corporation IaaS Service

    CloudFoundry Kubernetes Global Network K Computer  2012/6     IBM Blue Gene/Q Lawrence Livermore National Laboratory (LLNL)
  27.       *#. $MPVE*OGSBTUSVDUVSF4FSWJDF ʢϕΞϝλϧ 

    $(   $(VLAN  $(VLAN 24H/365&!%  "*)+ ,'#    IBM Cloud   GPU 10Gx2 10Gx2
  28.         *#. $MPVE*OGSBTUSVDUVSF4FSWJDF

    ʢԾ૝αʔόʔʣ '  $+VLAN   $+VLAN 24H/365) & "-,/ 0*/#  IBM Cloud  Node1 Node2 Node3 Node4 ' $+%!+%  .( vCPU 256 RAM 4243GB NIC 1Gbps
  29. K *#. $MPVEετϨʔδ    VLAN   VLAN

      IBM Cloud              
  30. # (-1 "%'*,)  /0+! $&*,.2  *#. $MPVE Ծ૝αʔόʔͱϕΞϝλϧͷੑೳൺֱ

    Unixbench 5.1.3 $')1  .4   E3-1270v6 4cores 2 %+"" vCPU 8cores !" 1, # /( "" *2-0 3& 
  31. *#. $MPVE1MBUGPSN4FSWJDFT 31 © 2018 IBM Corporation Infrastructure Service CloudFoundry

    Kubernetes Global Network 2003 IBM Redbook 1993 - 2002 DB2
  32. *#. $MPVE1MBUGPSNαʔϏε 8BUTPO"1*

  33. *#. $MPVE1MBUGPSNαʔϏε σʔλϕʔε

  34. *#. $MPVE1MBUGPSNαʔϏε σʔλϕʔε K8sConfigMap Secret  

  35. *#.ϛυϧ΢ΣΞͷϚχϡΞϧ͸ɺ,OPXMFEHF $FOUFSʹ͋Γ·͢ɻ https://www.ibm.com/support/knowledgecenter/

  36. 20 *#. $MPVE,VCFSOFUFT4FSWJDF 36 © 2018 IBM Corporation Infrastructure Service

    CloudFoundry Kubernetes Global Network Kubernetes Linux    2017   
  37. ίϯςφ૚ʢڞ௨ʣ EPDLFSίϯςφͷϏϧυɺϨδετϦ΁ͷొ࿥ˍऔग़͠ ΦʔέετϨʔλ૚ ڞ௨ʣ LVCFDUM ϩʔϧΞ΢τɺෛՙ෼ࢄɺϦιʔε੍ݶɺίϯςφؒ࿈ܞ Πϯϑϥ૚ʢϕϯμʔݸผʣ Ϋϥελߏ੒ɺϨδετϦૢ࡞ɺ'8-#ઃఆɺετϨʔδૢ࡞ *#. $MPVE

    ,VCFSOFUFT 4FSWJDF ֓ཁ Master Node Worker Node Public Network Container Registry Services Cloud Service Storage Service Load Balancer Firewall "# docker  k8s  kubectl   Ibmcloud  Server Worker Node   !    
  38. ෳ਺ͷ,VCFSOFUFTΫϥελΛ؅ཧ *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ Grafana   

     k8s 
  39.      *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ

      
  40.    *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ ʢϝτϦοΫε؂ࢹʣ Grafana

  41.      *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ

    ʢϩά෼ੳʣ  ELK   Kibana
  42. *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ ʢϩά෼ੳπʔϧʣ Grafana ELK  

    
  43. *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁ ʢ)&-.Χλϩάʣ  helm install Datadog

  44. *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁʢϓϨΠϕʔτϨδετϦʣ Docker  push  

       
  45. *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁʢLTόʔδϣϯΞοϓʣ     

        
  46.      *#. $MPVE ,VCFSOFUFT 4FSWJDF ֓ཁʢLTόʔδϣϯΞοϓʣ

  47. LTυΩϡϝϯτ ঺հ 47 © 2018 IBM Corporation 2003 IBM Redbook

  48. . # / # / # / ॆ࣮ͷυΩϡϝϯτ ʮ*#.$MPVE,VCFSOFUFT4FSWJDF֓આʯͰݕࡧ

  49. . : / / . /. ॆ࣮ͷυΩϡϝϯτʮ*#.%FWFMPQFSʯͰݕࡧ

  50. ./ / ./ . ॆ࣮ͷυΩϡϝϯτʮ*#.%FWFMPQFSʯͰݕࡧ Google

  51. ॆ࣮ͷυΩϡϝϯτ ,VCFSOFUFTνϡʔτϦΞϧ https://developer.ibm.com/tutorials/category/containers/

  52. ॆ࣮ͷυΩϡϝϯτ *$1υΩϡϝϯτ https://www.ibm.com/support/knowledgecenter/ja/SSBS6K_3.1.1/kc_welcome_containers.html

  53. IBM Cloud Kubernetes Service  IBM 2311 memory unit, with

    its six platters 1962 7.25MB
  54. . *#. $MPVE΁ϩάΠϯ

  55. *,4ͷ࢝Ίํ ϩάΠϯޙʹϝχϡʔΛ։͘     

  56. *,4ͷ࢝Ίํ ,VCFSOFUFTαʔϏεΛબ୒  k8s

  57. *,4ΫϥελΛ࡞੒ 

  58. *,4 ແྉΫϥελΛىಈ ϊʔυ W$16Y 3".( ̍ϲ݄ݶఆʣ    

      vCPU x2 RAM 4GB
  59. *,4ͷ࢝Ίํ ϓϩϏδϣχϯάதʹ$-*ͱϓϥάΠϯΛΠϯετʔϧ // . # . / #. # /

    OS      Kubectl  
  60. *,4Ϋϥελͷىಈ͕׬ྃ͢Δͱʮʯͱදࣔ͞ΕΔ  

  61. *,4ແྉ൛ͷىಈ׬ྃ

  62. *CNDMPVEϓϥάΠϯͷΠϯετʔϧ  

  63. LVCFDUM͕࢖͑Δ·Ͱͷखॱ  

  64. . *#. $MPVE΁ೖΓޱ͸ͪ͜Β

  65. 65 © 2018 IBM Corporation