Skip to content

Commit 9bb8763

Browse files
authored
Merge pull request #16153 from MicrosoftDocs/sethmanheim-patch-1
Fix YAML
2 parents 63e9501 + fcdbf0f commit 9bb8763

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

AKS-Hybrid/create-daemonsets.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ You describe a DaemonSet by using a YAML file, and then create it using the `kub
4444
The following example describes the features of a DaemonSet configuration file using an nginx image:
4545

4646
```yaml
47-
apiVersion: apps/v1
48-
kind: DaemonSet
49-
metadata:
50-
labels:
51-
app: nginx
52-
name: example-daemon
53-
spec:
47+
---
48+
apiVersion: apps/v1
49+
kind: DaemonSet
50+
metadata:
51+
labels:
52+
app: nginx
53+
name: example-daemon
54+
spec:
5455
template:
55-
metadata:
56+
metadata: null
5657
labels:
57-
app: nginx
58-
spec:
59-
containers:
60-
-name: nginx
61-
image: nginx
58+
app: nginx
59+
containers: null
60+
name: nginx
61+
image: nginx
6262
```
6363
6464
To view the current state of the DaemonSet, use the `kubectl describe` command (for example, `kubectl describe daemonset example-daemon`).

0 commit comments

Comments
 (0)