Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapper fails if no ~/.kube/config is present #722

Closed
inc0 opened this issue Apr 25, 2018 · 6 comments
Closed

Bootstrapper fails if no ~/.kube/config is present #722

inc0 opened this issue Apr 25, 2018 · 6 comments
Assignees

Comments

@inc0
Copy link

inc0 commented Apr 25, 2018

root@kubeflow-toolbox-0:/kubeflow# /opt/kubeflow/bootstrapper --app-dir=./
{"filename":"app/server.go:109","level":"info","msg":"Reading config from file: /root/.kube/config","time":"2018-04-25T13:40:43Z"}
{"filename":"bootstrap/main.go:46","level":"fatal","msg":"stat /root/.kube/config: no such file or directory\n","time":"2018-04-25T13:40:43Z"}

This is issue if we run it inside k8s pod. Way to authenticate to k8s underneath is somewhat different and we need to implement this mechanism to bootstrapper as well.

@jlewi
Copy link
Contributor

jlewi commented Apr 25, 2018

/assign @kunmingg

@jlewi
Copy link
Contributor

jlewi commented Apr 25, 2018

On GKE one option is to do

gcloud container clusters get-credentials

We'd probably want to combine that with a service account added as a secret with the appropriate environment variables set.

@inc0
Copy link
Author

inc0 commented Apr 25, 2018

well, it's quite easy to just replicate what kubectl does, check this out ksonnet/ksonnet#431

@jlewi
Copy link
Contributor

jlewi commented May 21, 2018

@kunmingg @inc0 what's the status of this issue?

@kunmingg
Copy link
Contributor

We can close it since we already support running bootstrapper inside pod.

@kunmingg
Copy link
Contributor

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants