Skip to content

Commit 88d2bef

Browse files
authored
Merge pull request #6104 from phntom/master
Misc fixes for nginx-ingress chart for better keel and prom-oper
2 parents 12150e3 + ae77b6f commit 88d2bef

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

charts/ingress-nginx/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: ingress-nginx
3-
version: 2.13.0
3+
version: 2.14.0
44
appVersion: 0.35.0
55
home: https://github.com/kubernetes/ingress-nginx
66
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer

charts/ingress-nginx/templates/controller-daemonset.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
labels:
77
{{- include "ingress-nginx.labels" . | nindent 4 }}
88
app.kubernetes.io/component: controller
9+
{{- with .Values.controller.labels }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
912
name: {{ include "ingress-nginx.controller.fullname" . }}
1013
{{- if .Values.controller.annotations }}
1114
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}

charts/ingress-nginx/templates/controller-deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
labels:
77
{{- include "ingress-nginx.labels" . | nindent 4 }}
88
app.kubernetes.io/component: controller
9+
{{- with .Values.controller.labels }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
912
name: {{ include "ingress-nginx.controller.fullname" . }}
1013
{{- if .Values.controller.annotations }}
1114
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}

charts/ingress-nginx/values.yaml

+29-5
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ controller:
135135
## Annotations to be added to the controller Deployment or DaemonSet
136136
##
137137
annotations: {}
138+
# keel.sh/pollSchedule: "@every 60m"
139+
140+
## Labels to be added to the controller Deployment or DaemonSet
141+
##
142+
labels: {}
143+
# keel.sh/policy: patch
144+
# keel.sh/trigger: poll
145+
138146

139147
# The update strategy to apply to the Deployment or DaemonSet
140148
##
@@ -451,19 +459,35 @@ controller:
451459
# namespace: ""
452460
rules: []
453461
# # These are just examples rules, please adapt them to your needs
454-
# - alert: TooMany500s
462+
# - alert: NGINXConfigFailed
463+
# expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
464+
# for: 1s
465+
# labels:
466+
# severity: critical
467+
# annotations:
468+
# description: bad ingress config - nginx config test failed
469+
# summary: uninstall the latest ingress changes to allow config reloads to resume
470+
# - alert: NGINXCertificateExpiry
471+
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
472+
# for: 1s
473+
# labels:
474+
# severity: critical
475+
# annotations:
476+
# description: ssl certificate(s) will expire in less then a week
477+
# summary: renew expiring certificates to avoid downtime
478+
# - alert: NGINXTooMany500s
455479
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
456480
# for: 1m
457481
# labels:
458-
# severity: critical
482+
# severity: warning
459483
# annotations:
460484
# description: Too many 5XXs
461485
# summary: More than 5% of the all requests did return 5XX, this require your attention
462-
# - alert: TooMany400s
486+
# - alert: NGINXTooMany400s
463487
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
464488
# for: 1m
465489
# labels:
466-
# severity: critical
490+
# severity: warning
467491
# annotations:
468492
# description: Too many 4XXs
469493
# summary: More than 5% of the all requests did return 4XX, this require your attention
@@ -472,7 +496,7 @@ controller:
472496
## With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
473497
## to 300, allowing the draining of connections up to five minutes.
474498
## If the active connections end before that, the pod will terminate gracefully at that time.
475-
## To efectively take advantage of this feature, the Configmap feature
499+
## To effectively take advantage of this feature, the Configmap feature
476500
## worker-shutdown-timeout new value is 240s instead of 10s.
477501
##
478502
lifecycle:

0 commit comments

Comments
 (0)