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
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
380
Production Backbone Monitoring Containerized Apps
philips
0
240
KubeCon EU 2017: Dancing on the Edge of a Volcano
philips
1
890
rkt - KubeCon EU keynote - 2017
philips
1
320
FOSDEM_Keynote_2017-_.pdf
philips
0
180
Tectonic Summit Day 2 Keynote
philips
0
420
Kubernetes: Simple to Manage Anywhere (self-hosted, Tectonic upgrade demo)
philips
0
450
KubeCon Keynote 2016- Distributed Systems Simplified on Kubernetes
philips
2
590
Other Decks in Programming
See All in Programming
「人を評価する AI」の設計と実装
ryoyanara
0
240
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
480
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
230
FastAPI の並行処理モデルを完全に理解する
hoto17296
8
2.9k
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
300
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
120
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
1.8k
Flow は今どうなっているか
mizdra
PRO
0
700
引き算の組織 ― アウトカムとAIに全振りするために辞めたこと ― / Organization by Subtraction
hirokiyamamoto14
PRO
0
290
実装をデザインガイドラインに追従させるための取り組み / 260731-dip-mosh-design-system
dachi023
0
7.7k
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
510
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
110
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
900
Bash Introduction
62gerente
615
220k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
480
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
210
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Amusing Abliteration
ianozsvald
1
260
4 Signs Your Business is Dying
shpigford
187
23k
Git: the NoSQL Database
bkeepers
PRO
432
67k
The Spectacular Lies of Maps
axbom
PRO
1
940
Site-Speed That Sticks
csswizardry
13
1.5k
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