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
KubeCon + CNCon とシアトルの歩き方(メイン:CoreDNS)
Search
yasuhiro1711
December 27, 2018
Technology
300
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KubeCon + CNCon とシアトルの歩き方(メイン:CoreDNS)
yasuhiro1711
December 27, 2018
Transcript
19 slides
KubeCon + CNCon と シアトルの歩き方 (メイン:CoreDNS) @yasuhiro1711 KubeCon+CNCon NA 2018 Recap!!
急遽、本日参戦を決めたため、 コンテンツ不十分なところが あるかもしれません。 ご了承ください!
自己紹介 @yasuhiro1711 でやってます。 ・SREやってます。 ・ウエディングパーク所属。(サイバーエージェント グループ)
本日の内容 ・KubeCon 紹介 ・セッション→ CoreDNS紹介 ・シアトルの歩き方
KubeCon + CNCon
セッション
CoreDNSについて Understanding CoreDNS in Kubernetes - John Belamaric, Google; Cricket
Liu & Francois Tur, Infoblox Switching the Engine (DNS) in Kubernetes: Benchmarks and Possibilities - Michael Grosser, Okkur Labs & Jake Sanders, Google ここから、幾つかをピックアップしてまとめてきました。 (この先で利用している図表はこのプレゼンのものを引用しています。)
CoreDNSとは? ・Golang製の軽量なフレキシブルDNSサーバ ・CNCFプロジェクトの一つ ・プラグインベースのアーキテクチャーで、拡張性高い。 ・ DNS, DNS over TLS (DoT),
DNS over gRPC のサポート ・ Caddy HTTP server (“Caddy DNS”) が元。
CoreDNSとは? ・kubernetes1.11 からGenerally available ・kubernetes1.13 よりデフォルトDNS ・AWS Route53 などのクラウドベンダーとのインテグレーションが可能 ・Prometheus
metricsもサポート
CoreDNS (vs. kube-dns) ・プラグインで機能拡張が容易。 ・34のプラグインが存在。新規も続々開発されている。 ・実行ファイル1つ、プロセス1つで動く。 ・kube-dnsで解決できなかったセキュリティ課題の解決ができた。 ・めちゃ良い性能(ベンチマーク)
CoreDNS vs. kube-dns メモリ
CoreDNS vs. kube-dns クエリー
CoreDNS プラグイン
CoreDNS のKubernetes 関連プラグイン ・Autopathオプション →外部の名前解決の待ち時間短縮機能 ・K8s External ・Kubernetai ・Federation
k8sでの名前解決の問題 Kubernetes は長いDNSの検索パスを持っている。 - <namespace>.svc.cluster.local - svc.cluster.local - cluster.local -
次に、検索パスへ行く なので外部を名前解決すると、以下のように長くなる。 dnstools# host -v google.com Trying "google.com.default.svc.cluster.local" Trying "google.com.svc.cluster.local" Trying "google.com.cluster.local" Trying "google.com" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62752 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
Autopath の機能 要件:kubernetes pods verified + autopath有効 CoreDNSがどの名前空間にpodsがいるかを把握し、CoreDNS内部で判断が入るため、待ち時間が短縮される。 dnstools# host
-v google.com Trying "google.com.default.svc.cluster.local" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38177 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;google.com.default.svc.cluster.local. IN A ;; ANSWER SECTION: google.com.default.svc.cluster.local. 13 IN CNAME google.com. google.com. 13 IN A 172.217.9.142
Autopath 結果
シアトルの歩き方 (資料では省略)
ありがとうございました @yasuhiro1711
More Decks by yasuhiro1711
See All by yasuhiro1711
ウエディングパークにおけるコンテナ化方針決定までの道のり
yasuhiro1711
1
2.8k
CAグループのウエディングパーク事例コンテナ化に向けたクラウドベンダー比較選定そしてECS?EKS?
yasuhiro1711
0
2.2k
KubeCon NA 2018 RecapCI/CD session selects @yasuhiro1711
yasuhiro1711
0
190
初心者がk8sでWPを運用するまでの学習事例
yasuhiro1711
5
1.4k
成果を出し続けるエンジニア組織を目指してやってること
yasuhiro1711
7
39k
Other Decks in Technology
See All in Technology
AIエージェントのアーキテクチャ設計
nsatoh
0
610
ポケモンバトルのAIエージェント
koji_kawamura
0
330
Is the Website Dying?
miriamschwab
0
300
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
380
PR 生成AIガバナンスの全体像がわかる本
yoshimura_datam
0
140
gradle-best-practices 使ってみた
mikanichinose
0
240
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
4
2.3k
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
150
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
蓄積をどう解釈すれば基盤整備に踏み出せるか — 10 年目のクラウドサインの場合
bengo4com
1
140
Kubernetes, Agones, WebRTC, GPU で作る クラウドゲーミング基盤を本番運用に乗せるまで
vivion
1
320
Platform Engineering をベースとした Agentic Software Factory の実践
110y
3
1.1k
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
620
Exploring anti-patterns in Rails
aemeredith
4
590
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Documentation Writing (for coders)
carmenintech
77
5.7k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
760
Scaling GitHub
holman
464
140k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k