From 827d10dd4952915857ce792559b0a6d95de3de28 Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Tue, 10 Apr 2018 15:48:54 -0500 Subject: [PATCH] Clarifying ambiguous labels on pods --- slides/kube/daemonset.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/slides/kube/daemonset.md b/slides/kube/daemonset.md index bf2e5cb1..cb5347db 100644 --- a/slides/kube/daemonset.md +++ b/slides/kube/daemonset.md @@ -179,6 +179,7 @@ Wait ... Now, can it be *that* easy? -- We have both `deploy/rng` and `ds/rng` now! +(Though of course a bug prevents them from being labeled as such!) -- @@ -194,13 +195,38 @@ And one too many pods... - We still have the old `rng` *deployment* +``` +NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE +rng 1 1 1 1 11m +``` + - But now we have the new `rng` *daemonset* as well +``` +NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE +rng 2 2 2 2 2 11s +``` + +--- + +## Too many pods + - If we look at the pods, we have: - - *one pod* for the deployment + - *one pod* for the deployment (named `rng-xxxxxxxxxx-yyyyy`) - - *one pod per node* for the daemonset + - *one pod per node* for the daemonset (named `rng-yyyyy`) + +``` +NAME READY STATUS RESTARTS AGE +rng-54f57d4d49-7pt82 1/1 Running 0 11m +rng-b85tm 1/1 Running 0 11s +rng-hfbrr 1/1 Running 0 11s +``` + +-- + +.footnote[.warning[Yes, our three-node cluster is only running two pods for the daemonset! The master node does not run such pods.]] ---