Skip to content

Commit

Permalink
Merge pull request kubernetes#4607 from aledbf/0.26
Browse files Browse the repository at this point in the history
Release 0.26.0
  • Loading branch information
k8s-ci-robot authored Sep 27, 2019
2 parents a9f3327 + 6715108 commit 9ecec0d
Show file tree
Hide file tree
Showing 9 changed files with 231 additions and 9 deletions.
201 changes: 201 additions & 0 deletions Changelog.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
all: all-container

# Use the 0.0 tag for testing, it shouldn't clobber any release builds
TAG ?= 0.25.1
TAG ?= 0.26.0
REGISTRY ?= quay.io/kubernetes-ingress-controller
DOCKER ?= docker
SED_I ?= sed -i
Expand Down
9 changes: 8 additions & 1 deletion deploy/cloud-generic/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ spec:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
spec:
# wait up to five minutes for the drain of connections
terminationGracePeriodSeconds: 300
serviceAccountName: nginx-ingress-serviceaccount
containers:
- name: nginx-ingress-controller
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.25.1
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.0
args:
- /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/$(NGINX_CONFIGMAP_NAME)
Expand Down Expand Up @@ -63,3 +65,8 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
lifecycle:
preStop:
exec:
command:
- /wait-shutdown
2 changes: 1 addition & 1 deletion deploy/cloud-generic/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resources:
- service.yaml
images:
- name: quay.io/kubernetes-ingress-controller/nginx-ingress-controller
newTag: 0.25.1
newTag: 0.26.0
vars:
- fieldref:
fieldPath: metadata.name
Expand Down
9 changes: 8 additions & 1 deletion deploy/static/mandatory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,12 @@ spec:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
spec:
# wait up to five minutes for the drain of connections
terminationGracePeriodSeconds: 300
serviceAccountName: nginx-ingress-serviceaccount
containers:
- name: nginx-ingress-controller
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.25.1
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.0
args:
- /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/nginx-configuration
Expand Down Expand Up @@ -263,5 +265,10 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
lifecycle:
preStop:
exec:
command:
- /wait-shutdown

---
9 changes: 8 additions & 1 deletion deploy/static/with-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ spec:
prometheus.io/port: "10254"
prometheus.io/scrape: "true"
spec:
# wait up to five minutes for the drain of connections
terminationGracePeriodSeconds: 300
serviceAccountName: nginx-ingress-serviceaccount
containers:
- name: nginx-ingress-controller
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.25.1
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.0
args:
- /nginx-ingress-controller
- --configmap=$(POD_NAMESPACE)/nginx-configuration
Expand Down Expand Up @@ -74,6 +76,11 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 10
lifecycle:
preStop:
exec:
command:
- /wait-shutdown

---

2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ daemon off;
worker_processes 2;
pid /run/nginx.pid;
worker_rlimit_nofile 523264;
worker_shutdown_timeout 10s;
worker_shutdown_timeout 240s;
events {
multi_accept on;
worker_connections 16384;
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/nginx-configuration/configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The following table shows a configuration option's name, type, and the default v
|[gzip-types](#gzip-types)|string|"application/atom+xml application/javascript application/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/javascript text/plain text/x-component"|
|[worker-processes](#worker-processes)|string|`<Number of CPUs>`|
|[worker-cpu-affinity](#worker-cpu-affinity)|string|""|
|[worker-shutdown-timeout](#worker-shutdown-timeout)|string|"10s"|
|[worker-shutdown-timeout](#worker-shutdown-timeout)|string|"240s"|
|[load-balance](#load-balance)|string|"round_robin"|
|[variables-hash-bucket-size](#variables-hash-bucket-size)|int|128|
|[variables-hash-max-size](#variables-hash-max-size)|int|2048|
Expand Down Expand Up @@ -591,7 +591,7 @@ By default worker processes are not bound to any specific CPUs. The value can be

## worker-shutdown-timeout

Sets a timeout for Nginx to [wait for worker to gracefully shutdown](http://nginx.org/en/docs/ngx_core_module.html#worker_shutdown_timeout). _**default:**_ "10s"
Sets a timeout for Nginx to [wait for worker to gracefully shutdown](http://nginx.org/en/docs/ngx_core_module.html#worker_shutdown_timeout). _**default:**_ "240s"

## load-balance

Expand Down
2 changes: 1 addition & 1 deletion internal/ingress/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ func NewDefault() Configuration {
UseGeoIP: true,
UseGeoIP2: false,
WorkerProcesses: strconv.Itoa(runtime.NumCPU()),
WorkerShutdownTimeout: "10s",
WorkerShutdownTimeout: "240s",
VariablesHashBucketSize: 128,
VariablesHashMaxSize: 2048,
UseHTTP2: true,
Expand Down

0 comments on commit 9ecec0d

Please sign in to comment.