From bb21f9bbc944f62694212e0609d84652aba08e62 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sat, 8 Sep 2018 08:45:16 -0500 Subject: [PATCH] Improvements following Bridget's feedback --- slides/k8s/build-with-kaniko.md | 2 ++ slides/k8s/configuration.md | 4 ++++ slides/k8s/owners-and-dependents.md | 20 ++++++++++++++++++++ slides/k8s/portworx.md | 2 +- slides/k8s/statefulsets.md | 4 ++-- 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/slides/k8s/build-with-kaniko.md b/slides/k8s/build-with-kaniko.md index b6a006a9..b3245f91 100644 --- a/slides/k8s/build-with-kaniko.md +++ b/slides/k8s/build-with-kaniko.md @@ -190,6 +190,8 @@ spec: - The ultimate building tool will probably be [Jessica Frazelle](https://twitter.com/jessfraz)'s [img](https://github.com/genuinetools/img) builder + (it depends on upstream changes that are not in Kubernetes 1.11.2 yet) + But ... is it all about [speed](https://github.com/AkihiroSuda/buildbench/issues/1)? (No!) --- diff --git a/slides/k8s/configuration.md b/slides/k8s/configuration.md index 6b25668f..4b71b271 100644 --- a/slides/k8s/configuration.md +++ b/slides/k8s/configuration.md @@ -247,6 +247,10 @@ - as holding individual configuration parameters +*Note: to hold sensitive information, se can use "Secrets", which +are another type of resource behaving very much like configmaps. +We'll cover them just after!* + --- ## Configmaps storing entire files diff --git a/slides/k8s/owners-and-dependents.md b/slides/k8s/owners-and-dependents.md index e161f628..7a7c2fc2 100644 --- a/slides/k8s/owners-and-dependents.md +++ b/slides/k8s/owners-and-dependents.md @@ -116,6 +116,26 @@ so the lines should not be indented (otherwise the indentation will insert space --- +class: extra-details + +## When and why would we have orphans? + +- If we remove an owner and explicitly instruct the API to orphan dependents + + (like on the previous slide) + +- If we change the labels on a dependent, so that it's not selected anymore + + (e.g. change the `run: yanginx` in the pods of the previous example) + +- If a deployment tool that we're using does these things for us + +- If there is a serious problem within API machinery or other components + + (i.e. "this should not happen") + +--- + ## Finding orphan objects - We're going to output all pods in JSON format diff --git a/slides/k8s/portworx.md b/slides/k8s/portworx.md index db6eae29..001ea848 100644 --- a/slides/k8s/portworx.md +++ b/slides/k8s/portworx.md @@ -92,7 +92,7 @@ - For simplicity, we are going to use the latter option - (but we could use the Consul service that we deployed earlier, too) + (but if we have deployed Consul or etcd, we can use that, too) --- diff --git a/slides/k8s/statefulsets.md b/slides/k8s/statefulsets.md index d9564d9f..b997c1c1 100644 --- a/slides/k8s/statefulsets.md +++ b/slides/k8s/statefulsets.md @@ -169,7 +169,7 @@ spec: - And arbitrary paramters for that provisioner - (replications levels, type of disk ... anything relevant!) + (replication levels, type of disk ... anything relevant!) - It is necessary to define a Storage Class to use [dynamic provisioning](https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/) @@ -371,7 +371,7 @@ nodes and encryption of gossip traffic) were removed for simplicity. - That's because we don't have a storage provider yet - (except if you're running this on your own on a full-featured cluster) + (except if you're running this on your own and your cluster has one) - What happens if we lose a pod?