Load balancer health checks failed for HTTPS

3/8/2018

I have a kubernetes endpoint at MY_IP:80-443 (for HTTP and HTTPS) and I have setup a health check for its loadbalancer looking at port 80. At this moment the endpoint just return 200 OK but the healthcheck keeps saying my pods are unhealthy (marked red).

My question is, is it unhealthy because I just check port 80? But how can I setup health check for port 80 and 443? If I go to https://MY_IP, it returns 200 OK but the browser marked it as Not secure (it does not happen if I access with https://MY_DOMAIN.com), would this be an issue?

-- spondbob
google-cloud-platform
google-kubernetes-engine
kubernetes-health-check

0 Answers