Skip to content

Commit 28c27e8

Browse files
Docs for Replicated SDK affinity spec (#2906)
* Docs for Replicated SDK affinity spec * typo --------- Co-authored-by: Paige Calvert <[email protected]>
1 parent a3a6026 commit 28c27e8

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/vendor/replicated-sdk-customizing.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ To use a CA stored in a Secret:
173173

174174
## Add Tolerations
175175

176-
The Replicated SDK provides a `replicated.tolerations` value that allows users to add custom tolerations to the deployment. For more information about tolerations, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/).
176+
The Replicated SDK provides a `replicated.tolerations` value that allows users to add custom tolerations to the deployment. For more information about tolerations, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) in the Kubernetes documentation.
177177

178178
To add tolerations to the Replicated SDK deployment, include the `replicated.tolerations` array in your Helm chart `values.yaml` file. The `replicated.tolerations` array accepts a list of tolerations in the following format:
179179

@@ -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 affinity, see [Affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) in the Kubernetes documentation.
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)