Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes とゼットラボの取り組み / Kubernetes and Z Lab's...
Search
Kazuki Suda
August 01, 2017
Technology
2
1.7k
Kubernetes とゼットラボの取り組み / Kubernetes and Z Lab's works
ビッグデータ基盤研究会@茗荷谷 17.08.01
Kazuki Suda
August 01, 2017
Tweet
Share
More Decks by Kazuki Suda
See All by Kazuki Suda
個人的、Kubernetes の最新注目機能! (2024年5月版)
superbrothers
0
76
Kubernetes + containerd で cgroup v2 に移行したら "failed to create fsnotify watcher" エラーが発生する原因と対策
superbrothers
0
1.3k
Kubernetes にこれから入るかもしれない注目機能!(2022年11月版)
superbrothers
2
1.4k
コミュニティ/ 勉強会紹介
superbrothers
0
210
高可用性、省力運用を目指す 自宅 Kubernetes クラスタ (K8s@home #1)
superbrothers
12
5.3k
KubeCon + CloudNativeCon Europe 2022 Recap
superbrothers
0
48
独断と偏見で選んだ Kubernetes 1.24 の注目機能と今後!
superbrothers
2
7.5k
わかる!metadata.managedFields
superbrothers
4
2k
Local ephemeral-storage のメトリクスを取得するのに kube-summary-exporter がべんり / kube-summary-exporter is useful to get the metrics of local ephemeral-storage
superbrothers
0
640
Other Decks in Technology
See All in Technology
[JAWS-UG新潟#20] re:Invent2024 -CloudOperationsアップデートについて-
shintaro_fukatsu
0
120
型情報を用いたLintでコード品質を向上させる
sansantech
PRO
2
150
UI State設計とテスト方針
rmakiyama
4
850
Google Cloud で始める Cloud Run 〜AWSとの比較と実例デモで解説〜
risatube
PRO
0
120
AWS環境におけるランサムウェア攻撃対策の設計
nrinetcom
PRO
0
190
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
120
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.5k
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
670
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
190
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
200
.NET 9 のパフォーマンス改善
nenonaninu
0
1.6k
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
240
Featured
See All Featured
Side Projects
sachag
452
42k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
It's Worth the Effort
3n
183
28k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Become a Pro
speakerdeck
PRO
26
5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Into the Great Unknown - MozCon
thekraken
34
1.5k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
痥㔐ؽحؚر٦ة㛇湍灇瑔⠓ ,B[VLJ4VEBLTVEB![MBCDPKQ!TVQFSCSPUIFST ,VCFSOFUFTהئحزٓنך《穈
갭歊♧鰛,B[VLJ4VEB Ӝ 4PGUXBSF&OHJOFFS!;-BC Ӝ !TVQFSCSPUIFST
ئحزٓن吳䒭⠓爡 Ӝ 䎃剢鏣甧 Ӝ ؎ٝؿٓ㛇湍䪮遭ך锃叨٥灇瑔涪 ,VCFSOFUFT %PDLFS 1SPNFUIFVT (PMBOH
Ӝ َؿ٦吳䒭⠓爡㶨⠓爡 Ӝ IUUQT[MBCDPKQ
،آؑٝت ,VCFSOFUFTהכ⡦ַ ז,VCFSOFUFTזךַ ,VCFSOFUFTכוֲ⹛ֻךַ ئحزٓنך《穈
,VCFSOFUFTהכ⡦ַ
,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
https://twitter.com/brendandburns/status/585479466648018944
ז,VCFSOFUFTזךַ
,VCFSOFUFTכؔ٦فٝד֮ Ӝ ؔ٦فٝا٦أاؿزؐؑ، HJUIVCDPNLVCFSOFUFTLVCFSOFUFT "QBDIF-JDFOTF Ӝ ؔ٦فٝرؠ؎ٝ HJUIVCDPNLVCFSOFUFTDPNNVOJUZ Ӝ
ؔ٦فٝ؝ىُصذ؍ 4QFDJBM*OUFSFTU(SPVQT 4*(T 4MBDL 4UBDL0WFSPX Ⰻ⚅歲ד⟃♳ךى٦ز،حف Ӝ $MPVE/BUJWF$PNQVUJOH'PVOEBUJPO $/$'
,VCFSOFUFTכه٦ةـٕד֮ Ӝ DMPVEQSPWJEFS --# ـٗحؙأزٖ٦آזוך乼⡲䬄韋⻉ ($1 "84 "[VSF 0QFO4UBDL
Ӝ $/* $POUBJOFS/FUXPSL*OUFSGBDF $BMJDP 'MBOOFM 0QFOW4XJUDI 8FBWF Ӝ $POUBJOFS3VOUJNF %PDLFS SLU DSJP
,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
,VCFSOFUFTכ䧭ꞿ׃גְ
,VCFSOFUFTכוֲ⹛ֻךַ
،٦ؗذؙثٍ $POUSPMMFS .BOBHFS FUDE 4DIFEVMFS BQJTFSWFS LVCFMFU $POUBJOFS 3VOUJNF CLI
API UI Master Node 1 LVCFMFU $POUBJOFS 3VOUJNF Node “n”
؝،؝ٝإفز Ӝ 1PET Ӝ -BCFMT Ӝ 3FQMJDB4FUT Ӝ 4FSWJDFT Ӝ
1FSTJTUFOU7PMVNFT
1PET Ӝ 醱侧ך؝ٝذشה 醱侧ךنُٔ٦ي Ӝ رفٗ؎ך剑㼭⽃⡘ Ӝ *1QFS1PE 1PE
Volume Web Server Agent
-BCFMT Ӝ ؗ٦غُٔ٦ךر٦ة Ӝ ㈓♧ךؚٕ٦ؾؚٝ堣腉 Ӝ ٓكٕإؙٖة BQQXFC SFMFBTFDBOBSZ
1PE release stable app web 1PE release canary app web
-BCFMT Ӝ ؗ٦غُٔ٦ךر٦ة Ӝ ㈓♧ךؚٕ٦ؾؚٝ堣腉 Ӝ ٓكٕإؙٖة BQQXFC SFMFBTFDBOBSZ
1PE release stable app web 1PE release canary app web
3FQMJDB4FUT Ӝ /⦐ך1PEָ㹋遤ׁגְ朐䡾⥂א 3FQMJDB4FU Replicas: 2 Selector: app=web Pod
Template 1PE app web 1PE app web
3FQMJDB4FUT Ӝ /⦐ך1PEָ㹋遤ׁגְ朐䡾⥂א 3FQMJDB4FU Replicas: 2 Selector: app=web Pod
Template 1PE app web
3FQMJDB4FUT Ӝ /⦐ך1PEָ㹋遤ׁגְ朐䡾⥂א 3FQMJDB4FU Replicas: 2 Selector: app=web Pod
Template 1PE app web 1PE app web
4FSWJDFT Ӝ ⟎䟝*1הه٦ز Ӝ ٓكٕإؙٖةח״ 1PEךؚٕ٦ؾؚٝ Ӝ DMVTUFSQSPWJEFSה鸬䵿׃ &YUFSOBM-#
1PE app web 1PE app web 3FQMJDB4FU 4FSWJDF VIP: 10.0.0.249 Selector: app=web
ך➭ Ӝ /BNFTQBDFTؙٓأةⴓⶴׅ Ӝ %FQMPZNFOUTٗ٦ؚٔٝ،حفر٦زծٗ٦ٕغحؙ Ӝ $POH.BQT،فٔ؛٦ءّٝה鏣㹀ךⴓꨄ Ӝ 4FDSFUT،فٔ؛٦ءّٝהء٦ؙٖحزךⴓꨄ Ӝ
1FSTJTUFOU7PMVNFT 1FSTJTUFOU7PMVNF$MBJNT宕竲نُٔ٦ي Ӝ *OHSFTT-頾蚚ⴓ侔ծغ٦ثٍٕمأزծ5-4穄畭 Ӝ +PCTٙٝءّحزآّـ Ӝ $SPO+PCآّـך㹀劍㹋遤 Ӝ 4UBUFGVM4FUTأذ٦زؿٕ،فٔ؛٦ءّٝ Ӝ %BFNPO4FUTⰋגךظ٦سד1PE㹋遤 Ӝ )PMJ[POUBM1PE"VUP4DBMFSؔ٦زأ؛٦ٕ
Demo
ئحزٓنך《穈
,VCFSOFUFTBTB4FSWJDF 涪罏ָإٕؿ؟٦ؽأד,VCFSOFUFTؙٓأة⡲䧭ծꤐծ刿 倜ָדֹ؟٦ؽأ Ӝ ؙٓأةךؔ٦زؼ٦ؚٔٝ Ӝ ؙٓأةךأ؛٦ٕ،ؐز٥أ؛٦ٕ؎ٝ Ӝ ؙٓأةךؔ٦ز،حفر٦ز /PEPXOUJNF
ٗ٦ؚٔٝ،حفر٦ز
,VCFSOFUFTBTB4FSWJDFPO,VCFSOFUFT ,VCFSOFUFTⰻ鿇ך堣腉ⵃ欽ֿׅהדծؽآطأٗآحؙך㹋 鄲ח㼔䙀דֹ Ӝ "1*ؒٝسه؎ٝزծ$36%ծ8BUDI"1* $VTUPN3FTPVSDF%FOJUJPOT Ӝ أذ٦زך㢌刿زٔؖח⹛⡲ׅ؝ٝزٗ٦ٓך㹋鄲 HJUIVCDPNLVCFSOFUFTDMJFOUHP
$VTUPN3FTPVSDF%FOJUJPOT Ӝ ⟣䠐ךٔا٦أ鷄⸇ "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
$VTUPN3FTPVSDF%FOJUJPOT Ӝ ⟣䠐ךٔا٦أ鷄⸇ "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
LVCFSOFUFT$MVTUFS WFSTJPONBTUFS3FQMJDBTXPSLFS3FQMJDBT LVCFSOFUFT UZQFNBTUFSWFSTJPOSFQMJDBT LVCFSOFUFT UZQFXPSLFSWFSTJPOSFQMJDBT NBDIJOF%FQMPZNFOU SFQMJDBTUFNQMBUFNBTUFS5FNQMBUF NBDIJOF%FQMPZNFOU SFQMJDBTUFNQMBUFXPSLFS5FNQMBUF
NBDIJOF4FU SFQMJDBTUFNQMBUFNBTUFS5FNQMBUF NBDIJOF4FU SFQMJDBTUFNQMBUFXPSLFS5FNQMBUF NBDIJOF NBDIJOF NBDIJOF NBDIJOF NBDIJOF
LVCFSOFUFT$MVTUFS WFSTJPONBTUFS3FQMJDBTXPSLFS3FQMJDBT LVCFSOFUFT UZQFNBTUFSWFSTJPOSFQMJDBT LVCFSOFUFT UZQFXPSLFSWFSTJPOSFQMJDBT NBDIJOF%FQMPZNFOU SFQMJDBTUFNQMBUFNBTUFS5FNQMBUF NBDIJOF%FQMPZNFOU SFQMJDBTUFNQMBUFXPSLFS5FNQMBUF
NBDIJOF4FU SFQMJDBTUFNQMBUFNBTUFS5FNQMBUF NBDIJOF4FU SFQMJDBTUFNQMBUFXPSLFS5FNQMBUF NBDIJOF NBDIJOF NBDIJOF NBDIJOF NBDIJOF XPSLFS3FQMJDBT̔
LVCFSOFUFT$MVTUFS WFSTJPONBTUFS3FQMJDBTXPSLFS3FQMJDBT LVCFSOFUFT UZQ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