Skip to content

Commit

Permalink
Docs for Replicated SDK affinity spec (#2906)
Browse files Browse the repository at this point in the history
* Docs for Replicated SDK affinity spec

* typo

---------

Co-authored-by: Paige Calvert <[email protected]>
  • Loading branch information
divolgin and paigecalvert authored Dec 24, 2024
1 parent a3a6026 commit 28c27e8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/vendor/replicated-sdk-customizing.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ To use a CA stored in a Secret:

## Add Tolerations

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/).
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.

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:

Expand All @@ -187,3 +187,24 @@ replicated:
value: "value"
effect: "NoSchedule"
```

## Add Affinity

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.

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:

```yaml
# Helm chart values.yaml
replicated:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: production/node-pool
operator: In
values:
- private-node-pool
```

0 comments on commit 28c27e8

Please sign in to comment.