<p>I am trying to execute this rolling update example in v1.6.2 cluster. my kubectl command giving this error message.</p>

<pre><code>Error from server: json: cannot unmarshal string into Go value of type map[string]interface {}
</code></pre>

<p>Here is the YMAL file from this page: <a href="https://www.mirantis.com/blog/scaling-kubernetes-daemonsets/" rel="noreferrer">https://www.mirantis.com/blog/scaling-kubernetes-daemonsets/</a></p>

<pre><code>apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: frontend
spec:
  updateStrategy: RollingUpdate
    maxUnavailable: 1
    minReadySeconds: 0
  template:
    metadata:
      labels:
        app: frontend-webserver
    spec:
      nodeSelector:
        app: frontend-node
      containers:
        - name: webserver
          image: nginx
          ports:
          - containerPort: 80
</code></pre>

<p>How to resolve this error?</p>

<p>Thanks
SR</p>

<p>The <code>updateStrategy</code> appears to be incorrect:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: frontend
spec:
  updateStrategy:
    type: RollingUpdate
    maxUnavailable: 1
  template:
    metadata:
      labels:
        app: frontend-webserver
    spec:
      nodeSelector:
        app: frontend-node
      containers:
        - name: webserver
          image: nginx
          ports:
          - containerPort: 80
</code></pre>
