Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
KubeCon Talk 2016- Basics of Kubernetes Service...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Brandon Philips
November 08, 2016
Programming
560
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KubeCon Talk 2016- Basics of Kubernetes Service Discovery
Demo uses
https://coreos.com/kubernetes/docs/latest/network-troubleshooting.html
Brandon Philips
November 08, 2016
More Decks by Brandon Philips
See All by Brandon Philips
Node.js Workflow with Minikube and Skaffold
philips
0
300
Manage the App on Kubernetes
philips
0
370
Production Backbone Monitoring Containerized Apps
philips
0
230
KubeCon EU 2017: Dancing on the Edge of a Volcano
philips
1
860
rkt - KubeCon EU keynote - 2017
philips
1
310
FOSDEM_Keynote_2017-_.pdf
philips
0
170
Tectonic Summit Day 2 Keynote
philips
0
410
Kubernetes: Simple to Manage Anywhere (self-hosted, Tectonic upgrade demo)
philips
0
440
KubeCon Keynote 2016- Distributed Systems Simplified on Kubernetes
philips
2
590
Other Decks in Programming
See All in Programming
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
200
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
610
さぁV100、メモリをお食べ・・・
nilpe
0
160
AI時代のUIはどこへ行く?その2!
yusukebe
22
7.6k
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.4k
Agentic UI
manfredsteyer
PRO
0
200
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
210
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
230
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
280
A2UI という光を覗いてみる
satohjohn
1
160
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.6k
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
330
The SEO identity crisis: Don't let AI make you average
varn
0
510
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Agile that works and the tools we love
rasmusluckow
331
22k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Statistics for Hackers
jakevdp
799
230k
Music & Morning Musume
bryan
47
7.3k
RailsConf 2023
tenderlove
30
1.5k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Transcript
Brandon Philips @brandonphilips |
[email protected]
| coreos.com Kubernetes Service Discovery
Fundamentals and Extensions
90+ Projects on GitHub, 1,000+ Contributors OPEN SOURCE Secure solutions,
support plans, training + more ENTERPRISE CoreOS is Running the World’s Containers Linux
Examples minikube
- Use the quickstart tutorial - Or try out rkt
quickstart - Ensure you get kubectl work: kubectl get nodes NAME STATUS AGE minikube Ready 6m minikube
Overview Label Service Discovery
Fundamental API Server - API Server is bedrock of discovery
- Available at well-known URL - Protected by TLS and accounts
Fundamental Labels
Fundamental Labels
kubectl run nginx --image=nginx -l app=nginx kubectl get replicaset -l
app=nginx kubectl get pods -l app=nginx -w Fundamental Labels
Fundamental Labels
kubectl expose deployment nginx --port 80 --type=NodePort minikube service nginx
Fundamental Labels
Overview Above the API
- Configured statically in kubelet (--cluster-dns) - Injected into /etc/resolv.conf
of containers - Meta alert: DNS Service IP backed by Kubernetes - kubectl describe service -n kube-system kube-dns DNS Add-on
Name: kube-dns Namespace: kube-system Labels: k8s-app=kube-dns Selector: k8s-app=kube-dns Type: ClusterIP
IP: 10.0.0.10 Port: dns 53/UDP Endpoints: 10.1.0.3:53 kube-dns the service
DNS Add-on Basics API Server kube-dns Service 10.0.0.10 dig +vc
-p @10.0.0.10 kube-dns.kube-system.svc.cluster.local ;; QUESTION SECTION: ;kube-dns.kube-system.svc.cluster.local. IN A ;; ANSWER SECTION: kube-dns.kube-system.svc.cluster.local. 30 IN A 10.0.0.10
Copy/paste one-liner to forward DNS to localhost $ dig +vc
-p 5300 @127.0.0.1 cluster.local kube-dns proxy to localhost
$ dig A etcd-0000.default.cluster.local etcde-0001.default.svc.cluster.local. 30 IN A 10.0.0.40 $
dig SRV _client._tcp.etcd-0000.default.cluster.local IN SRV 10 100 2379 etcde-0001.default.svc.cluster.local. DNS Add-on - Records
$ dig A etcd-0000 IN A 10.0.0.40 $ dig A
etcd-0000.default IN A 10.0.0.40 DNS Add-on - Search
Full docs are comprehensive I helped write them :) http://kubernetes.io/docs/admin/dns/
kube-dns full docs
tectonic.com/summit - @TectonicSummit December 12 & 13 2016 - New
York City
Thank you! Brandon Philips @brandonphilips |
[email protected]
| tectonic.com We’re
hiring in all departments! Email:
[email protected]
Positions: coreos.com/ careers