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
Kubernertes CRDs
Search
Pablo Fredrikson
October 17, 2019
Technology
0
270
Kubernertes CRDs
Charla que di en Nerdear.la 2019 en donde hablo de CRDs en Kubernetes.
Pablo Fredrikson
October 17, 2019
Tweet
Share
More Decks by Pablo Fredrikson
See All by Pablo Fredrikson
De 0 a SRE en un año - tech4impact 2024
pablokbs
1
270
Seguridad en Kubernetes - Nerdearla 2023
pablokbs
0
210
Qué hace un Staff+ Engineer?
pablokbs
0
110
Prácticas de Seguridad en Kubernetes
pablokbs
2
400
CI/CD - Workana
pablokbs
2
430
Cómo funciona el Algoritmo de YouTube
pablokbs
1
140
Cómo ahorrar millones de dólares con Kubernetes en Producción
pablokbs
0
880
Almacenando métrics de Prometheus a largo plazo con Thanos
pablokbs
0
720
El estado de SRE en 2020
pablokbs
2
690
Other Decks in Technology
See All in Technology
Amazon FSx for NetApp ONTAPのパフォーマンスチューニング要素をまとめてみた #cm_odyssey #devio2024
non97
0
220
データベース研修 分析向けSQL入門【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
110
ペパボのオブザーバビリティ研修2024 説明資料
kesompochy
0
1.1k
Azure AI ことはじめ
tsubakimoto_s
0
130
クラウド利用者の「責任」をどう果たす?AWSセキュリティ対策のススメ #AWSSummit
hiashisan
0
280
DevIO2024_レガシー運用からの脱却 -クラウド活用の実践事例とベストプラクティス-
jun2882
0
210
20240717_イケコパ代表Copilot_in_Teams会社でこう使ってます
ponponmikankan
2
430
エンジニア向け会社紹介資料
caddi_eng
14
230k
ここがすごいよ! AWS Systems Manager!
saichan11
0
1.8k
運用改善、不都合な真実 / 20240722-ssmjp-kaizen
opelab
17
8.4k
20240724_cm_odyssey_hibiyatech
hiashisan
0
110
累計ダウンロード数1億8000万を超えるアプリケーションプラットフォームのレガシーシステム脱却とモダン化への道
kmitsuhashi
0
120
Featured
See All Featured
Teambox: Starting and Learning
jrom
130
8.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
18
1.2k
Optimising Largest Contentful Paint
csswizardry
18
2.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
KATA
mclloyd
20
13k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
105
6.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
Web development in the modern age
philhawksworth
203
10k
Web Components: a chance to create the future
zenorocha
307
41k
Into the Great Unknown - MozCon
thekraken
20
1.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
Making Projects Easy
brettharned
111
5.7k
Transcript
Pablo Fredrikson @pablokbs CRDs en KUBERNETES
Pablo Fredrikson @pablokbs • Nerd • Lead SRE @ Invision
• 13 años con Linux / Software Libre • 5+ años con Docker • 3 años con Kubernetes en producción • 4º Nerdear.la
Kubernetes en 3 minutos - Conceptos • Pod • Nodo
/ Worker • Controller
Kubernetes en 3 minutos MASTER API server Kube Scheduler Controller
Manager Cloud Controller Manager API Kubernetes Cluster Services API Kubernetes Cluster Services API etcd deployment pod1: - container1 - container2 replicas: 3 pod2: - container3 replicas: 2 Kubelet Kubelet Kubelet P1R3 P1R1 P2R1 P1R2 P2R2
Kubernetes en 3 minutos Kubelet P2R1 Kubelet P1R2 Kubelet Kubernetes
Cluster Services API deployment pod1: - container1 - container2 replicas: 3 pod2: - container3 replicas: 2 P1R3 P1R1 P2R2 P1R3 P1R1
$ kubectl
Kubernetes resources $ kubectl get pods NAME READY STATUS RESTARTS
AGE hello-world-5847b8d4b6-fjbhv 1/1 Running 4 23d $ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE hello-world ClusterIP 10.99.2.206 <none> 8000/TCP 23d kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 100d
Extendiendo la API de Kubernetes: CRDs apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition
metadata: name: crontabs.stable.example.com spec: group: stable.example.com version: v1 scope: Namespaced names: plural: crontabs singular: crontab kind: CronTab shortNames: - ct
Extendiendo la API de Kubernetes: CRDs apiVersion: "stable.example.com/v1" kind: CronTab
metadata: name: my-new-cron-object spec: cronSpec: "* * * * /5" image: my-awesome-cron-image
Extendiendo la API de Kubernetes: CRDs $ kubectl apply -f
mycronjob.yaml $ kubectl get crontabs NAME KIND my-new-cron-object CronTab.v1.stable.example.com
Kubernetes Cluster Services API ¿Dónde está la magia? • Controller
/ Controlador $ kubectl
¿Qué hace un controlador?
demo
/PELADONERD @pablokbs ¿PREGUNTAS? slack.peladonerd.com