Update update-daemon-set.md

This commit is contained in:
Wang Jie
2017-10-23 09:46:20 +08:00
committed by zacharysarah
parent f757bb245a
commit 007c871994
@@ -22,7 +22,7 @@ This page shows how to perform a rolling update on a DaemonSet.
## DaemonSet Update Strategy ## DaemonSet Update Strategy
DaemonSet has two update strategy types : DaemonSet has two update strategy types:
* OnDelete: This is the default update strategy for backward-compatibility. With * OnDelete: This is the default update strategy for backward-compatibility. With
`OnDelete` update strategy, after you update a DaemonSet template, new `OnDelete` update strategy, after you update a DaemonSet template, new
@@ -56,7 +56,7 @@ to 1) and `.spec.minReadySeconds` (default to 0) as well.
### Step 1: Checking DaemonSet `RollingUpdate` update strategy ### Step 1: Checking DaemonSet `RollingUpdate` update strategy
First, check the update strategy of your DaemonSet, and make sure it's set to First, check the update strategy of your DaemonSet, and make sure it's set to
RollingUpdate: `RollingUpdate`:
```shell{% raw %} ```shell{% raw %}
kubectl get ds/<daemonset-name> -o go-template='{{.spec.updateStrategy.type}}{{"\n"}}' kubectl get ds/<daemonset-name> -o go-template='{{.spec.updateStrategy.type}}{{"\n"}}'