# io.k8s.api.core.v1.WeightedPodAffinityTerm

From **Kubernetes**.

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)

- Type: `object`

## Properties

### `podAffinityTerm`

- Required: true
- Default: `{}`

Required. A pod affinity term, associated with the corresponding weight.

### `weight`

- Required: true
- Type: `integer`
- Format: `int32`
- Default: `0`

weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

## JSON Schema

```json
{"description":"The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)","properties":{"podAffinityTerm":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.core.v1.PodAffinityTerm"}],"default":{},"description":"Required. A pod affinity term, associated with the corresponding weight."},"weight":{"default":0,"description":"weight associated with matching the corresponding podAffinityTerm, in the range 1-100.","format":"int32","type":"integer"}},"required":["weight","podAffinityTerm"],"type":"object"}
```
