Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Digital Oceanで始める お手軽Cloud Provider生活 / Cloud P...
Search
Kohei Ota
November 30, 2020
Technology
910
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Digital Oceanで始める お手軽Cloud Provider生活 / Cloud Provider 101 with Digital Ocean
Kohei Ota
November 30, 2020
More Decks by Kohei Ota
See All by Kohei Ota
CloudNative Meets WebAssembly: Exploring Wasm's Potential to Replace Containers
inductor
4
3.7k
The Cloud Native Chronicles: 10 Years of Community Growth Inside and Outside Japan
inductor
0
210
Cracking the KubeCon CfP
inductor
2
940
KubeCon Recap -Platform migration at Scale-
inductor
1
1.1k
コンテナビルド最新事情 2022年度版 / Container Build 2022
inductor
3
610
データベースとストレージのレプリケーション入門 / Intro-of-database-and-storage-replication
inductor
28
6.7k
KubeConのケーススタディから振り返る、Platform for Platforms のあり方と その実践 / Lessons from KubeCon case studies: Platform for Platforms and its practice
inductor
3
1k
オンラインの技術カンファレンスを安定稼働させるための取り組み / SRE activity for online conference platform
inductor
1
1.4k
Kubernetesネットワーキング初級者脱出ガイド / Kubernetes networking beginner's guide
inductor
23
8k
Other Decks in Technology
See All in Technology
転んだ話が背中を預ける理由になる / A_story_about_falling_down_gives_you_a_reason_to_watch_each_other_s_backs.pdf
pauli
3
330
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
880
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
240
初対面のメンバーがチームを組み、Claude Codeでゼロからサービスをリリース
mkdev10
1
110
go-sqletch
moznion
0
110
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
140
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
320
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
今こそ知りたいAmplifyGen2
mkdev10
2
160
購入ドメインでの課題と取り組み
ykagano
0
150
Lambda MicroVMsが分からなすぎたので使い所を1から考えてみた
tsukuboshi
2
430
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
130
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
480
Building AI with AI
inesmontani
PRO
1
1.3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Thoughts on Productivity
jonyablonski
76
5.4k
Six Lessons from altMBA
skipperchong
29
4.5k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
390
Transcript
Digital Oceanで始める お手軽Cloud Provider生活 inductor
じこしょうかい apiVersion: inductor.apps/v1 kind: Person metadata: name: “Kohei Ota” Twitter:
“@_inductor_” GitHub: “@inductor” org: “HPE” role: “Solutions Architect” community: “CNCF Ambassador, CloudNative Days organizer, Docker Meetup Tokyo organizer” spec: replicas: 1
DO上でSelf hosted Kubernetesを作る
モチベーション • CKS落ちた(しんどい • クラスターのセキュリティ評価用にkube-benchするのに気軽に遊べる環境がほし い • パラメーター好きにいじれてCKSと同じkubeadmベースでついでにシュッといい感 じにLBとかVolume触れるやつなんかないかな~~~? →
それを満たすやつを作った
https://github.com/inductor/ terraform-do
Digital Oceanについて
Digital Oceanについて • ニューヨークに拠点を構えるクラウドプロバイダー • IaaSを中心とした「便利なVPS」的な機能を提供するクラウドサービス ◦ 日本だとConoHaとかに近い感じの機能が多いかも? • マネージドKubernetesサービスを提供するほか、KubeConでのスポンサー、技術
ブログでの発信など外部での活躍も多い • 日本にリージョンはなくフォーラムでは何年も前から希望する声も多いがまだ実現 されていない
Digital Ocean & Kubernetes • マネージドKubernetesサービス ◦ DO Droplets(IaaS)をワーカーとしたクラスターが作れる ◦
Node poolはある(異種混合なノード構成が作りやすい ) ◦ Regional Clusterはない(シングルゾーンのみ ) ◦ 新しいバージョンへの追従がはやい! ◦ Type: Load BalancerとStorageClassがDOのマネージドサービスと連携して使える シンプルな構成で動かすには便利
Cloud Provider(Cloud Controller Manager) • クラウドとKubernetesの世界をつなげるためのコンポーネント ◦ Nodeリソースとクラウドの IaaS ◦
Serviceリソースとクラウドのネットワーク、マネージド LB • in-tree providerとしてAWS、GCPなどが実装済み ◦ 現在新しいCloud Providerを使う場合は外部プロバイダとして実装してクラウドコントローラーを動 かせばよい • Digital OceanのプロバイダはOSSで公開 ◦ https://github.com/digitalocean/digitalocean-cloud-controller-manager ◦ CSIはCSIプラグインとして別途提供 • ↑とkubeadmを組み合わせて、LBとPVCが使えるクラスターをSelf Hostedで作る
クラスター構成 • 2Core 4GB master x 1 • 4Core 8GB
worker x 3 • DO DropletsはパブリックIP、プライベートIPが1つずつ付与されるので、ノード間通 信は内部NW • Ansibleとか触る時間がなかったのでTerraformとShell scriptで実装 • Cloud ControllerとCSIを入れたらだいたいマネージドKubernetesと同じような構成 で作れて楽しかった
デモ
まとめ • DOはVPCとインフラだけのシンプルな構成なので入門しやすい • クラウドコントローラーの実装も全部OSSで分割されているので困った時に読みや すい • Terraformで作って潰すのがかんたんにできるのでkube-benchの検証とかCKSの 勉強のついでに最近遊びはじめました(おうちにラックがないので・・・