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
640
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
100
Fragmentación, el virus que puede acabar con tu alta disponibilidad (con ejemplos para kubernetes)
agonzalezro
0
420
From source code to Kubernetes, a Continuous Deployment tale
agonzalezro
0
110
From pets to cattle, the way of Kubernetes
agonzalezro
2
620
Python, Kubernetes & friends
agonzalezro
0
460
Custom Volume Plugins
agonzalezro
1
1.3k
Docker 101
agonzalezro
4
200
Go 101 updated
agonzalezro
0
820
Kubernetes Volume Plugins: Flocker
agonzalezro
2
770
Other Decks in Technology
See All in Technology
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
4
1.3k
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
5
1.2k
AI時代のシステム開発者の仕事_20260328
sengtor
0
310
AIエージェント勉強会第3回 エージェンティックAIの時代がやってきた
ymiya55
0
160
OCI技術資料 : ロード・バランサ 概要 - FLB・NLB共通
ocise
4
27k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
互換性のある(らしい)DBへの移行など考えるにあたってたいへんざっくり
sejima
PRO
0
270
CREがSLOを握ると 何が変わるのか
nekomaho
0
180
SaaSの操作主体は人間からAIへ - 経理AIエージェントが目指す深い自動化
nishihira
0
120
OCI技術資料 : 証明書サービス概要
ocise
1
7.1k
AI時代のオンプレ-クラウドキャリアチェンジ考
yuu0w0yuu
0
590
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
840
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
140
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Evolving SEO for Evolving Search Engines
ryanjones
0
170
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Paper Plane
katiecoart
PRO
0
48k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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