Skip to content
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

Merged
merged 5 commits into from
Feb 10, 2020
Merged

Conversation

sslavic
Copy link

@sslavic sslavic commented Feb 9, 2020

@sslavic sslavic self-assigned this Feb 9, 2020
@sslavic sslavic force-pushed the configurable-configmap branch from b92c7ac to 156b233 Compare February 9, 2020 10:59
@sslavic sslavic force-pushed the configurable-configmap branch from 156b233 to c21cfe0 Compare February 9, 2020 12:55
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: v0.27.1
appVersion: v0.28.0
Copy link
Author

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

@@ -19,44 +17,18 @@ ingressController:
legacy: false
replicas: 3

# configmap contains settings that can be overridden with a custom values
# configmap.
Copy link
Author

Choose a reason for hiding this comment

The 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.

.Values.configmap is now purely for nginx configmap config options. Everything else that doesn't actually belong here moved under different configuration key. Settings which were under configmap just to support overriding but weren't actually overriding upstream defaults were removed since that is no longer needed. Similarly, configmap entries which have same value as upstream default, so not overriding it, were removed. Existing actual overrides were kept. Settings no longer supported upstream were cleaned up.

configmap:
disable-access-log: "false"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as upstream default, so dropped it not to create noise.

server-name-hash-bucket-size: "1024"
server-name-hash-max-size: "1024"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as upstream default, so dropped it not to create noise.

configmap:
disable-access-log: "false"
enable-vts-status: "true"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was dropped ages ago kubernetes/ingress-nginx#2643

server-tokens: "false"
worker-processes: "4"
use-forwarded-headers: "true"

# optional settings that can be set.
Copy link
Author

Choose a reason for hiding this comment

The 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 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
Copy link
Author

Choose a reason for hiding this comment

The 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-target-cpu-utilization-percentage: 50
hpa-target-memory-utilization-percentage: 50

# command args options
Copy link
Author

Choose a reason for hiding this comment

The 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.

userID: 101
groupID: 101

image:
registry: quay.io

global:
Copy link
Author

Choose a reason for hiding this comment

The 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.

@sslavic sslavic marked this pull request as ready for review February 9, 2020 16:21
@sslavic sslavic requested review from a team February 9, 2020 16:21
@sslavic
Copy link
Author

sslavic commented Feb 10, 2020

Tested on giraffe (aws, china) for GS platform release 11.0.0, with nginx IC as optional app.

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Copy link
Contributor

@tomahawk28 tomahawk28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@sslavic sslavic requested a review from pipo02mix February 10, 2020 09:42
@sslavic sslavic merged commit 1087df4 into master Feb 10, 2020
@sslavic sslavic deleted the configurable-configmap branch February 10, 2020 12:26
Copy link
Contributor

@pipo02mix pipo02mix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants