<p>I am running the following command on the master node, to create a daemonset on a Kubernetes cluster.</p>
<pre><code>$ kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml
</code></pre>
<p>I  think it got created successfully because the following message is shown,</p>
<pre><code>daemonset.apps/fluentd-elasticsearch created
</code></pre>
<p>But after that when I run,</p>
<pre><code>$ kubectl get daemonsets
No resources found in default namespace
</code></pre>
<p>So I tried to recreate the same but this time it shows,</p>
<pre><code>$ kubectl apply -f https://k8s.io/examples/controllers/daemonset.yaml
daemonset.apps/fluentd-elasticsearch unchanged
</code></pre>
<p>I don’t understand what is happening here. An explanation would be highly appreciated.</p>

<p>It's getting deployed in <code>kube-system</code> namespace since the deployment yaml has <code>namespace: kube-system</code></p>
<p><code>kubectl get daemonsets</code> command shows <code>daemonsets</code> from <code>default</code> namespace and hence it gives <code>No resources found</code></p>
<p>You need to add <code>-n</code> parameter in the command to check <code>daemonsets</code> created in a specific namespace such as <code>kube-system</code></p>
<pre><code>kubectl get daemonsets -n kube-system
</code></pre>
