mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-06 08:56:35 +00:00
🐞 Update DaemonSet chapter to correctly remove spec.strategy
Thanks @fccagou for noticing this! (Closes #684)
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
<!-- ##VERSION## -->
|
||||
|
||||
- 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
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user