Skip to content

Commit

Permalink
Make gce's kubeconfig context include the gce project
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
j3ffml committed Feb 11, 2015
1 parent 15c57ef commit 3da5d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function kube-up {
local kube_auth="kubernetes_auth"

local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
local context="${INSTANCE_PREFIX}"
local context="${PROJECT}-${INSTANCE_PREFIX}"
local user="${INSTANCE_PREFIX}-admin"
local config_dir="${HOME}/.kube/${context}"

Expand Down

0 comments on commit 3da5d27

Please sign in to comment.