<p>I have a scenario where I need to deploy one pod on every node in my cluster so that it can watch certain behaviour (like, whether the pod gets created, terminated properly or not). Since, I've already one DaemonSet running inside my cluster, I wanted to add one more DaemonSet using the available config to the List resource,</p>
<pre><code>apiVersion: v1
kind: List
metadata:
  name: Daemonset-deploy
  namespace: test-ns
items:
  - kind: DaemonSet
    apiVersion: apps/v1
    metadata:
      name: DaemonSet1
      namespace: test-ns
    spec:
    &lt;add the spec here&gt;
  - kind: DaemonSet
    apiVersion: apps/v1
    metadata:
      name: DaemonSet2
      namespace: test-ns
    spec:
    &lt;add the spec for second daemonset&gt;
</code></pre>
<p>I wanted to understand whether this is the correct way to deploy two DaemonSets or not. Since, when I tried deploying the same config, the first DaemonSet came up and running but the second one didn't show up at all.</p>

NightOwl19
<p>you don't need to use list to deploy 2 daemonset. you can just create two differenet daemonset separately.
and if you need create your daemonset's pods in specific node you can just create them with the use of  <code>spec.template.spec.nodeSelector</code>  in your <code>template's spec</code>. <a href="https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#running-pods-on-select-nodes" rel="nofollow noreferrer">ref</a></p>
<p>here is the example how you are going to create two different daemonset.</p>
<pre><code>---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: DaemonSet1
  namespace: test-ns
spec:
    &lt;add the spec here&gt;
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: DaemonSet2
  namespace: test-ns
spec:
    &lt;add the spec for second daemonset&gt;
---
</code></pre>
