-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add HTTP2 as option in configmap and annotations #65
Conversation
I don't recommend enabling http/2 by default. It is a new protocol and some browsers still have problems fully implementing it, which leads to problems in some cases. What we can do is to introduce an option to enable http/2. We can put such an option into ConfigMap and annotation. Regarding the base image, we can switch from debian to ubuntu:16.04, which has openssl with support for ALPN required for Chrome users. We can add support for http/2. Let me know if you're interested in helping. |
Hi, Does this look good to you, in terms of annotation naming? annotations:
nginx.org/http2: 'True'
# configmap
http2: 'True' Edit: changed annotation name from "enable-http2" to only "http2"
The only real downside of alpine IMHO, is that coreos/clair is not able to analyse it for vulnerabilities, because CVEs at alpine are not yet tracked in a format that clair can use. We also have some more pull requests incoming for:
|
@thetechnick thx for the pull request! The naming of
The arguments you provided for alpine make a good case for alpine. However, I would stick to debian as a default and as an option provide the alpine based image, similar to what we're providing on DockerHub https://hub.docker.com/_/nginx/
That's awesome! Pull requests per option are preferable. If you have an idea how to implement a particular feature, I suggest we discuss it via a GitHub issue Regarding this pull request:
|
Sounds great!
Watch out for some issues :) |
Thx! Looks good to me!
That would be great if you add unittests for that! |
I have squashed the commits into one and I have also added an entry to examples/customization/nginx-config.yaml, so the configmap entry is documented. Should I also create a examples/http2 folder with the annotations like ssl-services? |
Thx! No need for the examples/http2 folder. We'll make a new release (0.5.1) this Friday that will include this feature. We'll also create a new tag on our DockerHub to support the alpine distro. |
We'll make a new release next week. |
Hi Nginx Team,
I have added default http2 support to the ingress template.
Is there a reason, that the nginx ingress controller does not enable http2 for ssl connections by default?
The only obstacle I had, was that the environment in the debian container (openssl 1.0.1f) does not support http2. That is why I changed the base container to alpine. (wich should also solve #11)
The changed image is uploaded to: (Tag: 0.5.0)
https://quay.io/repository/nico_schieder/nginxinc-kubernetes-ingress
Please keep in mind that I could not test the nginx plus config.