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
63ce112d
Commit
63ce112d
authored
Aug 31, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GC kubemark image after cluster starts up
parent
14eb029f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
util.sh
cluster/gce/util.sh
+5
-0
config-default.sh
cluster/kubemark/gce/config-default.sh
+1
-0
start-kubemark.sh
test/kubemark/start-kubemark.sh
+8
-0
No files found.
cluster/gce/util.sh
View file @
63ce112d
...
@@ -3130,3 +3130,8 @@ function ssh-to-node() {
...
@@ -3130,3 +3130,8 @@ function ssh-to-node() {
function
prepare-e2e
()
{
function
prepare-e2e
()
{
detect-project
detect-project
}
}
# Delete the image given by $1.
function
delete-image
()
{
gcloud container images delete
--quiet
"
$1
"
}
cluster/kubemark/gce/config-default.sh
View file @
63ce112d
...
@@ -39,6 +39,7 @@ MASTER_OS_DISTRIBUTION=${KUBE_MASTER_OS_DISTRIBUTION:-gci}
...
@@ -39,6 +39,7 @@ MASTER_OS_DISTRIBUTION=${KUBE_MASTER_OS_DISTRIBUTION:-gci}
NODE_OS_DISTRIBUTION
=
${
KUBE_NODE_OS_DISTRIBUTION
:-
gci
}
NODE_OS_DISTRIBUTION
=
${
KUBE_NODE_OS_DISTRIBUTION
:-
gci
}
MASTER_IMAGE
=
${
KUBE_GCE_MASTER_IMAGE
:-
cos
-stable-65-10323-64-0
}
MASTER_IMAGE
=
${
KUBE_GCE_MASTER_IMAGE
:-
cos
-stable-65-10323-64-0
}
MASTER_IMAGE_PROJECT
=
${
KUBE_GCE_MASTER_PROJECT
:-
cos
-cloud
}
MASTER_IMAGE_PROJECT
=
${
KUBE_GCE_MASTER_PROJECT
:-
cos
-cloud
}
CLEANUP_KUBEMARK_IMAGE
=
${
CLEANUP_KUBEMARK_IMAGE
:-
true
}
# GPUs supported in GCE do not have compatible drivers in Debian 7.
# GPUs supported in GCE do not have compatible drivers in Debian 7.
if
[[
"
${
NODE_OS_DISTRIBUTION
}
"
==
"debian"
]]
;
then
if
[[
"
${
NODE_OS_DISTRIBUTION
}
"
==
"debian"
]]
;
then
...
...
test/kubemark/start-kubemark.sh
View file @
63ce112d
...
@@ -220,6 +220,14 @@ function create-and-upload-hollow-node-image {
...
@@ -220,6 +220,14 @@ function create-and-upload-hollow-node-image {
cd
$CURR_DIR
cd
$CURR_DIR
fi
fi
echo
"Created and uploaded the kubemark hollow-node image to docker registry."
echo
"Created and uploaded the kubemark hollow-node image to docker registry."
# Cleanup the kubemark image after the script exits.
if
[[
"
${
CLEANUP_KUBEMARK_IMAGE
:-}
"
==
"true"
]]
;
then
trap
delete-kubemark-image EXIT
fi
}
function
delete-kubemark-image
{
delete-image
"
${
KUBEMARK_IMAGE_REGISTRY
}
/kubemark:
${
KUBEMARK_IMAGE_TAG
}
"
}
}
# Generate secret and configMap for the hollow-node pods to work, prepare
# Generate secret and configMap for the hollow-node pods to work, prepare
...
...
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