Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
70a576e2
Commit
70a576e2
authored
Apr 20, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use standalone kubectl for gke, remove special case for vagrant
also fix hack/local-up-cluster.sh kubeconfig instructions
parent
d44e9b48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
kubectl.sh
cluster/kubectl.sh
+3
-16
local-up-cluster.sh
hack/local-up-cluster.sh
+2
-2
No files found.
cluster/kubectl.sh
View file @
70a576e2
...
...
@@ -100,25 +100,12 @@ elif [[ ! -x "${KUBECTL_PATH}" ]]; then
fi
kubectl
=
"
${
KUBECTL_PATH
:-${
kubectl
}}
"
# While GKE requires the kubectl binary, it's actually called through
# gcloud. But we need to adjust the PATH so gcloud gets the right one.
# GKE stores it's kubeconfig in a separate location.
if
[[
"
$KUBERNETES_PROVIDER
"
==
"gke"
]]
;
then
detect-project &> /dev/null
export
PATH
=
$(
get_absolute_dirname
$kubectl
)
:
$PATH
kubectl
=
"
${
GCLOUD
}
"
# GKE runs kubectl through gcloud.
config
=(
"alpha"
"container"
"kubectl"
"--project=
${
PROJECT
}
"
"--zone=
${
ZONE
}
"
"--cluster=
${
CLUSTER_NAME
}
"
)
elif
[[
"
$KUBERNETES_PROVIDER
"
==
"vagrant"
]]
;
then
# When we are using vagrant it has hard coded kubeconfig, and do not clobber public endpoints
config
=(
"--kubeconfig=
$HOME
/.kubernetes_vagrant_kubeconfig"
"--kubeconfig=
${
HOME
}
/.config/gcloud/kubernetes/kubeconfig"
"--context=gke_
${
PROJECT
}
_
${
ZONE
}
_
${
CLUSTER_NAME
}
"
)
fi
...
...
hack/local-up-cluster.sh
View file @
70a576e2
...
...
@@ -176,8 +176,8 @@ Logs:
To start using your cluster, open up another terminal/tab and run:
cluster/kubectl.sh config set-cluster local --server=http://
${
API_HOST
}
:
${
API_PORT
}
--insecure-skip-tls-verify=true
--global
cluster/kubectl.sh config set-context local --cluster=local
--global
cluster/kubectl.sh config set-cluster local --server=http://
${
API_HOST
}
:
${
API_PORT
}
--insecure-skip-tls-verify=true
cluster/kubectl.sh config set-context local --cluster=local
cluster/kubectl.sh config use-context local
cluster/kubectl.sh
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment