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 ---