...

Text file src/k8s.io/kubernetes/test/integration/scheduler_perf/config/pod-with-preferred-topology-spreading.yaml

Documentation: k8s.io/kubernetes/test/integration/scheduler_perf/config

     1apiVersion: v1
     2kind: Pod
     3metadata:
     4  generateName: spreading-pod-
     5  labels:
     6    color: blue
     7spec:
     8  topologySpreadConstraints:
     9    - maxSkew: 5
    10      topologyKey: topology.kubernetes.io/zone
    11      whenUnsatisfiable: ScheduleAnyway
    12      labelSelector:
    13        matchLabels:
    14          color: blue
    15  containers:
    16  - image: registry.k8s.io/pause:3.9
    17    name: pause
    18    ports:
    19    - containerPort: 80
    20    resources:
    21      limits:
    22        cpu: 100m
    23        memory: 500Mi
    24      requests:
    25        cpu: 100m
    26        memory: 500Mi

View as plain text