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
610
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
80
Fragmentación, el virus que puede acabar con tu alta disponibilidad (con ejemplos para kubernetes)
agonzalezro
0
400
From source code to Kubernetes, a Continuous Deployment tale
agonzalezro
0
93
From pets to cattle, the way of Kubernetes
agonzalezro
2
590
Python, Kubernetes & friends
agonzalezro
0
450
Custom Volume Plugins
agonzalezro
1
1.2k
Docker 101
agonzalezro
4
180
Go 101 updated
agonzalezro
0
750
Kubernetes Volume Plugins: Flocker
agonzalezro
2
750
Other Decks in Technology
See All in Technology
システムとの会話から生まれる先手のDevOps
kakehashi
PRO
0
210
YOLOv10~v12
tenten0727
3
860
【2025年度新卒技術研修】100分で学ぶ サイバーエージェントのデータベース 活用事例とMySQLパフォーマンス調査
cyberagentdevelopers
PRO
4
6.5k
Micro Frontends: Necessity, Implementation, and Challenges
rainerhahnekamp
2
350
10分でわかるfreeeのQA
freee
1
12k
Spice up your notifications/try!Swift25
noppefoxwolf
2
350
プロダクト開発におけるAI時代の開発生産性
shnjtk
2
200
試験は暗記より理解 〜効果的な試験勉強とその後への活かし方〜
fukazawashun
0
340
ブラウザのレガシー・独自機能を愛でる-Firefoxの脆弱性4選- / Browser Crash Club #1
masatokinugawa
1
390
MCP Documentation Server @AI Coding Meetup #1
yyoshiki41
2
2.6k
AI Agentを「期待通り」に動かすために:設計アプローチの模索と現在地
kworkdev
PRO
2
390
「それはhowなんよ〜」のガイドライン #orestudy
77web
9
2.4k
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
390
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
The Cult of Friendly URLs
andyhume
78
6.3k
GraphQLの誤解/rethinking-graphql
sonatard
71
10k
BBQ
matthewcrist
88
9.6k
Java REST API Framework Comparison - PWX 2021
mraible
30
8.5k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
RailsConf 2023
tenderlove
30
1.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Statistics for Hackers
jakevdp
798
220k
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