Allow to use Helm Template for fields in the affinity block (e.g. defaultPodOptions.affinity).
Additional Information:
I like to set the podAntiAffinity on the hostname to avoid having two Pods of the same application running on the same hosts. Generally, I configure it like so:
Details
Describe the solution you'd like:
Allow to use Helm Template for fields in the
affinity
block (e.g.defaultPodOptions.affinity
).Additional Information:
I like to set the
podAntiAffinity
on thehostname
to avoid having two Pods of the same application running on the same hosts. Generally, I configure it like so:Enabling Helm Template for the
affinity
block would allow me to make this re-usable for all my applications, changingmy-app
by{{ Release.Name }}