Skip to content

Commit 7dff4d7

Browse files
committed
Docs for Replicated SDK affinity spec
1 parent 9a8e659 commit 7dff4d7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/vendor/replicated-sdk-customizing.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,24 @@ replicated:
187187
value: "value"
188188
effect: "NoSchedule"
189189
```
190+
191+
## Add Affinity
192+
193+
The Replicated SDK provides a `replicated.affinity` value that allows users to add custom affinity to the deployment. For more information about tolerations, see [Affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity).
194+
195+
To add affinity to the Replicated SDK deployment, include the `replicated.affinity` map in your Helm chart `values.yaml` file. The `replicated.affinity` map accepts a standard Kubernets affinity object in the following format:
196+
197+
```yaml
198+
# Helm chart values.yaml
199+
200+
replicated:
201+
affinity:
202+
nodeAffinity:
203+
requiredDuringSchedulingIgnoredDuringExecution:
204+
nodeSelectorTerms:
205+
- matchExpressions:
206+
- key: production/node-pool
207+
operator: In
208+
values:
209+
- private-node-pool
210+
```

0 commit comments

Comments
 (0)