-
Notifications
You must be signed in to change notification settings - Fork 150
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
service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443" is ignored! #324
Comments
Does this show all of the LB-specific annotations you have set? My guess is you missed to specify the certificate ID or TLS pass-through, one of which must be given when HTTPS is used. See also https://github.com/digitalocean/digitalocean-cloud-controller-manager/blob/master/docs/controllers/services/annotations.md#servicebetakubernetesiodo-loadbalancer-tls-ports, especially the second paragraph. |
Hi @timoreimann unfortunatley your guess is wrong.
all annotations work except port 443. i have to go to the UI and uopdate it from 80 to 443 :( after evy change |
@timoreimann is there way to gather debug information or watch the logs? |
Clarifying "ignored". It's even always set to "80" even if it was correcten in the UI manually as soon Kubernetes Service resource is touched. |
I have it setup as http with forced redirect and it seems to work, I created the LB several months ago and updated it to add the
|
@aholbreich it almost sounds like you have a Service Port definition provided for port 80 but none for port 443. Could you please share your full Service manifest? |
Also worth noting that errors are propagated as events in the namespace of the Service. Not sure if it'd help you here since it doesn't seem to be about a legitimate error. And yeah, changes done to the LB in the DO control panel are reconciled away by design. All configurations should go through the Service object. |
this is the last one: P.S. this docu |
Your issue is that you have a Service Port definition for port 80 specified but none for port 443. Each specified port annotation needs to match up with a Service port or otherwise the corresponding annotations will be ignored silently. We could probably do better here by emitting a warning event. The example is correct: the default protocol of This official example is perhaps what you want. |
Sounds still confusing to me. 1) Having that LB is able to terminate SSL on 443 and forward to any workers port. If i got you correct i have to provide corresponing 443 ports on the service? |
But i've got it working. The key is to have 443 as port on LB. I think it's a bit misleading, but maybe do the job |
@aholbreich glad you got it to work. 🎉
I hear what you're saying: you'd like accept HTTPS traffic on the LB's port 443 and forward the HTTP traffic to port 80. I think that's a reasonable request but unfortunately it is not possible today. We have plans to fundamentally change and improve the way LBs can be configured, possibly leveraging a more structured and less error-prone CRD format. I think you discovered #256 already which is going to be part of the solution. |
My config
however Loadbalancer ignored 443 port settiong and is still listening on 80. Same shown on Digital Ocean Admin Console
The text was updated successfully, but these errors were encountered: