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
630
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
86
Fragmentación, el virus que puede acabar con tu alta disponibilidad (con ejemplos para kubernetes)
agonzalezro
0
410
From source code to Kubernetes, a Continuous Deployment tale
agonzalezro
0
100
From pets to cattle, the way of Kubernetes
agonzalezro
2
600
Python, Kubernetes & friends
agonzalezro
0
460
Custom Volume Plugins
agonzalezro
1
1.3k
Docker 101
agonzalezro
4
200
Go 101 updated
agonzalezro
0
780
Kubernetes Volume Plugins: Flocker
agonzalezro
2
760
Other Decks in Technology
See All in Technology
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
30k
広島発!スタートアップ開発の裏側
tsankyo
0
240
トヨタ生産方式(TPS)入門
recruitengineers
PRO
2
190
Devinを使ったモバイルアプリ開発 / Mobile app development with Devin
yanzm
0
180
AIが住民向けコンシェルジュに?Amazon Connectと生成AIで実現する自治体AIエージェント!
yuyeah
0
260
Backboneとしてのtimm2025
yu4u
4
1.4k
Browser
recruitengineers
PRO
3
260
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
2
20k
モダンフロントエンド 開発研修
recruitengineers
PRO
2
250
制約理論(ToC)入門
recruitengineers
PRO
2
250
事業価値と Engineering
recruitengineers
PRO
1
190
Amazon Bedrock AgentCore でプロモーション用動画生成エージェントを開発する
nasuvitz
6
420
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
Music & Morning Musume
bryan
46
6.7k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
The World Runs on Bad Software
bkeepers
PRO
70
11k
YesSQL, Process and Tooling at Scale
rocio
173
14k
How GitHub (no longer) Works
holman
315
140k
Bash Introduction
62gerente
614
210k
Art, The Web, and Tiny UX
lynnandtonic
302
21k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Practical Orchestrator
shlominoach
190
11k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Faster Mobile Websites
deanohume
309
31k
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