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 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
310
Manage the App on Kubernetes
philips
0
390
Production Backbone Monitoring Containerized Apps
philips
0
250
KubeCon EU 2017: Dancing on the Edge of a Volcano
philips
1
900
rkt - KubeCon EU keynote - 2017
philips
1
330
FOSDEM_Keynote_2017-_.pdf
philips
0
190
Tectonic Summit Day 2 Keynote
philips
0
430
Kubernetes: Simple to Manage Anywhere (self-hosted, Tectonic upgrade demo)
philips
0
460
KubeCon Keynote 2016- Distributed Systems Simplified on Kubernetes
philips
2
600
Other Decks in Programming
See All in Programming
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
440
Next.js: The final boss of Web Performance
guaca
0
280
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
650
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
250
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.9k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
We Have a Design System, Now What?
morganepeng
55
8.4k
How GitHub (no longer) Works
holman
316
150k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
How to make the Groovebox
asonas
2
2.5k
Building the Perfect Custom Keyboard
takai
2
910
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