-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support all nginx configmap settings #26
Changes from all commits
c21cfe0
a4e127e
88ba31b
c086ff9
ae181de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
namespace: kube-system | ||
|
||
# baseDomain is a dynamic value, it comes from the cluster values configmap | ||
# applies only to Giant Swarm clusters | ||
baseDomain: uun5a.k8s.ginger.eu-central-1.aws.gigantic.io | ||
|
@@ -19,44 +17,18 @@ ingressController: | |
legacy: false | ||
replicas: 3 | ||
|
||
# configmap contains settings that can be overridden with a custom values | ||
# configmap. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of the settings in values.yaml can be overriden with a custom values configmap.
|
||
# for all the nginx configmap config options see https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/configmap.md#configmaps | ||
configmap: | ||
disable-access-log: "false" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as upstream default, so dropped it not to create noise. |
||
enable-vts-status: "true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was dropped ages ago kubernetes/ingress-nginx#2643 |
||
error-log-level: "error" | ||
# Disables setting a 'Strict-Transport-Security' header, which can be harmful. | ||
# See https://github.com/kubernetes/ingress-nginx/issues/549#issuecomment-291894246 | ||
hsts: "false" | ||
# Increase hash table size to allow more server names for stability reasons | ||
server-name-hash-bucket-size: "1024" | ||
server-name-hash-max-size: "1024" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as upstream default, so dropped it not to create noise. |
||
server-tokens: "false" | ||
worker-processes: "4" | ||
use-forwarded-headers: "true" | ||
|
||
# optional settings that can be set. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is no longer needed, since all configmap settings can be overriden with custom values, no need to add explicit support for each of them. |
||
enable-underscores-in-headers: "" | ||
http-snippet: "" | ||
http2-max-field-size: "" | ||
large-client-header-buffers: "" | ||
log-format-upstream: "" | ||
proxy-buffers-size: "" | ||
proxy-buffers: "" | ||
use-proxy-protocol: "" | ||
vts-default-filter-key: "" | ||
# Enable the specified protocols (cf. http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_protocols for the list of valid protocols) | ||
ssl-protocols: "" | ||
|
||
# optional hpa settings | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't belong here, it was moved under controller.autoscaling configuration key, like in upstream stable chart. |
||
hpa-enabled: false | ||
hpa-min-replicas: 2 | ||
hpa-max-replicas: 11 | ||
hpa-target-cpu-utilization-percentage: 50 | ||
hpa-target-memory-utilization-percentage: 50 | ||
|
||
# command args options | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These do not belong here as they are not nginx configmap config options, they were moved under controller config key. |
||
annotations-prefix: nginx.ingress.kubernetes.io | ||
default-ssl-certificate: "" | ||
ingress-class: nginx | ||
|
||
controller: | ||
name: nginx-ingress-controller | ||
k8sAppLabel: nginx-ingress-controller | ||
|
@@ -68,6 +40,7 @@ controller: | |
|
||
image: | ||
repository: giantswarm/nginx-ingress-controller | ||
# when updating tag make sure to also keep appVersion in Chart.yaml in sync | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. <3 |
||
tag: 0.28.0 | ||
|
||
rbac: | ||
|
@@ -100,19 +73,26 @@ controller: | |
cpu: 500m | ||
memory: 600Mi | ||
|
||
# optional hpa settings | ||
autoscaling: | ||
enabled: false | ||
minReplicas: 2 | ||
maxReplicas: 20 | ||
targetCPUUtilizationPercentage: 50 | ||
targetMemoryUtilizationPercentage: 50 | ||
|
||
# command args options | ||
annotationsPrefix: nginx.ingress.kubernetes.io | ||
defaultSSLCertificate: "" | ||
ingressClass: nginx | ||
|
||
# www-data -> uid 101 | ||
userID: 101 | ||
groupID: 101 | ||
|
||
image: | ||
registry: quay.io | ||
|
||
global: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With exception of useProxyProtocol, these weren't used anywhere, dropped them. Dropped also useProxyProtocol since it can be overriden with use-proxy-protocol configmap, and upstream defaults to false so no need to explicitly set it in configmap either. |
||
controller: | ||
tempReplicas: 2 | ||
useProxyProtocol: false | ||
migration: | ||
enabled: false | ||
|
||
test: | ||
image: | ||
registry: quay.io | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was missed in 1.3.0; I've added a note in values.yaml for the tag, when changing the tag to change also appVersion