rollingupdate-daemonset-rv2.yaml 792 B

1234567891011121314151617181920212223242526272829303132333435
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: bind
  5. labels:
  6. service: bind
  7. spec:
  8. selector:
  9. matchLabels:
  10. service: bind
  11. updateStrategy:
  12. type: RollingUpdate
  13. rollingUpdate:
  14. maxUnavailable: 10%
  15. template:
  16. metadata:
  17. labels:
  18. service: bind
  19. spec:
  20. affinity:
  21. podAntiAffinity:
  22. requiredDuringSchedulingIgnoredDuringExecution:
  23. - labelSelector:
  24. matchExpressions:
  25. - key: "service"
  26. operator: "In"
  27. values: ["bind"]
  28. topologyKey: "kubernetes.io/hostname"
  29. namespaces: []
  30. containers:
  31. - name: kubernetes-pause
  32. image: k8s.gcr.io/pause:latest
  33. - name: app
  34. image: k8s.gcr.io/nginx:test-cmd