Suche senden
Hochladen
CoreOSによるDockerコンテナのクラスタリング
•
64 gefällt mir
•
17,069 views
Yuji ODA
Folgen
2014年09月06日(土)に行われた第4回 コンテナ型仮想化の情報交換会@東京の発表資料。
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 34
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
raccoony
Launching containers with fleet
Launching containers with fleet
충섭 김
CoreOS : 설치부터 컨테이너 배포까지
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
Ruoshi Ling
CoreOS + Kubernetes @ All Things Open 2015
CoreOS + Kubernetes @ All Things Open 2015
Brandon Philips
Docker composeで開発環境をメンバに配布せよ
Docker composeで開発環境をメンバに配布せよ
Yusuke Kon
CoreOS: Control Your Fleet
CoreOS: Control Your Fleet
Matthew Jones
Academy PRO: Docker. Lecture 4
Academy PRO: Docker. Lecture 4
Binary Studio
Empfohlen
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
raccoony
Launching containers with fleet
Launching containers with fleet
충섭 김
CoreOS : 설치부터 컨테이너 배포까지
CoreOS : 설치부터 컨테이너 배포까지
충섭 김
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
當專案漸趕,當遷移也不再那麼難 (Ship Your Projects with Docker EcoSystem)
Ruoshi Ling
CoreOS + Kubernetes @ All Things Open 2015
CoreOS + Kubernetes @ All Things Open 2015
Brandon Philips
Docker composeで開発環境をメンバに配布せよ
Docker composeで開発環境をメンバに配布せよ
Yusuke Kon
CoreOS: Control Your Fleet
CoreOS: Control Your Fleet
Matthew Jones
Academy PRO: Docker. Lecture 4
Academy PRO: Docker. Lecture 4
Binary Studio
Docker 原理與實作
Docker 原理與實作
kao kuo-tung
Docker1.12イングレスロードバランサ
Docker1.12イングレスロードバランサ
Yuji Oshima
Docker on openstack by OpenSource Consulting
Docker on openstack by OpenSource Consulting
Open Source Consulting
이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure
Daegwon Kim
CoreOS in a Nutshell
CoreOS in a Nutshell
CoreOS
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3
Binary Studio
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
JUNICHI YOSHISE
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
raccoony
Dockerを利用したローカル環境から本番環境までの構築設計
Dockerを利用したローカル環境から本番環境までの構築設計
Koichi Nagaoka
Docker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutes
Luciano Fiandesio
Lessons from running potentially malicious code inside containers
Lessons from running potentially malicious code inside containers
Ben Hall
Vagrant
Vagrant
Denys Haryachyy
Multi container apps swarm + consul + compose
Multi container apps swarm + consul + compose
Eueung Mulyana
Real World Lessons on the Pain Points of Node.js Applications
Real World Lessons on the Pain Points of Node.js Applications
Ben Hall
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
tomasbart
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and Symfony
André Rømcke
2015 DockerCon Using Docker in production at bity.com
2015 DockerCon Using Docker in production at bity.com
Mathieu Buffenoir
kubernetes practice
kubernetes practice
wonyong hwang
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
bridgetkromhout
Docker 初探,實驗室中的運貨鯨
Docker 初探,實驗室中的運貨鯨
Ruoshi Ling
CoreOS入門
CoreOS入門
Yutaka Matsubara
20140726 jaws-ug chiba AWS operation best practice
20140726 jaws-ug chiba AWS operation best practice
Kazuki Ueki
Weitere ähnliche Inhalte
Was ist angesagt?
Docker 原理與實作
Docker 原理與實作
kao kuo-tung
Docker1.12イングレスロードバランサ
Docker1.12イングレスロードバランサ
Yuji Oshima
Docker on openstack by OpenSource Consulting
Docker on openstack by OpenSource Consulting
Open Source Consulting
이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure
Daegwon Kim
CoreOS in a Nutshell
CoreOS in a Nutshell
CoreOS
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3
Binary Studio
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
JUNICHI YOSHISE
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
raccoony
Dockerを利用したローカル環境から本番環境までの構築設計
Dockerを利用したローカル環境から本番環境までの構築設計
Koichi Nagaoka
Docker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutes
Luciano Fiandesio
Lessons from running potentially malicious code inside containers
Lessons from running potentially malicious code inside containers
Ben Hall
Vagrant
Vagrant
Denys Haryachyy
Multi container apps swarm + consul + compose
Multi container apps swarm + consul + compose
Eueung Mulyana
Real World Lessons on the Pain Points of Node.js Applications
Real World Lessons on the Pain Points of Node.js Applications
Ben Hall
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
tomasbart
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and Symfony
André Rømcke
2015 DockerCon Using Docker in production at bity.com
2015 DockerCon Using Docker in production at bity.com
Mathieu Buffenoir
kubernetes practice
kubernetes practice
wonyong hwang
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
bridgetkromhout
Docker 初探,實驗室中的運貨鯨
Docker 初探,實驗室中的運貨鯨
Ruoshi Ling
Was ist angesagt?
(20)
Docker 原理與實作
Docker 原理與實作
Docker1.12イングレスロードバランサ
Docker1.12イングレスロードバランサ
Docker on openstack by OpenSource Consulting
Docker on openstack by OpenSource Consulting
이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure
CoreOS in a Nutshell
CoreOS in a Nutshell
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 3
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
Dockerを利用したローカル環境から本番環境までの構築設計
Dockerを利用したローカル環境から本番環境までの構築設計
Docker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutes
Lessons from running potentially malicious code inside containers
Lessons from running potentially malicious code inside containers
Vagrant
Vagrant
Multi container apps swarm + consul + compose
Multi container apps swarm + consul + compose
Real World Lessons on the Pain Points of Node.js Applications
Real World Lessons on the Pain Points of Node.js Applications
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
Getting instantly up and running with Docker and Symfony
Getting instantly up and running with Docker and Symfony
2015 DockerCon Using Docker in production at bity.com
2015 DockerCon Using Docker in production at bity.com
kubernetes practice
kubernetes practice
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Docker 初探,實驗室中的運貨鯨
Docker 初探,實驗室中的運貨鯨
Andere mochten auch
CoreOS入門
CoreOS入門
Yutaka Matsubara
20140726 jaws-ug chiba AWS operation best practice
20140726 jaws-ug chiba AWS operation best practice
Kazuki Ueki
Using LXC on Production
Using LXC on Production
Isao Shimizu
HyClops for Zabbix紹介資料
HyClops for Zabbix紹介資料
Daisuke Ikeda
コンテナ型仮想化とはなんだったのか
コンテナ型仮想化とはなんだったのか
えむ ばーど
No Monitoring, No Life on AWS
No Monitoring, No Life on AWS
Masahito Zembutsu
20140717 awssummit2014-cloud-operation
20140717 awssummit2014-cloud-operation
Yasuhiro Araki, Ph.D
2014-07-26 jawsug-chiba ドキュメントを書こう! 運用自動化時代のドキュメンテーション
2014-07-26 jawsug-chiba ドキュメントを書こう! 運用自動化時代のドキュメンテーション
Operation Lab, LLC.
第4回コンテナ型仮想化勉強会@東京 Oracle Solaris のコンテナ技術「Solaris Zones」
第4回コンテナ型仮想化勉強会@東京 Oracle Solaris のコンテナ技術「Solaris Zones」
Kazuyuki Sato
VagrantユーザのためのDocker入門
VagrantユーザのためのDocker入門
Masashi Shinbara
SendGridサンプルの紹介
SendGridサンプルの紹介
Shunji Konishi
AWSを含めたハイブリッド環境の監視の実現 ~zabbixのクラウド対応モジュールHyClops~
AWSを含めたハイブリッド環境の監視の実現 ~zabbixのクラウド対応モジュールHyClops~
Daisuke Ikeda
Jtfハンズオン資料(公開版)
Jtfハンズオン資料(公開版)
亮介 山口
コンテナ基盤であるLXC/LXDを 本番環境で運用する話
コンテナ基盤であるLXC/LXDを 本番環境で運用する話
Nobuhiro Fujita
オンプレミスから AWS への劇的ビフォーアフター
オンプレミスから AWS への劇的ビフォーアフター
manabusakai
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
Ryo Nakamaru
Dockerクイックツアー
Dockerクイックツアー
Etsuji Nakai
ご注文は監視自動化ですか?
ご注文は監視自動化ですか?
Masahito Zembutsu
Andere mochten auch
(18)
CoreOS入門
CoreOS入門
20140726 jaws-ug chiba AWS operation best practice
20140726 jaws-ug chiba AWS operation best practice
Using LXC on Production
Using LXC on Production
HyClops for Zabbix紹介資料
HyClops for Zabbix紹介資料
コンテナ型仮想化とはなんだったのか
コンテナ型仮想化とはなんだったのか
No Monitoring, No Life on AWS
No Monitoring, No Life on AWS
20140717 awssummit2014-cloud-operation
20140717 awssummit2014-cloud-operation
2014-07-26 jawsug-chiba ドキュメントを書こう! 運用自動化時代のドキュメンテーション
2014-07-26 jawsug-chiba ドキュメントを書こう! 運用自動化時代のドキュメンテーション
第4回コンテナ型仮想化勉強会@東京 Oracle Solaris のコンテナ技術「Solaris Zones」
第4回コンテナ型仮想化勉強会@東京 Oracle Solaris のコンテナ技術「Solaris Zones」
VagrantユーザのためのDocker入門
VagrantユーザのためのDocker入門
SendGridサンプルの紹介
SendGridサンプルの紹介
AWSを含めたハイブリッド環境の監視の実現 ~zabbixのクラウド対応モジュールHyClops~
AWSを含めたハイブリッド環境の監視の実現 ~zabbixのクラウド対応モジュールHyClops~
Jtfハンズオン資料(公開版)
Jtfハンズオン資料(公開版)
コンテナ基盤であるLXC/LXDを 本番環境で運用する話
コンテナ基盤であるLXC/LXDを 本番環境で運用する話
オンプレミスから AWS への劇的ビフォーアフター
オンプレミスから AWS への劇的ビフォーアフター
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
Dockerを使ったローカルでの開発から本番環境へのデプロイまで
Dockerクイックツアー
Dockerクイックツアー
ご注文は監視自動化ですか?
ご注文は監視自動化ですか?
Ähnlich wie CoreOSによるDockerコンテナのクラスタリング
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
PROIDEA
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
Zhichao Liang
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppet
lutter
Docker container management
Docker container management
Karol Kreft
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and Production
Ben Hall
Things I've learned working with Docker Support
Things I've learned working with Docker Support
Sujay Pillai
Simple docker hosting in FIWARE Lab
Simple docker hosting in FIWARE Lab
Fernando Lopez Aguilar
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
Jonas Rosland
Introduction to Docker & CoreOS - Symfony User Group Cologne
Introduction to Docker & CoreOS - Symfony User Group Cologne
D
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
Lorin Hochstein
AWS 기반 Docker, Kubernetes
AWS 기반 Docker, Kubernetes
정빈 권
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017
Paul Chao
Docker command
Docker command
Eric Ahn
Docker security
Docker security
Janos Suto
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
Ben Hall
時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇
Philip Zheng
Docker in Action
Docker in Action
Simon Su
Linux configer
Linux configer
MD. AL AMIN
Running .NET on Docker
Running .NET on Docker
Ben Hall
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作
Philip Zheng
Ähnlich wie CoreOSによるDockerコンテナのクラスタリング
(20)
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
JDO 2019: Tips and Tricks from Docker Captain - Łukasz Lach
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
Beyond Golden Containers: Complementing Docker with Puppet
Beyond Golden Containers: Complementing Docker with Puppet
Docker container management
Docker container management
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and Production
Things I've learned working with Docker Support
Things I've learned working with Docker Support
Simple docker hosting in FIWARE Lab
Simple docker hosting in FIWARE Lab
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
Introduction to Docker & CoreOS - Symfony User Group Cologne
Introduction to Docker & CoreOS - Symfony User Group Cologne
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
AWS 기반 Docker, Kubernetes
AWS 기반 Docker, Kubernetes
手把手帶你學Docker 03042017
手把手帶你學Docker 03042017
Docker command
Docker command
Docker security
Docker security
Running Docker in Development & Production (DevSum 2015)
Running Docker in Development & Production (DevSum 2015)
時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇
Docker in Action
Docker in Action
Linux configer
Linux configer
Running .NET on Docker
Running .NET on Docker
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作
Kürzlich hochgeladen
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Jeffrey Haguewood
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Zilliz
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Bhuvaneswari Subramani
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Zilliz
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
Kürzlich hochgeladen
(20)
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
CoreOSによるDockerコンテナのクラスタリング
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
[Unit] Description=busybox Requires=docker.service
After=docker.service [Service] TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker kill busybox ExecStartPre=-/usr/bin/docker rm busybox ExecStartPre=/usr/bin/docker pull busybox ExecStart=/usr/bin/docker run --name busybox busybox /bin/sh -c "while true; do echo Hello World; sleep 1; done" ExecStop=/usr/bin/docker stop busybox [X-Fleet] X-Conflicts=busybox@*.service
16.
17.
18.
19.
20.
21.
22.
23.
coreos: etcd: discovery:
https://discovery.etcd.io/<token> addr: $private_ipv4:4001 peer-addr: $private_ipv4:7001 units: - name: etcd.service command: start - name: fleet.service command: start ssh_authorized_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0g+ZTxC7weoIJLUaf Ogrm+h... write_files: - path: /etc/motd permissions: 0644 owner: root content: | Good news, everyone!
24.
25.
#cloud-config coreos: update:
reboot-strategy: best-effort etcd: # generate a new token for each unique cluster from https://discover y.etcd.io/new discovery: https://discovery.etcd.io/<token> addr: $private_ipv4:4001 peer-addr: $private_ipv4:7001 units: - name: etcd.service command: start - name: fleet.service command: start
26.
write_files: - path:
/tmp/busybox@.service content: | [Unit] Description=busybox Requires=docker.service After=docker.service [Service] TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker kill busybox-%i ExecStartPre=-/usr/bin/docker rm busybox-%i ExecStartPre=/usr/bin/docker pull busybox ExecStart=/usr/bin/docker run --name busybox-%i busybox /bin/sh - c "while true; do echo Hello World; sleep 1; done" ExecStop=/usr/bin/docker stop busybox-%i [X-Fleet] X-Conflicts=busybox@*.service
27.
# 必要に応じて gcloud
config set project <project_id> gcloud config set compute/zone asia-east1-a gcloud config set compute/region asia-east1 # 3つのインスタンスを起動 gcloud compute instances create core1 core2 core3 --image coreos --machine-type f1-micro --metadata-from-file user-data=cloud-config.ya ml
28.
# ログイン gcloud
compute ssh core1 # サービスの登録と起動 fleetctl submit /tmp/busybox@.service fleetctl start busybox@{1,2}.service fleetctl list-units
29.
# unitに割り当てのあるインスタンスを削除してみる gcloud
compute instances delete core2 gcloud compute ssh core1 # フェイルオーバーが行われることを確認 fleetctl list-units UNIT DSTATE STATE MACHINE ACTIVE busybox@.service inactive inactive - - busybox@1.service launched launched ffc81480.../10.xxx.xxx.237 active busybox@2.service launched launched 99f741a8.../10.xxx.xxx.150 active UNIT DSTATE STATE MACHINE ACTIVE busybox@.service inactive inactive - - busybox@1.service launched launched ffc81480.../10.xxx.xxx.237 active busybox@2.service launched launched 27c76d9a.../10.xxx.xxx.221 activa ting
Jetzt herunterladen