Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.49
version: 0.2.50

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ The command removes all the Kubernetes components associated with the chart and
| apisix.stream.luaSharedDict.plugin-limit-conn-stream | string | `"10m"` | |
| apisix.stream.luaSharedDict.tars-stream | string | `"1m"` | |
| apisix.stream.luaSharedDict.worker-events-stream | string | `"10m"` | |
| apisix.terminationGracePeriodSeconds | int | `30` | termination grace period for API7 Gateway pods |
| apisix.timezone | string | `""` | timezone is the timezone where apisix uses. For example: "UTC" or "Asia/Shanghai" This value will be set on apisix container's environment variable TZ. You may need to set the timezone to be consistent with your local time zone, otherwise the apisix's logs may used to retrieve event maybe in wrong timezone. |
| apisix.tolerations | list | `[]` | List of node taints to tolerate |
| apisix.topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ The value is evaluated as a template |
Expand Down Expand Up @@ -220,6 +221,7 @@ The command removes all the Kubernetes components associated with the chart and
| nginx.workerConnections | string | `"10620"` | |
| nginx.workerProcesses | string | `"auto"` | |
| nginx.workerRlimitNofile | string | `"20480"` | |
| nginx.workerShutdownTimeout | string | `"240s"` | |
| pluginAttrs | object | `{}` | Set APISIX plugin attributes, see [config-default.yaml](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L376) for more details |
| rbac.create | bool | `false` | |
| serviceAccount.annotations | object | `{}` | |
Expand Down
1 change: 1 addition & 0 deletions charts/gateway/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
securityContext:
{{- . | toYaml | nindent 4 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.apisix.terminationGracePeriodSeconds }}
{{- with .Values.apisix.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/gateway/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ data:
worker_processes: "{{ .Values.nginx.workerProcesses }}"
enable_cpu_affinity: {{ and true .Values.nginx.enableCPUAffinity }}
worker_rlimit_nofile: {{ default "20480" .Values.nginx.workerRlimitNofile }} # the number of files a worker process can open, should be larger than worker_connections
worker_shutdown_timeout: "{{ .Values.nginx.workerShutdownTimeout }}"
event:
worker_connections: {{ default "10620" .Values.nginx.workerConnections }}
{{- with .Values.nginx.envs }}
Expand Down
4 changes: 4 additions & 0 deletions charts/gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ apisix:
# -- kind is DaemonSet, replicaCount not become effective
replicaCount: 1

# -- termination grace period for API7 Gateway pods
terminationGracePeriodSeconds: 30

# -- Set [priorityClassName](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority) for API7 Gateway pods
priorityClassName: ""
# -- Annotations to add to each pod
Expand Down Expand Up @@ -423,6 +426,7 @@ admin:

nginx:
workerRlimitNofile: "20480"
workerShutdownTimeout: "240s"
workerConnections: "10620"
workerProcesses: auto
enableCPUAffinity: true
Expand Down
Loading