...
1apiVersion: apps/v1
2kind: DaemonSet
3metadata:
4 name: bind
5 labels:
6 service: bind
7spec:
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: registry.k8s.io/pause:latest
33 - name: app
34 image: registry.k8s.io/nginx:test-cmd
View as plain text