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
920
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
960
KubeCon Recap -Platform migration at Scale-
inductor
1
1.1k
コンテナビルド最新事情 2022年度版 / Container Build 2022
inductor
3
620
データベースとストレージのレプリケーション入門 / 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
1.1k
オンラインの技術カンファレンスを安定稼働させるための取り組み / SRE activity for online conference platform
inductor
1
1.4k
Kubernetesネットワーキング初級者脱出ガイド / Kubernetes networking beginner's guide
inductor
23
8.1k
Other Decks in Technology
See All in Technology
続・ソフトウェアアーキテクトのための意思決定術: Decision Readiness, Revisited — When AI Changes the Economics of Software Architecture
snoozer05
PRO
4
1.1k
Autonomous AI Lakehouse - Live AI Hubから始めるセキュアなAIデータ活用 -
oracle4engineer
PRO
3
190
なぜ東京にいる私が、新潟の技術コミュニティを運営するのか by 八雲慎之助
yakumo
0
220
視野はAIに、視座は人に / ai-for-breadth-humans-for-perspective
nkzn
6
2.8k
cdkd (CDK Direct)
gotok365
2
150
Don't write the architecture only in the prompt.
neohsu
0
310
データマネジメント × 法務で作りあげる、 freeeの新しいデータガバナンスへの軌跡
freee
PRO
3
700
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
590
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
150
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
110
AIに任せられるFlutterコードベースを作る 〜仕様をコードで表し、ハーネスで守る〜
myohei
1
630
kintoneで在庫管理システムを作るときの要件定義・設計ポイント
kai0707
0
230
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
970
BBQ
matthewcrist
90
10k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Unsuck your backbone
ammeep
672
58k
Deep Space Network (abreviated)
tonyrice
0
400
Navigating Weather and Climate Data
rabernat
0
580
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Site-Speed That Sticks
csswizardry
13
1.6k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
600
What's in a price? How to price your products and services
michaelherold
247
13k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
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の 勉強のついでに最近遊びはじめました(おうちにラックがないので・・・