[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:
Alireza Davoodi
2022-11-24 08:23:22 +01:00
committed by GitHub
parent 65bf372ac1
commit 3c43c64fa6
4 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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. | `[]` |

View File

@@ -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 }}

View File

@@ -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
##