Skip to content

Commit a7b58a4

Browse files
feat: added nodeSelector for keda patch pods (#2618)
* feat: added nodeSelector for keda patch pods * chore: added changes as per AI review suggestion * Correct configuration table * Remove trailing spaces --------- Signed-off-by: Viet Nguyen Duc <[email protected]> Co-authored-by: Viet Nguyen Duc <[email protected]>
1 parent 1f167b9 commit a7b58a4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Diff for: charts/selenium-grid/CONFIGURATION.md

+1
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ A Helm chart for creating a Selenium Grid Server in Kubernetes
395395
| autoscaling.patchObjectFinalizers.serviceAccount | string | `""` | Define an external service account name contains permissions to patch KEDA scaled resources |
396396
| autoscaling.patchObjectFinalizers.imagePullSecret | string | `""` | Custom pull secret for container in patch job |
397397
| autoscaling.patchObjectFinalizers.resources | object | `{"limits":{"cpu":"200m","memory":"500Mi"},"requests":{"cpu":"100m","memory":"200Mi"}}` | Define resources for container in patch job |
398+
| autoscaling.patchObjectFinalizers.nodeSelector | object | `{}` | Node selector for the patch job |
398399
| autoscaling.scaledOptions | object | `{"maxReplicaCount":24,"minReplicaCount":0,"pollingInterval":20}` | Options for KEDA scaled resources (keep only common options used for both ScaledJob and ScaledObject) |
399400
| autoscaling.scaledOptions.minReplicaCount | int | `0` | Minimum number of replicas |
400401
| autoscaling.scaledOptions.maxReplicaCount | int | `24` | Maximum number of replicas |

Diff for: charts/selenium-grid/templates/patch-keda/patch-keda-objects-job.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ spec:
4545
- name: {{ default $.Values.global.seleniumGrid.imagePullSecret $.Values.autoscaling.patchObjectFinalizers.imagePullSecret }}
4646
{{- end }}
4747
restartPolicy: Never
48+
{{- with .Values.autoscaling.patchObjectFinalizers.nodeSelector }}
49+
nodeSelector: {{- toYaml . | nindent 8 }}
50+
{{- end }}
4851
{{- end }}

Diff for: charts/selenium-grid/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,8 @@ autoscaling:
10431043
limits:
10441044
cpu: 200m
10451045
memory: 500Mi
1046+
# -- Node selector for the patch job
1047+
nodeSelector: {}
10461048
# -- Options for KEDA scaled resources (keep only common options used for both ScaledJob and ScaledObject)
10471049
scaledOptions:
10481050
# -- Minimum number of replicas

0 commit comments

Comments
 (0)