SSL Handshake Error When Using Apache as a Proxy to Kubernetes
Asked by
dRop cap
I'm facing an issue while trying to set up a proxy from Apache to a Kubernetes service and I'm getting an SSL handshake error. Here's my Apache configuration for HTTPS: I have the necessary SSL settings, including the certificate and key files. The backend service in Kubernetes is defined in the ingress, but whenever I hit the proxy, it fails with error messages indicating that the SSL handshake was unsuccessful. Here's a snippet of the error log: "SSL Proxy connect failed" and others indicating connection issues. Could someone help me troubleshoot this?
Answers
You might be over-complicating things by trying to proxy a proxy. It's generally cleaner to avoid this setup if possible. Also, keep in mind that different applications sharing the same production URL could cause path collisions. Make sure your pathing is unique between services to prevent issues. Check if using different paths can help you avoid this problem altogether.
Reply to this answer
You're right about the potential for collisions. Ingress rules in Kubernetes can manage different paths, so ensure each service has its own unique path. You can actually have numerous hosts using the same hostname but with distinct paths. Also, remember to review your ingress controller configurations thoroughlyโtesting with `nginx -T` in your controller pod might give you insights into whatโs going wrong. From what you've described, you might not even need Apache for this.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions