Misc fixes for nginx-ingress chart for better keel and prometheus-operator integration
This commit is contained in:
parent
12150e318b
commit
0a45e3c655
4 changed files with 33 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
version: 2.13.0
|
version: 2.13.1
|
||||||
appVersion: 0.35.0
|
appVersion: 0.35.0
|
||||||
home: https://github.com/kubernetes/ingress-nginx
|
home: https://github.com/kubernetes/ingress-nginx
|
||||||
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||||
|
|
|
@ -6,6 +6,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: controller
|
app.kubernetes.io/component: controller
|
||||||
|
{{- toYaml .Values.controller.labels | nindent 4 }}
|
||||||
name: {{ include "ingress-nginx.controller.fullname" . }}
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
||||||
{{- if .Values.controller.annotations }}
|
{{- if .Values.controller.annotations }}
|
||||||
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
|
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
|
||||||
|
|
|
@ -6,6 +6,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: controller
|
app.kubernetes.io/component: controller
|
||||||
|
{{- toYaml .Values.controller.labels | nindent 4 }}
|
||||||
name: {{ include "ingress-nginx.controller.fullname" . }}
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
||||||
{{- if .Values.controller.annotations }}
|
{{- if .Values.controller.annotations }}
|
||||||
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
|
annotations: {{ toYaml .Values.controller.annotations | nindent 4 }}
|
||||||
|
|
|
@ -135,6 +135,14 @@ controller:
|
||||||
## Annotations to be added to the controller Deployment or DaemonSet
|
## Annotations to be added to the controller Deployment or DaemonSet
|
||||||
##
|
##
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# keel.sh/pollSchedule: "@every 60m"
|
||||||
|
|
||||||
|
## Labels to be added to the controller Deployment or DaemonSet
|
||||||
|
##
|
||||||
|
labels: {}
|
||||||
|
# keel.sh/policy: patch
|
||||||
|
# keel.sh/trigger: poll
|
||||||
|
|
||||||
|
|
||||||
# The update strategy to apply to the Deployment or DaemonSet
|
# The update strategy to apply to the Deployment or DaemonSet
|
||||||
##
|
##
|
||||||
|
@ -451,19 +459,35 @@ controller:
|
||||||
# namespace: ""
|
# namespace: ""
|
||||||
rules: []
|
rules: []
|
||||||
# # These are just examples rules, please adapt them to your needs
|
# # These are just examples rules, please adapt them to your needs
|
||||||
# - alert: TooMany500s
|
# - alert: NGINXConfigFailed
|
||||||
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
|
# expr: count(nginx_ingress_controller_config_last_reload_successful == 0) > 0
|
||||||
# for: 1m
|
# for: 1s
|
||||||
# labels:
|
# labels:
|
||||||
# severity: critical
|
# severity: critical
|
||||||
# annotations:
|
# annotations:
|
||||||
|
# description: bad ingress config - nginx config test failed
|
||||||
|
# summary: uninstall the latest ingress changes to allow config reloads to resume
|
||||||
|
# - alert: NGINXCertificateExpiry
|
||||||
|
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
|
||||||
|
# for: 1s
|
||||||
|
# labels:
|
||||||
|
# severity: critical
|
||||||
|
# annotations:
|
||||||
|
# description: ssl certificate(s) will expire in less then a week
|
||||||
|
# summary: renew expiring certificates to avoid downtime
|
||||||
|
# - alert: NGINXTooMany500s
|
||||||
|
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"5.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
|
||||||
|
# for: 1m
|
||||||
|
# labels:
|
||||||
|
# severity: warning
|
||||||
|
# annotations:
|
||||||
# description: Too many 5XXs
|
# description: Too many 5XXs
|
||||||
# summary: More than 5% of the all requests did return 5XX, this require your attention
|
# summary: More than 5% of the all requests did return 5XX, this require your attention
|
||||||
# - alert: TooMany400s
|
# - alert: NGINXTooMany400s
|
||||||
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
|
# expr: 100 * ( sum( nginx_ingress_controller_requests{status=~"4.+"} ) / sum(nginx_ingress_controller_requests) ) > 5
|
||||||
# for: 1m
|
# for: 1m
|
||||||
# labels:
|
# labels:
|
||||||
# severity: critical
|
# severity: warning
|
||||||
# annotations:
|
# annotations:
|
||||||
# description: Too many 4XXs
|
# description: Too many 4XXs
|
||||||
# summary: More than 5% of the all requests did return 4XX, this require your attention
|
# summary: More than 5% of the all requests did return 4XX, this require your attention
|
||||||
|
@ -472,7 +496,7 @@ controller:
|
||||||
## With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
|
## With this new hook, we increased the default terminationGracePeriodSeconds from 30 seconds
|
||||||
## to 300, allowing the draining of connections up to five minutes.
|
## to 300, allowing the draining of connections up to five minutes.
|
||||||
## If the active connections end before that, the pod will terminate gracefully at that time.
|
## If the active connections end before that, the pod will terminate gracefully at that time.
|
||||||
## To efectively take advantage of this feature, the Configmap feature
|
## To effectively take advantage of this feature, the Configmap feature
|
||||||
## worker-shutdown-timeout new value is 240s instead of 10s.
|
## worker-shutdown-timeout new value is 240s instead of 10s.
|
||||||
##
|
##
|
||||||
lifecycle:
|
lifecycle:
|
||||||
|
|
Loading…
Reference in a new issue