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

Make gce's kubeconfig context include the gce project #4337

Merged
merged 1 commit into from
Feb 12, 2015

Conversation

j3ffml
Copy link
Contributor

@j3ffml j3ffml commented Feb 11, 2015

Change the .kubeconfig context that gce kube-up creates to project + instance prefix, so you can spin up clusters with the same name in different compute projects without overwriting .kubeconfig.

Change the .kubeconfig context that gce kube-up creates to project
+ instance prefix, so you can spin up clusters with the same name
in different compute projects without overwriting .kubeconfig.
@roberthbailey
Copy link
Contributor

So we are using project+prefix as a substitute for letting someone assign a name to a cluster?

@satnam6502
Copy link
Contributor

Why not have a sub-directory for each project? Or is that too much hierarchy?
.kube/kubernetes/e2etesting ?

@j3ffml
Copy link
Contributor Author

j3ffml commented Feb 11, 2015

@roberthbailey: yes, this is a temporary solution to fix the overwriting .kubeconfig problem. Proposal for a better solution in #4298

@satnam6502: that's a bit too much hierarchy, particularly because it would only apply to gce. With this change, your .kube directory after creating multiple clusters in different projects will look like this:

.kube/
  project1-clusterA/
    kubernetes_auth
    ...
  project1-clusterB/
    kubernetes_auth
    ...
  project2-clusterA/
    kubernetes_auth
    ...

Note that you can now have 2 gce clusters with the same name if they are in different projects.

@j3ffml
Copy link
Contributor Author

j3ffml commented Feb 12, 2015

Ping @satnam6502

@satnam6502 satnam6502 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 12, 2015
satnam6502 added a commit that referenced this pull request Feb 12, 2015
Make gce's kubeconfig context include the gce project
@satnam6502 satnam6502 merged commit edea91e into kubernetes:master Feb 12, 2015
@j3ffml j3ffml deleted the kubeconfig branch February 12, 2015 23:41
j3ffml added a commit to j3ffml/kubernetes that referenced this pull request Feb 13, 2015
satnam6502 added a commit that referenced this pull request Feb 13, 2015
Retry #4337: Make gce kubeconfig context include project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants