$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
KubeCon Talk 2016- Basics of Kubernetes Service...
Search
Brandon Philips
November 08, 2016
Programming
0
550
KubeCon Talk 2016- Basics of Kubernetes Service Discovery
Demo uses
https://coreos.com/kubernetes/docs/latest/network-troubleshooting.html
Brandon Philips
November 08, 2016
Tweet
Share
More Decks by Brandon Philips
See All by Brandon Philips
Node.js Workflow with Minikube and Skaffold
philips
0
270
Manage the App on Kubernetes
philips
0
350
Production Backbone Monitoring Containerized Apps
philips
0
200
KubeCon EU 2017: Dancing on the Edge of a Volcano
philips
1
790
rkt - KubeCon EU keynote - 2017
philips
1
280
FOSDEM_Keynote_2017-_.pdf
philips
0
150
Tectonic Summit Day 2 Keynote
philips
0
370
Kubernetes: Simple to Manage Anywhere (self-hosted, Tectonic upgrade demo)
philips
0
410
KubeCon Keynote 2016- Distributed Systems Simplified on Kubernetes
philips
2
570
Other Decks in Programming
See All in Programming
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
120
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
180
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
110
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
490
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
890
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
Rediscover the Console - SymfonyCon Amsterdam 2025
chalasr
2
190
クラウドに依存しないS3を使った開発術
simesaba80
0
150
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
120
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
120
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
140
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
400
Become a Pro
speakerdeck
PRO
31
5.7k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
How to build a perfect <img>
jonoalderson
0
4.6k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
190
Game over? The fight for quality and originality in the time of robots
wayneb77
1
65
Evolving SEO for Evolving Search Engines
ryanjones
0
73
Navigating Team Friction
lara
191
16k
Heart Work Chapter 1 - Part 1
lfama
PRO
3
35k
The SEO identity crisis: Don't let AI make you average
varn
0
35
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