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 101
Search
Alexandre González
March 29, 2016
Technology
0
590
Kubernetes 101
This was an internal talk made for jobandtalent.com.
You can find the source of the examples here:
Alexandre González
March 29, 2016
Tweet
Share
More Decks by Alexandre González
See All by Alexandre González
Building an Enterprise-Ready Lambda Experience
agonzalezro
0
76
Fragmentación, el virus que puede acabar con tu alta disponibilidad (con ejemplos para kubernetes)
agonzalezro
0
380
From source code to Kubernetes, a Continuous Deployment tale
agonzalezro
0
89
From pets to cattle, the way of Kubernetes
agonzalezro
2
560
Python, Kubernetes & friends
agonzalezro
0
430
Custom Volume Plugins
agonzalezro
1
1.2k
Docker 101
agonzalezro
4
170
Go 101 updated
agonzalezro
0
700
Kubernetes Volume Plugins: Flocker
agonzalezro
2
740
Other Decks in Technology
See All in Technology
Qiita埋め込み用スライド
naoki_0531
0
5.2k
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.4k
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
270
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
2
190
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
130
3年でバックエンドエンジニアが5倍に増えても破綻しなかったアーキテクチャ そして、これから / Software architecture that scales even with a 5x increase in backend engineers in 3 years
euglena1215
7
1.6k
プロダクト開発を加速させるためのQA文化の築き方 / How to build QA culture to accelerate product development
mii3king
1
280
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
270
Server-Side Engineer of LINE Sukimani
lycorp_recruit_jp
0
300
AWS環境におけるランサムウェア攻撃対策の設計
nrinetcom
PRO
0
120
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Faster Mobile Websites
deanohume
305
30k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
900
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
It's Worth the Effort
3n
183
28k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Thoughts on Productivity
jonyablonski
68
4.4k
Transcript
kubernetes 101 @agonzalezro
What's Kubernetes? "Kubernetes is an open source orchestration system for
Rocket containers for Docker containers."
None
Concepts NOTE: all the names link to their documentation.
Pod
Replication Controller
Label
Namespace
Service ClusterIP NodePort LoadBalancer
Ingress
{scheduled,}Job
Secrets
New in 1.2
DaemonSet
Deploy (β)
ConfigMap
None
One more thing
Readiness & liveness probes
DEMO! DEMO! DEMO!
AWS export AWS_DEFAULT_PROFILE=myawsprofile export KUBE_AWS_ZONE=eu-west-1c export MASTER_SIZE=m3.medium export NODE_SIZE=m3.medium ...
# config/aws/default-config.sh export KUBERNETES_PROVIDER=aws; wget -q -O - https://get.k8s.io | bash
or GKE gcloud config set project k8s-jobandtalent gcloud container clusters
get-credentials cluster-1
Cluster thingies kubectl cluster-info kubectl config view
Your first cattle kubectl run nginx --image=nginx:1.9.12 # Thanks Kelsey!
kubectl expose deployment nginx --port=80 --type=LoadBalancer
kubectl get services <<< NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes
10.3.240.1 <none> 443/TCP 25m nginx 10.3.247.144 146.148.8.48 80/TCP 1m
kubectl exec -it nginx...
Let's yamlized it cat examples/k8s/*.yml
kubectl create -f ... # Change ... for your yaml
:)
Rolling upgrade kubectl rolling-update hello-rc -f api-rc2.yml
Or... (since 1.2) # edit file kubectl replace -f ...
# where ... is your yaml
And {auto,}scaling kubectl scale rc hello-rc --replicas=5 kubectl autoscale rc
hello-rc --min=X --max=Y
Thanks! @agonzalezro