CoreOS Meetup Tokyo #1 2015-04-09
// Tutorial //How To Troubleshoot Common Issues with your CoreOS Servers Introduction CoreOS introduces a number of interesting technologies that make building distributed systems easy. However, these tools can be unfamiliar to new users and have their own eccentricities. One of the main issues is that there are many layers of abstraction at work and it can be difficult to pin down where a problem
For customersCustomer supportSubscription managementSupport casesRed Hat Ecosystem CatalogFind a partnerFor partnersPartner portalPartner supportBecome a partner Try, buy, & sellRed Hat MarketplaceRed Hat StoreContact salesStart a trialLearning resourcesDocumentationTraining and certification Hybrid cloud learning hubInteractive labsLearning communityRed Hat TVOpen source communitiesAnsibleGlobal
æ¥åçµæ´ï¼ 2012å¹´æ ªå¼ä¼ç¤¾ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãå ¥ç¤¾ããã©ã¤ãã¼ãã¯ã©ã¦ãã®ç£è¦ã·ã¹ãã ãèªååãªã©ã®DevOpsãæ å½ãç¾å¨ã¯ã¯ã©ã¦ãã·ã¹ãã ã®UIå·æ°ã¨PaaSæ¤è¨¼ã«å¾äºã æ¦è¦ éçºç°å¢ããæ¬çªç°å¢ã¾ã§ã Docker ã«ã¦ä¸è²«æ§ã®ãã管çãå¯è½ã§ããããæ¤è¨¼ãã¾ããã å°ãæ¬ã¬ãã¼ã㯠Docker 管çã«Â CoreOS ãå©ç¨ãã¦ããã¾ãã ç®æ¬¡ 1.ã¿ã¤ãã«ã«ã¤ã㦠1-1.Docker Dockerã¯Linux Containeræè¡ã®high levelãã¼ã«ã§ããVMã¯ãã·ã³ä»®æ³åã«å¯¾ãã¦Linux Containerã¯ããã»ã¹ã®ä»®æ³åã 2013å¹´3æã«open sourceãã¦ããä»ãæããã«ãããããã³ãã¥ããã£ã®ã¹ãã¼ã¹ã¿ã¼ã«ãªã£ã¦ãã¾ãï¼ githubã«dockerã®staræ°: 13256, Forkæ°: 2315(2014å¹´6æ30æ¥) githubã®se
Overview dockerããããªãã«æ±ããã¨æãã¨ç´é¢ããã®ããã«ããã¹ãç°å¢ã§ã®dockerã®æ§æã 大æµã·ã³ã°ã«ãã¹ãã®ããªããã£ããªç°å¢ã§ã¯åé¡ç¡ãã£ãL3/L4ã®æ±ããIPã¢ãã¬ã¹ããã¼ãçã®ã¡ã¿ãã¼ã¿ã®ãªã½ã¼ã¹ç®¡çãåé¡ã«ãªã£ã¦ããã åè ã«é¢ãã¦ã¯ãã«ã¼ãã£ã³ã°ã³ã³ããçµç±ã§ã®ãã±ãã交æãcgroup/namespacedãOpen vSwtichãªã©ã§SDNãå®è£ ã L3/L4ãæ½è±¡åãä»®æ³çã«ï¼ã¤ã®ãããã¯ã¼ã¯ã¨ãã¦æ±ããããã«ãããã¨ã§è§£æ±ºããããã¨ããåããããã 代表çãªã½ãªã¥ã¼ã·ã§ã³ã¨ãã¦ã¯socketplane, weave, pipework, flannel, Open vSwitchçã®ã½ãªã¥ã¼ã·ã§ã³ãããã å¾è ã«é¢ãã¦åæ£Key Valueã¹ãã¢ã«ã³ã³ããã®ã¡ã¿ãã¼ã¿ãç»é²ãå¿ è¦ã«å¿ãã¦ã¯ã©ã¹ã¿ã®æ§ææ å ±ãèªã¿åºã ãã¨ã§è§£æ±ºãããã¨ããåããã
2014å¹´ã®å¾åãããããDockerï¼Docker Inc.ã¸ã®æ¹å¤ãå¤ãè¦ãããããã«ãªã£ãï¼ãã¡ãããã¨ãã¨æ¸å¿µãå«æªã表æããã²ã¨ã¯ããï¼ï¼ããã象徴ããåºæ¥äºã¨ãã¦CoreOSãã¼ã ã«ããæ°ããã³ã³ããã®Runtimeã§ããRocketã®ãªãªã¼ã¹ã¨ï¼ãªã¼ãã³ãªã¢ããªã±ã¼ã·ã§ã³ã³ã³ããã®ä»æ§ã®çå®ãç®æããApp Containerããã¸ã§ã¯ãã®éå§ããã£ãï¼ CoreOS is building a container runtime, Rocket æ¹å¤ã¯ï¼ã»ãã¥ãªãã£ã§ãã£ããï¼ããã¥ã¡ã³ãããã¦ããªãè¬ã®ä»æ§ããã°ã ã£ããï¼ã³ãã¥ããã£ã®éå¶ã ã£ããï¼ã¨å¤æ¹é¢ã«ãããï¼ãããã¯å ·ä½çã«ã©ããããã¨ãªã®ãï¼ãªãRocketãå¿ è¦ãªã®ãï¼ã¯å ·ä½çã«æ´çããã¦ããªãã¨æãï¼ãããã¯ï¼ä»å¾ã³ã³ããæè¡ã使ã£ã¦ããä¸ã§ï¼ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ã¨ãã¨åããããéè¦ãªé¨åã ã¨æãã®ã§ï¼ãã
etcd/consulã«èªè¨¼æ å ±ãå®å ¨ã«ä¿åãã åæ£Key-Valueã¹ãã¢ã¨ãã¦etcdãconsulã®å©ç¨ãå¢ãã¦ããï¼ããã«ã¢ããªã±ã¼ã·ã§ã³ã®è¨å®å¤ãªã©ãä¿åãï¼åãã¹ãããããããè³¼èªãã¦å©ç¨ããï¼ ã¾ãï¼X-as-a-Serviceã¨ãã£ãå¤é¨ãµã¼ãã¹ã®å©ç¨ãå¤ããªã£ã¦ããï¼ãã®å ´åAPI Tokenããã¹ã¯ã¼ãã¨ãã£ãèªè¨¼æ å ±ãå¿ è¦ã«ãªãï¼PaaSãTwelve-factorçãªã¢ã¼ããã¯ãã£ãæ¡ç¨ããå ´åã¯ï¼ãããã®å¤ãç°å¢å¤æ°ã«ä¿åãã¦å©ç¨ãããã¨ãå¤ãï¼å±éºã§ããã¨ããæè¦ã¯ããï¼cf. http://techlife.cookpad.com/entry/envchainï¼ï¼etcdãconsulã¨ãã£ãåæ£Key-Valueã¹ãã¢ã®å©ç¨ãåæã¨ããã¢ã¼ããã¯ãã£ã§ã¯ï¼ããã«å¤é¨ã«æ¼ãããããªãè¨å®å¤ãä¸ç·ã«ä¿åãã¦ãã¾ãã®ãã·ã³ãã«ã«ãªãï¼ ãããï¼ãããã£ãè¨å®å¤ã
CoreOSã¯ã©ã¹ã¿ã«Dockerã³ã³ããããããã¤ãã Docker Meetup Tokyo #4 CoreOSã®æ¦è¦ã¨Dockerãå®éã«éç¨ãããã¨æã£ãã¨ãã«Dockerãæ±ããåé¡ãCoreOSãã©ã®ããã«ããã解決ãããã«ã¤ãã¦çºè¡¨ããï¼ãã¢ã§ã¯Terraformã使ã£ã¦DigitalOceanä¸ã«CoreOSã¯ã©ã¹ã¿ãç«ã¦ã¦ï¼ãã¢ã¢ããªã±ã¼ã·ã§ã³ã³ã³ãããåçã«ã¹ã±ã¼ã«ãããæ§åãå®æ¼ããï¼ã½ã¼ã¹ã¯å ¨ã¦tcnksm/docker-meetup-4-demoã«ããï¼ï¼ éæ ç°¡åã«Meetupã®ææ³ãæ¸ãã¦ããï¼ ä»åã¯Dockerãã®ãã®ã®çºè¡¨ãããï¼ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ããµã¼ãã¹ãã£ã¹ã«ããªã¼ãªã©ã®å¨è¾ºãã¼ã«ããµã¼ãã¹ã®çºè¡¨ãå¤ãã£ãï¼ãã¼ã«ï¼ãããã¯Dockerå°ç¨ã®OSï¼ã§ã¯ï¼CoreOSï¼Kubernetesï¼RedHad Atomic hostï¼ãµã¼ãã¹ã§ã¯Ama
ç¾é²ãã®ã¯ã¨ã¯ï¼ 座æ·ç«¥åä¸æã®æ«è£ã¨ãã¦çã¾ããæ æ¨ã®ç±ç·æ£ããæç¥ç¤¾ã§æ®ããã¦ãããã ãã©ãæããã®ããããã§ä¸äººåã®åº§æ·ç«¥åã«ãªãããæ±äº¬ã§ä¿®è¡ãéå§ï¼ ç´ä½æ²æãã£ã¦ãConoHaã®å¿æ´å£é·ã«å°±ä»»ãããã¨ã«ãªãConoHaã使ã£ã¦ããã¿ããªãå¿æ´ããã¨ã¨ãã«ããã®ã¯ãä¸äººåã®åº§æ·ç«¥åã§ã¯ãªãããç¥æ§ãã«ãªãããã«æ¥ã é å¼µã£ã¦ãããï¼ ãããã£ã¼ã« ååï¼ç¾é² ãã®ã¯ ï¼ã¿ãã ãã®ã¯ï¼ å¹´é½¢ï¼å¹´é½¢ã¨ããæ¦å¿µã¯ãªããã人éã§ããã¨13æ³ãããï¼ èº«é·ï¼150cmï¼Î± ä½éï¼ã²ã¿ã¤ é·æï¼åå¼·ç±å¿ã»ããã¨æ©è»¢ããã çæï¼ããããã¨åéããããæ¯ãèãããã㡠好ããªãã¨ï¼ã¢ãã¡ãè¦ããã²ã¼ã ããªããã®ãããã
ã¯ããã« ããæè¿ã®Dockerã ã¼ãã¡ã³ãã®ä¸ã§ããã¼ã¯ã¼ãã¨ãã¦è¯ãåãä¸ããããããã«ãªã£ããã®ã®ä¸ã¤ã«CoreOSãããã¾ããã¤ãå æ¥ãGoogle Compute EngineãCoreOSãæ£å¼ã«ãµãã¼ããããã¨ã大ããªè©±é¡ã¨ãªã£ã¦ãã¾ããã CoreOSã¯Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®ä¸ã¤ã§ããç´°ãã説æã«ã¤ãã¦ã¯ãå¤é¨ãµã¤ãã«ãªãã¾ããCoreOS å ¥é - Qiitaã¨ããè¨äºãé常ã«åèã«ãªãã¾ãã®ã§ãä¸èªä¸ããã ãã£ããæ¸ãã¨ãä»®æ³åã³ã³ããã大è¦æ¨¡ã«éç¨ãããã¨ã«ç¹åããLinuxOSã§ããetcdã¨ããåæ£KVSã¨fleetã¨ããåæ£ã·ã¹ãã ã«ããã¯ã©ã¹ã¿ãªã³ã°æ©è½ãæ¨æºçã«æã£ã¦ãã¾ãã ããã§ä»åã¯ãAmazon EC2ä¸ã§CoreOSãå°å ¥ããæ´ã«fleetã使ã£ã¦Dockerã³ã³ãããã¯ã©ã¹ã¿ãªã³ã°ãã¦èµ·åããããã¨ãããã¨ããã£ã¦ã¿ã¾ããã ãã£ã
Terraformã§CoreOSã¯ã©ã¹ã¿ãæ§ç¯ãã CoreOSã¯DigitalOceanãAmazon EC2ï¼OpenStackãªã©ããããã¯ã©ã¦ããµã¼ãã¹ããã©ãããã©ã¼ã ã§åãããã¨ãã§ããï¼1ã¤ã®CoreOSã¯ã©ã¹ã¿ãè¤æ°ã®ã¯ã©ã¦ããµã¼ãã¹ãèªç¤¾ã®ãã¢ã¡ã¿ã«ãµã¼ãã¼ã«ã¾ããã£ã¦æ§ç¯ãããã¨ãã§ãããï¼ããã奨å±ããã¦ããï¼ã¾ãï¼ã¯ã©ã¹ã¿ã®ãã·ã³ã®æ°ã¯ãµã¼ãã¹ã®æé·ãè² è·ç¶æ³ã«ãã£ã¦å¢æ¸ãããå¿ è¦ãããï¼ ãã®ãããªCoreOSã¯ã©ã¹ã¿ã®æ§ç¯ãç°¡åã«ï¼ãã¤Infrastructure as Codeçã«åç¾å¯è½ãªå½¢ã§è¡ãããå ´åï¼Hashicorpã®Terraformã使ãã®ãããããï¼å人çã«è©¦ãã¦ããã ããªã®ã§æ°ç¾è¦æ¨¡ã®ãã·ã³ã§ã¯ãªãï¼æ°åè¦æ¨¡ã®è©±ï¼ããè¨å¤§ãªãã·ã³æ°ã«ãªã£ãã¨ãã«ã©ãããã®ãããã®ãç¥è¦ãããã°ç¥ãããï¼ï¼ 以ä¸ã§ã¯ï¼Terraformã使ã£ã¦DigitalO
ãããã®VPSãå¥ç´ç´å¾ã®ç¶æ ãã10ã15åç¨åº¦ã§ã¤ã³ã¹ãã¼ã«ãå®äºãã¾ãã SSHã§æºåãã SSHã§ãã°ã¤ã³ãã¦ã¤ã³ã¹ãã¼ã«ã«å¿ è¦ãªãã¡ã¤ã«ãåéãã¾ãã sshãªãã³ãã¼ï¼ãã¼ã¹ãã§ããã®ã§ããã®å¾ã®ã³ã³ã½ã¼ã«æä½ã§æãæããããã«ãã®æ®µéã§åºæ¥ãã ãçºãã¦ããã¾ãã cloud-init ã¾ã åå¼·ä¸ãªã®ã§æä½éã®è¨å®ã ããã¦ãã¾ãã static.networkã®[Match]ã§æ©ãã§ãæ¹ãå¤ãã§ããeth*ã¯éæ¨å¥¨ã¿ãããªã®ã§MACAddressã§è¯ãã®ã§ã¯ã¨æã£ã¦ã¾ããæ©ç¨®ã«ä¾åããè¨å®ã¯çããããé£ããã§ããâã¢ããã¤ã¹ãå¾ ã¡ãã¦ããã¾ã mkdir -p /tmp/work export VPS_IP=160.16.83.xx # VPSã®IPã¢ãã¬ã¹ export VPS_GATEWAY=160.16.82.1 # VPSã®GATEWAYã¢ãã¬ã¹ export VPS_
Docker ï¼ Itamae ã§ã¬ã·ãä½æã®è©¦è¡é¯èª¤ã é«éå #itamae #docker æ¦è¦ Docker ï¼ Itamae ã§ã¬ã·ãä½æã®è©¦è¡é¯èª¤ã é«éå ãã¾ã ç®ç Itamae ã®ã¬ã·ãä½ææéãç縮 ç¹ã«å·¥å¤«ãããªãã¨ãã¬ã·ãã®ãããã¸ã§ãã³ã°ãªãã©ã¤ã¯é常ã«æéãããã ä¾ãã°ãUbuntu ç°å¢ã« rbenv + ruby(2.1.3) + rails(4.1.8) ç°å¢ãã¤ã³ã¹ãã¼ã«ããã¨ãã 15 åãããã¾ãã ä½ã工夫ãããªããã°å試è¡ã« + 15 åãããã¾ã æ®æ®µã®ããã°ã©ãã³ã°åæ§ãä½äºãä¸çºã§æåãããã¨ã¯å°ãªãã試è¡é¯èª¤ã¯çºçãã â» Itamae ã«éã£ã話ã§ã¯ãªãã®ã§ããããã¸ã§ãã³ã°ãã¼ã«å ¨è¬ã«å¿ç¨å¯è½ åæ Vagrant ã§æ§ç¯ãã CoreOS ç°å¢ ã®ä¸ã« Docker ã§ä½æãã Ubuntu 14.04 ã®ã³ã³ãããä½æãããã®
Dockerã¯ã³ã³ããåã®ä»®æ³åæè¡ãªã®ã§ãå®è¡ã§ããç°å¢ãLinuxã«éå®ãããã®ãé£ç¹ã§ããä¸è¬çã«ã¯CoreOSãCentOSãUbuntuä¸ã§Dockerãåããã®ã§ãããæ®æ®µä½¿ã£ã¦ããWindowsãMac OSXã§ã使ãããã¨èãã人ã¯ã¨ã¦ãå¤ãã§ãã ããã§ä½¿ããã¦ããã®ãboot2dockerãªã®ã§ãããããã¯VirtualBoxä¸ã«Tiny Core Linuxãç¨æãã¦ããã®ä¸ã§Dockerãåããã¨ããä»®æ³åã®ããã«ä»®æ³ç°å¢ãç¨æããã¨ãããå¼·å¼ãªè§£æ±ºæ段ã¨ãªã£ã¦ãã¾ãã軽éãªä»®æ³ç°å¢ãªã¯ããªã®ã«ãVirtualBoxã®ç«ã¡ä¸ãã«æéããããã®ã¯å¿ä½ãªãã§ãããã ããã§ä½¿ã£ã¦ã¿ããã®ãDockerã®Remote APIã使ã£ã¦å¤é¨ã«ããDockerãµã¼ããæä½ããã¨ããæ¹æ³ã§ããä»åã¯ãã®è¨å®æ¹æ³ãç´¹ä»ãã¾ãã å¿ è¦ãªãã® ã¯ã©ã¤ã¢ã³ããã·ã³ ä»åã¯Mac OSXã
Fleetã®ä½¿ãæ¹ï¼Unitãã¡ã¤ã«ã®æ¸ãæ¹ CoreOSã«å ¥éãã | SOTA CoreOSã§ã¯ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ãDockerã§åããï¼ãã®ã¨ãï¼ã³ã³ããã«ãããµã¼ãã¹ãCoreOSã¯ã©ã¹ã¿ã®ã©ã®ãã·ã³ã§èµ·åãããããã¡ãã¡äººæã§æ±ºããããã«ã¯ãããªãï¼ã¯ã©ã¹ã¿å ã®ãªã½ã¼ã¹ã®ç¶æ ãåãã¦ãããµã¼ãã¹ã«åºã¥ãï¼é©åãªãã·ã³ã§ã³ã³ãããåããã¹ã±ã¸ã¥ã¼ãªã³ã°ã®ä»çµã¿ãå¿ è¦ã«ãªãï¼ ãã®ã¹ã±ã¸ã¥ã¼ãªã³ã°ã¨ã³ã³ããã®ç®¡çã«CoreOSã¯fleetãç¨ããï¼ fleetã使ãã¨CoreOSã¯ã©ã¹ã¿ã1ã¤ã®init systemã§åãã¦ãããã®ããã«ãããæ±ããã¨ãã§ããããã«ãªãï¼éçºè ã¯ã©ã®ãã·ã³ã§ã©ã®Dockerã³ã³ãããåãã¦ããããæ°ã«ããå¿ è¦ããªããªãï¼ ä¾ãã°ï¼5ã¤ã®ã³ã³ãããåããå¿ è¦ãããã°ï¼fleetã¯ã¯ã©ã¹ã¿ã®ã©ããã§ãã®5ã¤ã®ã³ã³ãããåãã¦ããã¨ãä¿è¨¼ããï¼ããã³
CoreOS is Linux for Massive Server Deployments · CoreOS CoreOS + Docker Meetup Tokyo #1ã«åå ãã¦CoreOSã«ãã£ã¡ãæåããã®ã§ï¼CoreOSã«å ¥éãã¦ãããã触ã£ã¦ã¿ãï¼ ã¾ãï¼CoreOSã®æ¦è¦ã¨ãããæ¯ããæè¡ã«ã¤ãã¦èª¬æããï¼æ¬¡ã«å®éã«DigitalOcenanä¸ã«Vagrantã使ã£ã¦å®éã«CoreOSã¯ã©ã¹ã¿ãç«ã¦ã¦ï¼CoreOSã§éã¶æ¹æ³ã«ã¤ãã¦æ¸ãï¼ CoreOSã¨ã¯ä½ã CoreOSã¯ï¼GoogleãFacebookï¼Twitterã¨ãã£ãä¼æ¥ãå®ç¾ãã¦ããæè»ãã¤ã¹ã±ã¼ã©ãã«ï¼èé害æ§ã®é«ãã¤ã³ãã©ã®æ§ç¯ãç®çã¨ããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ããï¼è»½éãã¤ä½¿ãæ¨ã¦ãåæã«ãã¦ããï¼ã¯ã©ã¦ããªã¢ã¼ããã¯ãã£ã®ãã¹ããã©ã¯ãã£ã¹ãåãå ¥ãã¦ããï¼CoreOSã®ç¹å¾´ã¯å¤§ãã4ã¤æ
5. ..... . .... . .... . ..... . .... . .... . .... . ..... . .... . .... . .... . ..... . .... . .... . .... . ..... . .... . ..... . .... . .... . CoreOS ã¨ã¯ ⢠Alex Polvi ãç«ã¡ä¸ãã CoreOS Inc ãéçº â¢ åæ£ã·ã¹ãã ãåæã«è¨è¨ãããLinux Distribution ⶠGoogle ãªã©ãåè㫠ⶠã¢ããã¤ã¶ã¼ã«ã¯ Greg KH
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}