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
Kubernetes 102 - O Caminho das pedras - Parte 2
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Getup Cloud
August 23, 2018
Programming
73
0
Share
Kubernetes 102 - O Caminho das pedras - Parte 2
Services, o loadbalancer do kubernetes!
Getup Cloud
August 23, 2018
More Decks by Getup Cloud
See All by Getup Cloud
Kubernetes 101 - O Caminho das pedras - Parte 1
getupcloud
1
790
Plataforma de Desenvolvimento e Hosting na Nuvem
getupcloud
0
75
Getup Case Banco do Brasil/ Meetup OpenShift SP
getupcloud
0
78
PaaS na Terra - Cloud Computig ao alcance de todos
getupcloud
0
45
OpenShift Origin Index - Semana Acadêmica Feevale
getupcloud
0
63
PaaS - OpenShift como plataforma pública
getupcloud
0
52
Escalando aplicação Python usando Getup OpenShift
getupcloud
0
89
Computação em Nuvem para Agências Digitais e Desenvolvedores
getupcloud
1
160
Other Decks in Programming
See All in Programming
Making the RBS Parser Faster
soutaro
0
570
Programming with a DJ Controller — not vibe coding
m_seki
3
480
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
120
AIエージェントで業務改善してみた
taku271
0
550
GitHubCopilotCLIをはじめよう.pdf
htkym
0
290
10 Tips of AWS ~Gen AI on AWS~
licux
5
480
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
500
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
260
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
180
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
290
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
320
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
170
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Test your architecture with Archunit
thirion
1
2.2k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
How GitHub (no longer) Works
holman
316
150k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
540
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
350
Transcript
@juniorjbn
[email protected]
KUBERNETES - 102 Kubernetes it's not a Big
Deal. It's like the old infrastructure but without the old :D
João Brito @juniorjbn
[email protected]
Advocate/Sysadmin Getup Cloud
SVC Overview • Discovery • Balancing Remember • Readiness •
Liveness • ExecAction • TCPSocketAction • HTTPGetAction SVC
Service • Define ◦ Label Selector ◦ REST object kind:
Service apiVersion: v1 metadata: name: my-service spec: selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 $ kubectl -n demo run hello-cloud --image juniorjbn/php-demo:1 --port 8080 $ kubectl -n demo expose deployment hello-cloud --port=80 --target-port=8080 --type=LoadBalancer
Service Multi-port • Define ◦ Label ◦ REST object ◦
Name kind: Service apiVersion: v1 metadata: name: my-service spec: selector: app: MyApp ports: - name: http protocol: TCP port: 80 targetPort: 9376 - name: https protocol: TCP port: 443 targetPort: 9377
HeadLess Service • What? ◦ External ◦ Manual kind: Endpoints
apiVersion: v1 metadata: name: my-service subsets: - addresses: - ip: 1.2.3.4 ports: - port: 9376 kind: Service apiVersion: v1 metadata: name: my-service spec: ports: - protocol: TCP port: 80 targetPort: 9376
Proxy-Mode Processos $ ps aux | grep kube-proxy $ journalctl
$ tail -f /var/log/kube-proxy.log Regras $ Kubectl -n demo get pods -o wide $ gcloud compute ssh <node> --zone <zone> $ iptables-save | grep hello
Service Type • ClusterIP ◦ Internal IP • NodePort ◦
NodeIP:NodePort • LoadBalancer ◦ ProviderAPI • ExternalName ◦ CNAME • ExternalIPs kind: Service apiVersion: v1 metadata: name: my-service spec: selector: app: MyApp ports: - name: http protocol: TCP port: 80 targetPort: 9376 externalIPs: - 80.11.12.10
Demo - Front + Back Colocar app no ar no
cluster criado: • BACKEND • $ kubectl create -f https://k8s.io/examples/service/access/hello.yaml • $ kubectl create -f https://k8s.io/examples/service/access/hello-service.yaml • FRONTEND • $ kubectl create -f https://k8s.io/examples/service/access/frontend.yaml • $ kubectl get service frontend --watch
Special Tks to: My Family My Team kubernetes.io Tks a
lot! Vocês são TOP!