Add an yaml example in Writing a DaemonSet Spec (#4553)
* Add yaml example in DeamonSet doc * Update daemonset.md * use code include instead of duplicate in md * remove redundant download link
This commit is contained in:
@@ -26,6 +26,17 @@ different flags and/or different memory and cpu requests for different hardware
|
||||
|
||||
## Writing a DaemonSet Spec
|
||||
|
||||
### Create a DeamonSet
|
||||
|
||||
You can describe a DeamonSet in a YAML file. For example, the deamonset.yaml file below describes a DeamonSet that runs the fluentd-elasticsearch Docker image:
|
||||
|
||||
{% include code.html language="yaml" file="deamonset.yaml" ghlink="/docs/concepts/workloads/controllers/deamonset.yaml" %}
|
||||
|
||||
* Create a DeamonSet based on the YAML file:
|
||||
```
|
||||
kubectl create -f deamonset.yaml
|
||||
```
|
||||
|
||||
### Required Fields
|
||||
|
||||
As with all other Kubernetes config, a DaemonSet needs `apiVersion`, `kind`, and `metadata` fields. For
|
||||
|
||||
Reference in New Issue
Block a user