github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-topologyspreadconstraints.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: application-with-topologyspreadconstraints 5 spec: 6 components: 7 - name: busybox-runner 8 type: worker 9 properties: 10 image: busybox 11 cmd: 12 - sleep 13 - '1000' 14 traits: 15 - type: topologyspreadconstraints 16 properties: 17 constraints: 18 - topologyKey: zone 19 labelSelector: 20 matchLabels: 21 zone: us-east-1a 22 maxSkew: 1 23 whenUnsatisfiable: DoNotSchedule 24 minDomains: 1 25 nodeAffinityPolicy: Ignore 26 nodeTaintsPolicy: Ignore 27 - topologyKey: node 28 labelSelector: 29 matchExpressions: 30 - key: foo 31 operator: In 32 values: 33 - abc 34 maxSkew: 1 35 whenUnsatisfiable: ScheduleAnyway 36 minDomains: 1 37 nodeAffinityPolicy: Ignore 38 nodeTaintsPolicy: Ignore 39 40