Add affinity configuration to Kubernetes pod template
This commit adds support for specifying pod affinity settings in the Kubernetes pod template for the Artemis broker Helm chart. The changes include a new conditional block in the `_pod.tpl` template file that allows users to define affinity rules in the `values.yaml` file under the `affinity` key. The addition was necessary to provide users with more flexibility in scheduling their pods based on node characteristics, which is essential for optimizing resource allocation and achieving desired deployment strategies. No breaking changes were introduced, and the default `affinity` configuration remains empty, ensuring backward compatibility.
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
{{- define "amq.pod" -}}
|
||||
{{- if eq .Values.platform "kubernetes" -}}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 2 -}}
|
||||
{{- end }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.application.pullSecretName }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user