Closed sekka1 closed 5 years ago
@hbagdi Looking for help with this problem. Thanks.
Ping ping @hbagdi. Could use some help with this problem. Can you take a look?
@sekka1,
Apologies for the delay, I was out for a while.
Which port on Kong is ELB talking to? It looks like ELB has connectivity issues with Kong, right?
Can you try setting up ELB to talk to Kong over HTTP and test it out? Meaning TLS termination will be performed by the ELB and then ELB <-> Kong will be plaintext.
@hbagdi Welcome back =)
Here is the ELB loadbalancer that it create:
Which matches up to the kong-proxy service:
$ kubectl -n gar describe svc gar-kong-kong-proxy
Name: gar-kong-kong-proxy
Namespace: gar
Labels: app=kong
chart=kong-0.9.2
heritage=Tiller
release=gar-kong
Annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: https
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-1:foobar-removed
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: 443
Selector: app=kong,component=app,release=gar-kong
Type: LoadBalancer
IP: 100.64.202.196
LoadBalancer Ingress: internal-removed.us-east-1.elb.amazonaws.com
Port: kong-proxy 80/TCP
TargetPort: 8000/TCP
NodePort: kong-proxy 32693/TCP
Endpoints: 100.96.4.36:8000
Port: kong-proxy-tls 443/TCP
TargetPort: 8443/TCP
NodePort: kong-proxy-tls 30731/TCP
Endpoints: 100.96.4.36:8443
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
Which port on Kong is ELB talking to?
It looks like ELB has connectivity issues with Kong, right?
Can you try setting up ELB to talk to Kong over HTTP and test it out? Meaning TLS termination will be performed by the ELB and then ELB <-> Kong will be plaintext.
Can you make sure that security groups are configured correctly to allow ELB to reach Kong on the TLS port?
Also, another user ran into a similar problem recently, so may be trying changing the ciphers that Kong accepts during TLS negotiation (ssl_cipher_suite
kong.conf property).
The ELB's SG rules look ok. Tried out the ssl_cipher_suite you link to and that was it.
Thanks @hbagdi !!!
Glad to hear that was it.
Is this a request for help?: Yes
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Bug or Im using this wrong
Version of Helm and Kubernetes:
Which chart: stable/kong
What happened: When trying to set up this topology:
The connection from the ELB to Kong never opens and if you cURL this endpoint it just hangs until the ELB times out the connection. I also do not see any log entries in kong for this connection.
As far as I know, the ELB will not do cert validation on the cert that Kong returns.
Not sure if I'm missing any other configs needed?
What you expected to happen: I would expect the ELB to open a connection to kong on the SSL port.
How to reproduce it (as minimally and precisely as possible):
Values yaml file
Test echo pod
Ingress created
Hangs on HTTPS
Success on HTTP
Anything else we need to know: I am unclear on why the http endpoint hangs.
Happy to troubleshoot this if anyone has any ideas.