apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: daemonset
  labels:
    app: nginx
spec:
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        resources:
          limits:
            cpu: "0.4"
            memory: "128Mi"
          requests:
            cpu: "0.4"
            memory: "128Mi"
        ports:
        - containerPort: 80
