The fastest hack is to create a deployment file using
kubectl create deploy nginx --image=nginx --dry-run -o yaml > nginx-ds.yaml
Now replace the line kind: Deployment with kind: DaemonSet in nginx-ds.yaml and remove the line replicas: 1
However, the following command will give a clean daemonset manifest considering that “apps/v1” is the api used for DaemonSet in your cluster
kubectl create deploy nginx --image=nginx --dry-run -o yaml | \
sed '/null\|{}\|replicas/d;/status/,$d;s/Deployment/DaemonSet/g' > nginx-ds.yaml
Kubernetes Advance Tutorials Deepdive Part-1 Session -1 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -2 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -3 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -4 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -5 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -6 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -7 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -8 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -9 — By DevOpsSchool
Kubernetes Advance Tutorials Deepdive Part-1 Session -10 — By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024