Closed andykent closed 5 years ago
@andykent thanks for bringing this to our attention.
I'm thinking that we can solve this by supporting another annotation to specify the HTTP/2 ports, similar to what we have today for HTTPS. That would allow everyone to define just the ports they want for each protocol.
The implementation should be pretty straight forward. Let me know if you have any thoughts on that.
The above mentioned PR will be shipped on DOKS with the next round of image releases.
Thanks for the quick fix.
As a user though I do think these annotations are getting more and more confusing and edge case-y. Not sure about backwards compatibility but is it worth exploring support for a more unified annotation to specify all port/protocols in one place. Maybe something like this...
service.beta.kubernetes.io/do-loadbalancer-protocols: http:80, https:443, http2:8080
Just a thought.
@andykent I very much agree with you on annotations becoming unwieldy -- it's something we are also feeling and want to improve on.
Coming up with a more consistent annotation syntax would be one way. Another one that I think would be worthwhile exploring is to introduce a CRD. That would allow for better opportunities to validate input and support programmatic access.
I just created #256 to track this effort and will copy your suggestion as well as the CRD idea over there. Feel free to continue discussing on that issue.
Thanks!
Great, thanks! I will keep an eager eye on #256 then an add any further ideas that come up over there.
Thanks again.
Just updated my cluster hopping to switch to http2 but when changing from
http
tohttp2
it also switched port 80 to http2 which I don't think is the expected behaviour.The docs state...
But the following config produces a LB with http2 as the protocol for both ports 80 and 443...
Switching the protocol to
http
has the expected behaviour of port 80 - http, port 443 - https.