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
a745bb17
Commit
a745bb17
authored
Jun 24, 2016
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup in kube-down: removed deletion of old autoscaler.
Cleanup in kube-down: removed deletion of old autoscaler.
parent
35c9e9f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
util.sh
cluster/gce/util.sh
+0
-11
No files found.
cluster/gce/util.sh
View file @
a745bb17
...
...
@@ -953,17 +953,6 @@ function kube-down {
echo
"Bringing down cluster"
set
+e
# Do not stop on error
# Delete autoscaler for nodes if present. We assume that all or none instance groups have an autoscaler
local
autoscaler
autoscaler
=(
$(
gcloud compute instance-groups managed list
\
--zone
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
--regexp
=
"
${
NODE_INSTANCE_PREFIX
}
-.+"
\
--format
=
'value(autoscaled)'
)
)
if
[[
"
${
autoscaler
:-}
"
==
"yes"
]]
;
then
for
group
in
${
INSTANCE_GROUPS
[@]
:-}
;
do
gcloud compute instance-groups managed stop-autoscaling
"
${
group
}
"
--zone
"
${
ZONE
}
"
--project
"
${
PROJECT
}
"
done
fi
# Get the name of the managed instance group template before we delete the
# managed instance group. (The name of the managed instance group template may
# change during a cluster upgrade.)
...
...
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