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
1f7671b1
Commit
1f7671b1
authored
May 24, 2018
by
Andrew Lytvynov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull gke-exec-auth-plugin binary on Nodes
If the plugin URL is set and VM is not master, pull the plugin binary.
parent
972a74e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
configure.sh
cluster/gce/gci/configure.sh
+16
-0
No files found.
cluster/gce/gci/configure.sh
View file @
1f7671b1
...
@@ -264,6 +264,18 @@ runtime-endpoint: ${CONTAINER_RUNTIME_ENDPOINT:-unix:///var/run/dockershim.sock}
...
@@ -264,6 +264,18 @@ runtime-endpoint: ${CONTAINER_RUNTIME_ENDPOINT:-unix:///var/run/dockershim.sock}
EOF
EOF
}
}
function
install-exec-auth-plugin
{
if
[[
!
${
EXEC_AUTH_PLUGIN_URL
:-}
]]
;
then
return
fi
local
-r
plugin_url
=
"
${
EXEC_AUTH_PLUGIN_URL
}
"
local
-r
plugin_sha1
=
"
${
EXEC_AUTH_PLUGIN_SHA1
}
"
echo
"Downloading gke-exec-auth-plugin binary"
download-or-bust
"
${
plugin_sha1
}
"
"
${
plugin_url
}
"
mv
"
${
KUBE_HOME
}
/gke-exec-auth-plugin"
"
${
KUBE_BIN
}
"
}
function
install-kube-manifests
{
function
install-kube-manifests
{
# Put kube-system pods manifests in ${KUBE_HOME}/kube-manifests/.
# Put kube-system pods manifests in ${KUBE_HOME}/kube-manifests/.
local
dst_dir
=
"
${
KUBE_HOME
}
/kube-manifests"
local
dst_dir
=
"
${
KUBE_HOME
}
/kube-manifests"
...
@@ -403,6 +415,10 @@ function install-kube-binary-config {
...
@@ -403,6 +415,10 @@ function install-kube-binary-config {
# Install crictl on each node.
# Install crictl on each node.
install-crictl
install-crictl
if
[[
"
${
KUBERNETES_MASTER
:-}
"
==
"false"
]]
;
then
install-exec-auth-plugin
fi
# Clean up.
# Clean up.
rm
-rf
"
${
KUBE_HOME
}
/kubernetes"
rm
-rf
"
${
KUBE_HOME
}
/kubernetes"
rm
-f
"
${
KUBE_HOME
}
/
${
server_binary_tar
}
"
rm
-f
"
${
KUBE_HOME
}
/
${
server_binary_tar
}
"
...
...
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