k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/test/integration/scheduler_perf/config/pod-with-node-inclusion-policy.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    generateName: spreading-pod-with-node-inclusion-policy-
     5    labels:
     6      foo: bar
     7  spec:
     8    containers:
     9    - image: registry.k8s.io/pause:3.9
    10      name: pause
    11      ports:
    12      - containerPort: 80
    13      resources:
    14        limits:
    15          cpu: 100m
    16          memory: 500Mi
    17        requests:
    18          cpu: 100m
    19          memory: 500Mi
    20    topologySpreadConstraints:
    21      - maxSkew: 1
    22        topologyKey: kubernetes.io/hostname
    23        whenUnsatisfiable: DoNotSchedule
    24        NodeAffinityPolicy: Honor
    25        NodeTaintsPolicy: Honor
    26        labelSelector:
    27          matchLabels:
    28            foo: bar