You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 120_kubernetes/ci_cd/slides.md
+42-1
Original file line number
Diff line number
Diff line change
@@ -166,14 +166,30 @@ Force pods onto specific nodes
166
166
167
167
Force pods on the same node or on different nodes
168
168
169
-
### Tains / tolerations
169
+
### Taints / tolerations
170
170
171
171
Reserve nodes for specific pods (taints)
172
172
173
173
Pods must accept taints (tolerations)
174
174
175
175
---
176
176
177
+
## Custom scheduling and autoscaling
178
+
179
+
### Autoscaling
180
+
181
+
Using custom metrics for HPA [](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics)
182
+
183
+
NodeAffinity can use labels provided by cloud / hosting provider
Power Efficiency Aware Kubernetes Scheduler (PEAKS) [](https://github.com/sustainable-computing-io/peaks)
190
+
191
+
---
192
+
177
193
## Lessons Learnt 1/
178
194
179
195
### Avoid `kubectl create <resource>`
@@ -283,6 +299,8 @@ kubectl delete pod \
283
299
284
300
### Use plaintext in `Secret`
285
301
302
+
Secret expect base64-encoded fields under `data`
303
+
286
304
Templating becomes easier when inserting plaintext
287
305
288
306
```yaml
@@ -317,6 +335,29 @@ Let bots do the work for you
317
335
318
336
Doing updates regularly is easier
319
337
338
+
Pull/merge requests for every updates
339
+
320
340
Automerge for patches can help stay on top of things
321
341
322
342
Automated tests help decide whether an update is safe
343
+
344
+
---
345
+
346
+
## Lessons Learnt 7/7
347
+
348
+
### Deployment history
349
+
350
+
Deployments keep history of changes
351
+
352
+
```bash
353
+
kubectl rollout history deployment/my-nginx
354
+
```
355
+
356
+
### Populating `CHANGE-CAUSE`
357
+
358
+
Add annotation `kubernetes.io/change-cause` before the change [](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#checking-rollout-history-of-a-deployment)
359
+
360
+
```bash
361
+
kubectl annotate deployment/my-nginx \
362
+
kubernetes.io/change-cause="image updated to 1.24.0"
0 commit comments