$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes 102 - O Caminho das pedras - Parte 2
Search
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
780
Plataforma de Desenvolvimento e Hosting na Nuvem
getupcloud
0
74
Getup Case Banco do Brasil/ Meetup OpenShift SP
getupcloud
0
74
PaaS na Terra - Cloud Computig ao alcance de todos
getupcloud
0
43
OpenShift Origin Index - Semana Acadêmica Feevale
getupcloud
0
62
PaaS - OpenShift como plataforma pública
getupcloud
0
50
Escalando aplicação Python usando Getup OpenShift
getupcloud
0
87
Computação em Nuvem para Agências Digitais e Desenvolvedores
getupcloud
1
160
Other Decks in Programming
See All in Programming
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
130
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
730
GISエンジニアから見たLINKSデータ
nokonoko1203
0
170
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.3k
AIコーディングエージェント(Manus)
kondai24
0
200
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
2
500
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
2
220
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.9k
Python札幌 LT資料
t3tra
4
830
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
7
2.3k
Navigating Dependency Injection with Metro
l2hyunwoo
1
120
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
530
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
The Limits of Empathy - UXLibs8
cassininazir
1
180
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Mobile First: as difficult as doing things right
swwweet
225
10k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
250
Embracing the Ebb and Flow
colly
88
4.9k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
250
Into the Great Unknown - MozCon
thekraken
40
2.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
93
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
75
Speed Design
sergeychernyshev
33
1.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
54k
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!