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
290
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KubeCon + CNCon とシアトルの歩き方(メイン:CoreDNS)
yasuhiro1711
December 27, 2018
More Decks by yasuhiro1711
See All by yasuhiro1711
ウエディングパークにおけるコンテナ化方針決定までの道のり
yasuhiro1711
1
2.8k
CAグループのウエディングパーク事例コンテナ化に向けたクラウドベンダー比較選定そしてECS?EKS?
yasuhiro1711
0
2.1k
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
Omarchy Quattro の日本語設定周り
simosako
2
140
synctest時代のhttptest Go 1.27で変わるHTTPサーバテストの裏側 / go conference2026 synctest and httptest
budougumi0617
1
2.5k
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
250
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
3
450
module Synths; end
asonas
1
130
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
140
Sigmaで作る業務アプリ
kazushiro_honma
0
110
コスト最適化の「めんどくさい」を AWS FinOps Agent でチョット楽にする
classmethod_kaz
0
300
Redmine 7.0で私が開発した新機能の狙いと背景
vividtone
1
150
クロスボーダーM&AのValue Upを支えるプロダクト開発。日米チームのハブになったプロダクトエンジニアの実践 / Product Engineering Conference 2026
genda
0
110
WAF 運用改善の承認サイクル/SRE_BizReach_MIXI_1
visional_engineering_and_design
2
420
あるけみー式LTスライド作成術
alchemy1115
1
160
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Odyssey Design
rkendrick25
PRO
2
800
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Technical Leadership for Architectural Decision Making
baasie
3
560
A Modern Web Designer's Workflow
chriscoyier
699
190k
Embracing the Ebb and Flow
colly
88
5.2k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
How to make the Groovebox
asonas
2
2.4k
Transcript
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