diff --git a/charts/nginx-gateway-fabric/README.md b/charts/nginx-gateway-fabric/README.md index de3be00170..73aaaa2bc6 100644 --- a/charts/nginx-gateway-fabric/README.md +++ b/charts/nginx-gateway-fabric/README.md @@ -290,6 +290,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri | `nginxGateway.readinessProbe.initialDelaySeconds` | The number of seconds after the Pod has started before the readiness probes are initiated. | int | `3` | | `nginxGateway.readinessProbe.port` | Port in which the readiness endpoint is exposed. | int | `8081` | | `nginxGateway.replicaCount` | The number of replicas of the NGINX Gateway Fabric Deployment. | int | `1` | +| `nginxGateway.resources` | The resource requests and/or limits of the nginx-gateway container. | object | `{}` | | `nginxGateway.securityContext.allowPrivilegeEscalation` | Some environments may need this set to true in order for the control plane to successfully reload NGINX. | bool | `false` | | `nodeSelector` | The nodeSelector of the NGINX Gateway Fabric pod. | object | `{}` | | `service.annotations` | The annotations of the NGINX Gateway Fabric service. | object | `{}` | diff --git a/charts/nginx-gateway-fabric/templates/deployment.yaml b/charts/nginx-gateway-fabric/templates/deployment.yaml index 9bd5b40223..ce2d38a8e9 100644 --- a/charts/nginx-gateway-fabric/templates/deployment.yaml +++ b/charts/nginx-gateway-fabric/templates/deployment.yaml @@ -90,6 +90,10 @@ spec: lifecycle: {{- toYaml .Values.nginxGateway.lifecycle | nindent 10 }} {{- end }} + {{- if .Values.nginxGateway.resources }} + resources: + {{- toYaml .Values.nginxGateway.resources | nindent 10 }} + {{- end }} ports: {{- if .Values.metrics.enable }} - name: metrics diff --git a/charts/nginx-gateway-fabric/values.yaml b/charts/nginx-gateway-fabric/values.yaml index e0a4854bb8..e9804ae239 100644 --- a/charts/nginx-gateway-fabric/values.yaml +++ b/charts/nginx-gateway-fabric/values.yaml @@ -64,6 +64,9 @@ nginxGateway: # -- The lifecycle of the nginx-gateway container. lifecycle: {} + # -- The resource requests and/or limits of the nginx-gateway container. + resources: {} + # -- extraVolumeMounts are the additional volume mounts for the nginx-gateway container. extraVolumeMounts: []