replace deployment with replicaset

This commit is contained in:
Ricardo (XenGi) Band 2022-08-16 15:10:21 +02:00
commit b1149e70ba
Signed by: xengi
GPG key ID: 56376B6BA63CC9F7
3 changed files with 112 additions and 10 deletions

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

View file

@ -43,7 +43,7 @@ keywords: kubernetes,container,basics
- 🛋️ Environment
- 📦 Containers
- 🏡 Pods
- 🏘️ ReplicaSets
- 🏭 Deployments
- 🏪 Services
- 💾 Volumes
- 🌆 Namespaces
@ -57,7 +57,8 @@ The emojis probably make no sense, ignore them if they confuse you.
# Agenda part 2 - Advanced topics
- 🏭 Deployments
- 🏷️ Labels and 🔖 Taints
- 🏘️ ReplicaSets
- 🧰 DaemonSet
- 🗃️ StatefulSets
- 🌐 Ingress Controller
@ -65,7 +66,6 @@ The emojis probably make no sense, ignore them if they confuse you.
- 💾 Container Storage Interface (CSI)
- 🕸️ Container Network Interface (CNI)
- 👮 Network Policies
- 🃏 Custom Resources
<!-- It's ok if you zone out somewhere around here. -->
@ -114,9 +114,18 @@ Example: Simple PHP app
---
![bg right 80%](./replicaset.drawio.svg)
![bg right 80%](./deployment.drawio.svg)
# 🏘️ ReplicaSets
# 🏭 Deployment
- Manages:
- Pods
- Volumes
- Secrets
- Types:
- ReplicaSets
- DaemonSets
- StatefulSets
---
@ -136,6 +145,9 @@ Example: Simple PHP app
# 🌆 Namepaces
- Isolates group of resources
- Names need to be unique
---
# You survived, take a cookie!
@ -150,24 +162,60 @@ Let's deploy a simple web app with a volume.
---
# 🏭 Deployments
# 🏷️ Labels and 🔖 Taints
---
# 🏘️ ReplicaSets
- Maintain a stable set of replica Pods
- Pods are identical
- Good for scaling
- Finds Pods by their label 🏷️
---
# 🧰 DaemonSets
- Pods are started on every node of the cluster
- Useful for cluster wide services
---
# 🗃️ StatefulSets
- Fine control over storage
- Pods are started in order
- Pods have stable identities
- redis-1, redis-2, redis-3, ...
- Useful for clustered services
- E.g. primary pod needs to start first
---
# 🌐 Ingress Controller
- Load balancer
- Can be NGINX, HAProxy
- Different in Cloud kubernetes
- Handles HTTP(S) traffic to the cluster
- Kubernetes object: `Ingress`
- OpenShift object: `Route`
---
# 📑 Cluster DNS
- Pods: `<pod-ip-address>.<namespace-name>.pod.cluster.local`
- Services: `<service-name>.<namespace-name>.svc.cluster.local`
- Pods behind Services: `<pod-ip-address>.<service-name>.<namespace-name>.svc.cluster.local`
- /etc/resolv.conf:
```
nameserver 2001:cafe:42:1::23
search <namespace>.svc.cluster.local svc.cluster.local cluster.local
options ndots:5
```
---
# 💾 Container Storage Interface (CSI)
@ -180,10 +228,6 @@ Let's deploy a simple web app with a volume.
---
# 🃏 Custom Resource
---
# Kubernetes distribution
- 💻 On bare metal
@ -206,6 +250,7 @@ Let's deploy a simple web app with a volume.
# Still not enough?
- 🃏 Custom Resources
- 🔑 Secrets
- 📡 Control Plane
- 🔩 Operators

View file

@ -0,0 +1,57 @@
---
---
# Mechanical Keyboards
## aka how to waste more money fast 🕳️💵
---
# Agenda
- 🔍 Sizes
- 🔳 Keycaps
- 🎛️ Switches
- 🎚️ Stabilizers
- 🧠 PCBs
- 🧱 Cases
- 💦 Lube
- 🔉 Foam
---
# 🔍 Sizes
---
# 100% - Fullsize
![bg 100% left](./100percent_a.png)
![bg 100% right](./100percent_b.png)
---
# 75%
![bg 100% left](./75percent_a.png)
![bg 100% right](./75percent_b.png)
---
# 🎛️S Switche
## 🔊 Loud
- Cherry Blue, Green
## 🔉 Normal
- Cherry Brown
## 🔈 Quiet
- Cherry Red, Black, Silence
---