From 0a2879e1a5754df46dc6ee5514945c5abe26ea8e Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sat, 1 Jun 2019 20:05:12 -0500 Subject: [PATCH 1/3] Deleting a static pod doesn't really delete it --- slides/k8s/staticpods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/k8s/staticpods.md b/slides/k8s/staticpods.md index 4c4a784a..e95b0840 100644 --- a/slides/k8s/staticpods.md +++ b/slides/k8s/staticpods.md @@ -104,7 +104,7 @@ - We can `kubectl delete` a static pod ... - ... But the kubelet will restart it immediately + ... But the kubelet will re-mirror it immediately - Static pods can be selected just like other pods From 57aa25fda0385aa1ddfb8d2e5de32f87b6b67eed Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sun, 2 Jun 2019 09:57:04 -0500 Subject: [PATCH 2/3] tweaks --- slides/k8s/podsecuritypolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/k8s/podsecuritypolicy.md b/slides/k8s/podsecuritypolicy.md index a8dd9f98..90f542d1 100644 --- a/slides/k8s/podsecuritypolicy.md +++ b/slides/k8s/podsecuritypolicy.md @@ -586,7 +586,7 @@ class: extra-details - Our cluster is currently broken - (we can't create pods in kube-system, default, ...) + (we can't create pods in namespaces kube-system, default, ...) - We need to either: From 36be4eaa9f3a8fab17d734993f96bfea0fd91fe1 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sun, 2 Jun 2019 10:15:18 -0500 Subject: [PATCH 3/3] Disable dynamic provisioning if necessary --- slides/k8s/local-persistent-volumes.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/slides/k8s/local-persistent-volumes.md b/slides/k8s/local-persistent-volumes.md index b7718bd0..b2f86387 100644 --- a/slides/k8s/local-persistent-volumes.md +++ b/slides/k8s/local-persistent-volumes.md @@ -32,6 +32,30 @@ --- +## If we have a dynamic provisioner ... + +- The labs in this section assume that we *do not* have a dynamic provisioner + +- If we do have one, we need to disable it + +.exercise[ + +- Check if we have a dynamic provisioner: + ```bash + kubectl get storageclass + ``` + +- If the output contains a line with `(default)`, run this command: + ```bash + kubectl annotate sc storageclass.kubernetes.io/is-default-class- --all + ``` + +- Check again that it is no longer marked as `(default)` + +] + +--- + ## Work in a separate namespace - To avoid conflicts with existing resources, let's create and use a new namespace @@ -50,7 +74,7 @@ ] -.warning[Make sure to call that namespace `orange`, because that name is hardcoded in the YAML files.] +.warning[Make sure to call that namespace `orange`: it is hardcoded in the YAML files.] ---