Skip to content

Commit

Permalink
docs(detach): Explain how to scale down DaemonSets
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Nickerl <[email protected]>
  • Loading branch information
hnicke authored and derekbit committed Oct 16, 2024
1 parent ac60fc6 commit 13de839
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 42 deletions.
13 changes: 10 additions & 3 deletions content/docs/1.5.0/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.1/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.2/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.3/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.4/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.5/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.5.6/volumes-and-nodes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.6.0/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.6.1/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.6.2/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.6.3/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.7.0/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.7.1/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down
13 changes: 10 additions & 3 deletions content/docs/1.8.0/nodes-and-volumes/volumes/detaching-volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Edit the statefulset with `kubectl edit statefulset/<name>`.
Set `.spec.replicas` to `0`.

#### DaemonSet
There is no way to suspend this workload.

Delete the daemonset with `kubectl delete ds/<name>`.
Edit the daemonset with `kubectl edit ds/<name>`.

Add a nodeSelector to the pod spec:
```yaml
spec:
template:
spec:
nodeSelector:
no-schedule: "true"
```
#### Pod
Delete the pod with `kubectl delete pod/<name>`.
Expand Down

0 comments on commit 13de839

Please sign in to comment.