apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: hello-daemonset spec: selector: matchLabels: name: hello-daemonset (1) template: metadata: labels: name: hello-daemonset (2) spec: nodeSelector: (3) type: infra containers: - image: openshift/hello-openshift imagePullPolicy: Always name: registry ports: - containerPort: 80 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log serviceAccount: default terminationGracePeriodSeconds: 10
1 | The label selector that determines which pods belong to the daemonset. |
2 | The pod template’s label selector. Must match the label selector above. |
3 | The node selector that determines on which nodes pod replicas should be deployed. |