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
930
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
Transcript
12 slides
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の 勉強のついでに最近遊びはじめました(おうちにラックがないので・・・
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
220
Cracking the KubeCon CfP
inductor
2
970
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
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
110
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
920
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
220
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
160
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
230
閉域網でのAPI公開の選択肢全部比較!
takano0131
5
700
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
390
Well, that’s weird…
csswizardry
1
200
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
120
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
200
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
270
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
1
910
Featured
See All Featured
Tell your own story through comics
letsgokoyo
1
1.1k
Accessibility Awareness
sabderemane
1
310
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Product Roadmaps are Hard
iamctodd
55
13k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
760
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
540
sira's awesome portfolio website redesign presentation
elsirapls
0
520
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Facilitating Awesome Meetings
lara
57
7.2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490