Skip to content

Commit

Permalink
helm: Add support to define nodeSelector for the NGINX Gateway Fabric…
Browse files Browse the repository at this point in the history
… pod. (#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.
  • Loading branch information
leandrocostam authored Feb 5, 2024
1 parent 74d2327 commit 3c1b8d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ The following tables lists the configurable parameters of the NGINX Gateway Fabr
| `nginx.extraVolumeMounts` | Extra `volumeMounts` for the nginx container. | {} |
| `terminationGracePeriodSeconds` | The termination grace period of the NGINX Gateway Fabric pod. | 30 |
| `tolerations` | The `tolerations` of the NGINX Gateway Fabric pod. | [] |
| `nodeSelector` | The `nodeSelector` of the NGINX Gateway Fabric pod. | {} |
| `affinity` | The `affinity` of the NGINX Gateway Fabric pod. | {} |
| `serviceAccount.annotations` | The `annotations` for the ServiceAccount used by the NGINX Gateway Fabric deployment. | {} |
| `serviceAccount.name` | Name of the ServiceAccount used by the NGINX Gateway Fabric deployment. | Autogenerated |
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ spec:
tolerations:
{{- toYaml .Values.tolerations | nindent 6 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
volumes:
- name: nginx-conf
emptyDir: {}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ terminationGracePeriodSeconds: 30
## Tolerations for the NGINX Gateway Fabric pod.
tolerations: []

## The nodeSelector of the NGINX Gateway Fabric pod.
nodeSelector: {}

## The affinity of the NGINX Gateway Fabric pod.
affinity: {}

Expand Down

0 comments on commit 3c1b8d5

Please sign in to comment.