'Perform and return a GET request against kubelet. Support auth and TLS validation.'

def perform_kubelet_query(self, url, verbose=True, timeout=10):

    tls_context = self.tls_settings
    headers = None
    cert = tls_context.get('kubelet_client_cert')
    verify = tls_context.get('kubelet_verify', DEFAULT_TLS_VERIFY)
    if ((not cert) and url.lower().startswith('https') and ('bearer_token' in self.tls_settings)):
        headers = {'Authorization': 'Bearer    {}'.format(self.tls_settings.get('bearer_token'))}
    return requests.get(url, timeout=timeout, verify=verify, cert=cert, headers=headers, params={'verbose': verbose})
