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
0
72
Kubernetes 102 - O Caminho das pedras - Parte 2
Services, o loadbalancer do kubernetes!
Getup Cloud
August 23, 2018
Tweet
Share
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
74
Getup Case Banco do Brasil/ Meetup OpenShift SP
getupcloud
0
75
PaaS na Terra - Cloud Computig ao alcance de todos
getupcloud
0
44
OpenShift Origin Index - Semana Acadêmica Feevale
getupcloud
0
63
PaaS - OpenShift como plataforma pública
getupcloud
0
51
Escalando aplicação Python usando Getup OpenShift
getupcloud
0
88
Computação em Nuvem para Agências Digitais e Desenvolvedores
getupcloud
1
160
Other Decks in Programming
See All in Programming
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.5k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
Oxlintはいいぞ
yug1224
5
1.4k
MUSUBIXとは
nahisaho
0
140
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
CSC307 Lecture 07
javiergs
PRO
1
560
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
210
Apache Iceberg V3 and migration to V3
tomtanaka
0
170
Featured
See All Featured
A Tale of Four Properties
chriscoyier
162
24k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
330
Fireside Chat
paigeccino
41
3.8k
Claude Code のすすめ
schroneko
67
210k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
130
Building Adaptive Systems
keathley
44
2.9k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Balancing Empowerment & Direction
lara
5
890
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Being A Developer After 40
akosma
91
590k
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!