mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/thanos] Set custom topology key for podAntiAffinityPreset (#13581)
* [bitnami/thanos] Set custom topology key for podAntiAffinityPreset Signed-off-by: Alireza Davoodi <alizdavoodi@gmail.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Alireza Davoodi <alizdavoodi@gmail.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Miguel Ruiz <miruiz@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
@@ -28,4 +28,4 @@ name: thanos
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/thanos
|
||||
- https://thanos.io
|
||||
version: 11.6.2
|
||||
version: 11.6.3
|
||||
|
||||
@@ -197,6 +197,7 @@ Check the section [Integrate Thanos with Prometheus and Alertmanager](#integrate
|
||||
| `query.extraVolumeMounts` | Extra volume mounts to add to the query container | `[]` |
|
||||
| `query.podAffinityPreset` | Thanos Query pod affinity preset | `""` |
|
||||
| `query.podAntiAffinityPreset` | Thanos Query pod anti-affinity preset. Ignored if `query.affinity` is set. Allowed values: `soft` or `hard` | `soft` |
|
||||
| `query.podAntiAffinityPresetTopologyKey` | Thanos Query pod anti-affinity topologyKey. Ignored if `query.affinity` is set. | `""` |
|
||||
| `query.nodeAffinityPreset.type` | Thanos Query node affinity preset type. Ignored if `query.affinity` is set. Allowed values: `soft` or `hard` | `""` |
|
||||
| `query.nodeAffinityPreset.key` | Thanos Query node label key to match Ignored if `query.affinity` is set. | `""` |
|
||||
| `query.nodeAffinityPreset.values` | Thanos Query node label values to match. Ignored if `query.affinity` is set. | `[]` |
|
||||
|
||||
@@ -53,7 +53,7 @@ spec:
|
||||
{{- else }}
|
||||
affinity:
|
||||
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.query.podAffinityPreset "component" "query" "context" $) | nindent 10 }}
|
||||
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.query.podAntiAffinityPreset "component" "query" "context" $) | nindent 10 }}
|
||||
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.query.podAntiAffinityPreset "component" "query" "topologyKey" .Values.query.podAntiAffinityPresetTopologyKey "context" $) | nindent 10 }}
|
||||
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.query.nodeAffinityPreset.type "key" .Values.query.nodeAffinityPreset.key "values" .Values.query.nodeAffinityPreset.values) | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- if .Values.query.nodeSelector }}
|
||||
|
||||
@@ -332,6 +332,10 @@ query:
|
||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||
##
|
||||
podAntiAffinityPreset: soft
|
||||
## @param query.podAntiAffinityPresetTopologyKey Thanos Query pod anti-affinity topologyKey. Ignored if `query.affinity` is set.
|
||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
|
||||
##
|
||||
podAntiAffinityPresetTopologyKey: ""
|
||||
## Thanos Query node affinity preset
|
||||
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user