-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Hi,
I am on Google Container Engine and I am trying to get the HTTPS working for two days already without any success. On port 80 all is great but HTTPS just won't work. The further I got was:
$ curl -v https://foo.bar
* Rebuilt URL to: https://foo.bar/
* timeout on name lookup is not supported
* Trying 130.211.x.x...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to foo.bar(130.211.x.x) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: C:/Users/ijaro/AppData/Local/Programs/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Curl_http_done: called premature == 1
* stopped the pause stream!
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
From what I've gathered it might be the fact that Traefik is not terminating the ssl but it forwards it onto the backend on port 80 which causes the unknown protocol error. But I am really, REALLY, just guessing here, I have no freaking idea.
There are a few examples, even on the official page, on how to setup Traefik on Kubernetes, but there is literally no working HTTPS example that I could find.
Also I am not using Google's Load Balancer(1 IP = 1 certificate) but I am using Kubernetes LB.
Another thing is that using file configuration is not working, Kubernetes takes over(ingress), but I get backend XYZ for frontend XYP does not exist, skipping. I think Traefik cannot parse the ingress configuration or something.