Determine kubernetes service host and port from environment if available.
This can differ from kubernetes.default.svc in some occasions.
Uses the same logic as the go client (https://github.com/kubernetes/client-go/blob/master/rest/config.go#L313-L336)