Hi Yuri,

Yes, I tried explicitly calling
    config.load_kube_config('/home/mjb/.kube/config')

but this doesn't seem to have effect (?!), afterward  api_client.host is
set to http://127.0.0.1:8080 which is not the value in
'home/mjb/.kube/config'

[image: Inline images 1]

$ grep server /home/mjb/.kube/config
    server: https://192.168.99.100:8443
    client-certificate: /home/mjb/.minikube/apiserver.crt
    client-key: /home/mjb/.minikube/apiserver.key

I get the answer I expect from the command-line:
[image: Inline images 2]


To answer your other question, myself and Haikel Guemar are running a
Container Orchestration lab at PyCon this week, doing some Docker Swarm,
Kubernetes and Mesos respectively via command-line and via Python (of
course!).

Regards,
Mike.


On 14 May 2017 at 09:42, Yuvi Panda <[email protected]> wrote:

> Did you try the second suggestion?
>
> On Sun, May 14, 2017 at 12:40 AM, Michael Bright <[email protected]>
> wrote:
> >
> > Hi Yuri,
> >
> > It expands to /home/mjb/.kube/config as I expect.
> >
> > Thx,
> > Mike.
> >
> > On 14 May 2017 at 09:17, Yuvi Panda <[email protected]> wrote:
> >>
> >> import os
> >> os.path.expanduser('~/.kube/config')
> >
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Project Jupyter" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/jupyter/CAMZ8oZ1m6P5dtCFkOnQW2GHmk4wo-
> 9ig7Tx_ChiFd6J%3D1sXpyQ%40mail.gmail.com.
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Yuvi Panda T
> http://yuvi.in/blog
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Project Jupyter" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jupyter/ThWmiZOGuAc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/CAFw%3DySgJiBsr4PgRSKxH6J-bFGyAHHMSB0f9GWXGhfvrsQOdxA%
> 40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAMZ8oZ18bQ-Ao2RYRA8KMwXiKPb-SbYdWB98Sz4uCe%2BcYRrthg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to