Not able to create the daemonset from deployment yaml file as described in one of the lab as follows:
Is anyone able to create it.
Steps given in lab are as follows:
An easy way to create a DaemonSet is to first generate a YAML file for a Deployment with the command kubectl create deployment elasticsearch --image=<http://k8s.gcr.io/fluentd-elasticsearch:1.20|k8s.gcr.io/fluentd-elasticsearch:1.20> -n kube-system --dry-run=client -o yaml > fluentd.yaml Next, remove the replicas and strategy fields from the YAML file using a text editor. Also, change the kind from Deployment to DaemonSet. Finally, create the Daemonset by running kubectl create -f fluentd.yaml