k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/hack/testdata/rollingupdate-daemonset-rv2.yaml (about)

     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: registry.k8s.io/pause:latest
    33        - name: app
    34          image: registry.k8s.io/nginx:test-cmd