title: accessing kubernetes python api through a pod
body: <p>so I need to connect to the python kubernetes client through a pod. I've been trying to use <code>config.load_incluster_config()</code>, basically following the example from <a href="https://github.com/kubernetes-client/python/blob/master/examples/in_cluster_config.py" rel="nofollow noreferrer">here</a>. However it's throwing these errors. </p>
  
  <pre><code>  File "/Users/myname/Library/Python/2.7/lib/python/site-packages/kubernetes/config/incluster_config.py", line 93, in   load_incluster_config
    cert_filename=SERVICE_CERT_FILENAME).load_and_set()
    File "/Users/myname/Library/Python/2.7/lib/python/site- packages/kubernetes/config/incluster_config.py", line 45, in load_and_set
    self._load_config()
    File "/Users/myname/Library/Python/2.7/lib/python/site-packages/kubernetes/config/incluster_config.py", line 51, in _load_config
    raise ConfigException("Service host/port is not set.")
  </code></pre>
  
  <p>I'm using Python 2.7 and Minikube 
  Any hints or suggestions would be really appreciated. thank you.</p>