From 215e7d962833642502ff462588b001338879804c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Mon, 4 May 2026 09:54:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Update=20DaemonSet=20chapter=20t?= =?UTF-8?q?o=20correctly=20remove=20spec.strategy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks @fccagou for noticing this! (Closes #684) --- slides/k8s/daemonset.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/slides/k8s/daemonset.md b/slides/k8s/daemonset.md index d65dff40..3c4f6475 100644 --- a/slides/k8s/daemonset.md +++ b/slides/k8s/daemonset.md @@ -52,7 +52,7 @@ -- Unfortunately, as of Kubernetes 1.27, the CLI cannot create daemon sets +- Unfortunately, as of Kubernetes 1.36, the CLI cannot create daemon sets -- @@ -135,7 +135,7 @@ - Or, alternatively: ```bash - sed -i "s/kind: Deployment/kind: DaemonSet" + sed -i "s/kind: Deployment/kind: DaemonSet/" ``` ] @@ -165,19 +165,18 @@ - The core of the error is: ``` - error validating data: - [ValidationError(DaemonSet.spec): - unknown field "replicas" in io.k8s.api.extensions.v1beta1.DaemonSetSpec, - ... + unknown field "spec.replicas", unknown field "spec.strategy" ``` -- - *Obviously,* it doesn't make sense to specify a number of replicas for a daemon set + (the field `spec.strategy` is also specific to Deployments) + -- -- Workaround: fix the YAML and remove the `replicas` field +- Workaround: fix the YAML and remove these fields ---