Skip to content

Commit cb57e84

Browse files
k.borzistyysergelogvinov
authored andcommitted
feat(chart): support affinity for node-plugin assignment
Enables precise control over pod placement on nodes based on node labels or other affinity/anti-affinity rules. This improves workload distribution, reliability, and resource utilization in the cluster Signed-off-by: k.borzistyy <k.borzistyy@postgrespro.ru>
1 parent b53510c commit cb57e84

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

charts/proxmox-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ maintainers:
1818
url: https://github.com/sergelogvinov
1919
#
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 0.5.0
21+
version: 0.5.1
2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to
2424
# follow Semantic Versioning. They should reflect the version the application is using.

charts/proxmox-csi-plugin/templates/node-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,7 @@ spec:
136136
tolerations:
137137
{{- toYaml . | nindent 8 }}
138138
{{- end }}
139+
{{- with .Values.node.affinity }}
140+
affinity:
141+
{{- toYaml . | nindent 8 }}
142+
{{- end }}

charts/proxmox-csi-plugin/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ node:
234234
operator: Exists
235235
effect: NoSchedule
236236

237+
# -- Affinity for node-plugin assignment.
238+
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
239+
affinity: {}
240+
237241
livenessprobe:
238242
# -- Common livenessprobe sidecar.
239243
image:

0 commit comments

Comments
 (0)