Skip to content

Commit 5d2642c

Browse files
feat(chart): add priorityClassName for control plane pod
1 parent b88de84 commit 5d2642c

File tree

15 files changed

+24
-1
lines changed

15 files changed

+24
-1
lines changed

charts/nginx-gateway-fabric/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
246246
| `nginx.usage.resolver` | The nameserver used to resolve the NGINX Plus usage reporting endpoint. Used with NGINX Instance Manager. | string | `""` |
247247
| `nginx.usage.secretName` | The name of the Secret containing the JWT for NGINX Plus usage reporting. Must exist in the same namespace that the NGINX Gateway Fabric control plane is running in (default namespace: nginx-gateway). | string | `"nplus-license"` |
248248
| `nginx.usage.skipVerify` | Disable client verification of the NGINX Plus usage reporting server certificate. | bool | `false` |
249-
| `nginxGateway` | The nginxGateway section contains configuration for the NGINX Gateway Fabric control plane deployment. | object | `{"affinity":{},"autoscaling":{"enable":false},"config":{"logging":{"level":"info"}},"configAnnotations":{},"extraVolumeMounts":[],"extraVolumes":[],"gatewayClassAnnotations":{},"gatewayClassName":"nginx","gatewayControllerName":"gateway.nginx.org/nginx-gateway-controller","gwAPIExperimentalFeatures":{"enable":false},"gwAPIInferenceExtension":{"enable":false,"endpointPicker":{"disableTLS":false,"skipVerify":true}},"image":{"pullPolicy":"Always","repository":"ghcr.io/nginx/nginx-gateway-fabric","tag":"edge"},"kind":"deployment","labels":{},"leaderElection":{"enable":true,"lockName":""},"lifecycle":{},"metrics":{"enable":true,"port":9113,"secure":false},"name":"","nodeSelector":{},"podAnnotations":{},"productTelemetry":{"enable":true},"readinessProbe":{"enable":true,"initialDelaySeconds":3,"port":8081},"replicas":1,"resources":{},"service":{"annotations":{},"labels":{}},"serviceAccount":{"annotations":{},"imagePullSecret":"","imagePullSecrets":[],"name":""},"snippetsFilters":{"enable":false},"terminationGracePeriodSeconds":30,"tolerations":[],"topologySpreadConstraints":[]}` |
249+
| `nginxGateway` | The nginxGateway section contains configuration for the NGINX Gateway Fabric control plane deployment. | object | `{"affinity":{},"autoscaling":{"enable":false},"config":{"logging":{"level":"info"}},"configAnnotations":{},"extraVolumeMounts":[],"extraVolumes":[],"gatewayClassAnnotations":{},"gatewayClassName":"nginx","gatewayControllerName":"gateway.nginx.org/nginx-gateway-controller","gwAPIExperimentalFeatures":{"enable":false},"gwAPIInferenceExtension":{"enable":false,"endpointPicker":{"disableTLS":false,"skipVerify":true}},"image":{"pullPolicy":"Always","repository":"ghcr.io/nginx/nginx-gateway-fabric","tag":"edge"},"kind":"deployment","labels":{},"leaderElection":{"enable":true,"lockName":""},"lifecycle":{},"metrics":{"enable":true,"port":9113,"secure":false},"name":"","nodeSelector":{},"podAnnotations":{},"priorityClassName":"","productTelemetry":{"enable":true},"readinessProbe":{"enable":true,"initialDelaySeconds":3,"port":8081},"replicas":1,"resources":{},"service":{"annotations":{},"labels":{}},"serviceAccount":{"annotations":{},"imagePullSecret":"","imagePullSecrets":[],"name":""},"snippetsFilters":{"enable":false},"terminationGracePeriodSeconds":30,"tolerations":[],"topologySpreadConstraints":[]}` |
250250
| `nginxGateway.affinity` | The affinity of the NGINX Gateway Fabric control plane pod. | object | `{}` |
251251
| `nginxGateway.autoscaling` | Autoscaling configuration for the NGINX Gateway Fabric control plane. | object | `{"enable":false}` |
252252
| `nginxGateway.autoscaling.enable` | Enable or disable Horizontal Pod Autoscaler for the control plane. | bool | `false` |
@@ -275,6 +275,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
275275
| `nginxGateway.name` | The name of the NGINX Gateway Fabric deployment - if not present, then by default uses release name given during installation. | string | `""` |
276276
| `nginxGateway.nodeSelector` | The nodeSelector of the NGINX Gateway Fabric control plane pod. | object | `{}` |
277277
| `nginxGateway.podAnnotations` | Set of custom annotations for the NGINX Gateway Fabric pods. | object | `{}` |
278+
| `nginxGateway.priorityClassName` | The priority class name for the NGINX Gateway Fabric control plane pod. | string | `""` |
278279
| `nginxGateway.productTelemetry.enable` | Enable the collection of product telemetry. | bool | `true` |
279280
| `nginxGateway.readinessProbe.enable` | Enable the /readyz endpoint on the control plane. | bool | `true` |
280281
| `nginxGateway.readinessProbe.initialDelaySeconds` | The number of seconds after the Pod has started before the readiness probes are initiated. | int | `3` |

charts/nginx-gateway-fabric/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ spec:
188188
{{- with .Values.nginxGateway.extraVolumeMounts -}}
189189
{{ toYaml . | nindent 8 }}
190190
{{- end }}
191+
priorityClassName: {{ .Values.nginxGateway.priorityClassName }}
191192
{{- if .Values.nginxGateway.topologySpreadConstraints }}
192193
topologySpreadConstraints:
193194
{{- toYaml .Values.nginxGateway.topologySpreadConstraints | nindent 8 }}

charts/nginx-gateway-fabric/values.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,13 @@
10191019
"title": "podAnnotations",
10201020
"type": "object"
10211021
},
1022+
"priorityClassName": {
1023+
"default": "",
1024+
"description": "The priority class name for the NGINX Gateway Fabric control plane pod.",
1025+
"required": [],
1026+
"title": "priorityClassName",
1027+
"type": "string"
1028+
},
10221029
"productTelemetry": {
10231030
"properties": {
10241031
"enable": {

charts/nginx-gateway-fabric/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ nginxGateway:
142142
# -- extraVolumeMounts are the additional volume mounts for the nginx-gateway container.
143143
extraVolumeMounts: []
144144

145+
# -- The priority class name for the NGINX Gateway Fabric control plane pod.
146+
priorityClassName: ""
147+
145148
# -- The termination grace period of the NGINX Gateway Fabric control plane pod.
146149
terminationGracePeriodSeconds: 30
147150

deploy/azure/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ spec:
338338
name: nginx-agent-tls
339339
nodeSelector:
340340
kubernetes.io/os: linux
341+
priorityClassName: null
341342
securityContext:
342343
fsGroup: 1001
343344
runAsNonRoot: true

deploy/default/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ spec:
336336
volumeMounts:
337337
- mountPath: /var/run/secrets/ngf
338338
name: nginx-agent-tls
339+
priorityClassName: null
339340
securityContext:
340341
fsGroup: 1001
341342
runAsNonRoot: true

deploy/experimental-nginx-plus/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ spec:
343343
volumeMounts:
344344
- mountPath: /var/run/secrets/ngf
345345
name: nginx-agent-tls
346+
priorityClassName: null
346347
securityContext:
347348
fsGroup: 1001
348349
runAsNonRoot: true

deploy/experimental/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ spec:
339339
volumeMounts:
340340
- mountPath: /var/run/secrets/ngf
341341
name: nginx-agent-tls
342+
priorityClassName: null
342343
securityContext:
343344
fsGroup: 1001
344345
runAsNonRoot: true

deploy/inference-nginx-plus/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ spec:
356356
volumeMounts:
357357
- mountPath: /var/run/secrets/ngf
358358
name: nginx-agent-tls
359+
priorityClassName: null
359360
securityContext:
360361
fsGroup: 1001
361362
runAsNonRoot: true

deploy/inference/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ spec:
352352
volumeMounts:
353353
- mountPath: /var/run/secrets/ngf
354354
name: nginx-agent-tls
355+
priorityClassName: null
355356
securityContext:
356357
fsGroup: 1001
357358
runAsNonRoot: true

0 commit comments

Comments
 (0)