Skip to content

Commit a5eb020

Browse files
committed
helm: Add support to define nodeSelector for the NGINX Gateway Fabric pod. (nginx#1531)
Problem: The current helm chart doesn't support the nodeSelector definition for the NGINX Gateway Fabric pod. Solution: Add support for nodeSelector in the helm chart.
1 parent 5b95f06 commit a5eb020

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

deploy/helm-chart/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ The following tables lists the configurable parameters of the NGINX Gateway Fabr
301301
| `nginx.extraVolumeMounts` | Extra `volumeMounts` for the nginx container. | {} |
302302
| `terminationGracePeriodSeconds` | The termination grace period of the NGINX Gateway Fabric pod. | 30 |
303303
| `tolerations` | The `tolerations` of the NGINX Gateway Fabric pod. | [] |
304+
| `nodeSelector` | The `nodeSelector` of the NGINX Gateway Fabric pod. | {} |
304305
| `affinity` | The `affinity` of the NGINX Gateway Fabric pod. | {} |
305306
| `serviceAccount.annotations` | The `annotations` for the ServiceAccount used by the NGINX Gateway Fabric deployment. | {} |
306307
| `serviceAccount.name` | Name of the ServiceAccount used by the NGINX Gateway Fabric deployment. | Autogenerated |

deploy/helm-chart/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ spec:
156156
tolerations:
157157
{{- toYaml .Values.tolerations | nindent 6 }}
158158
{{- end }}
159+
{{- if .Values.nodeSelector }}
160+
nodeSelector:
161+
{{- toYaml .Values.nodeSelector | nindent 8 }}
162+
{{- end }}
159163
volumes:
160164
- name: nginx-conf
161165
emptyDir: {}

deploy/helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ terminationGracePeriodSeconds: 30
7373
## Tolerations for the NGINX Gateway Fabric pod.
7474
tolerations: []
7575

76+
## The nodeSelector of the NGINX Gateway Fabric pod.
77+
nodeSelector: {}
78+
7679
## The affinity of the NGINX Gateway Fabric pod.
7780
affinity: {}
7881

0 commit comments

Comments
 (0)