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
0b7c2fa6
Commit
0b7c2fa6
authored
May 30, 2016
by
Marcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to enable scale down in kube-up for gce
parent
73a5a13f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
config-default.sh
cluster/gce/config-default.sh
+1
-0
config-test.sh
cluster/gce/config-test.sh
+1
-0
util.sh
cluster/gce/util.sh
+2
-0
No files found.
cluster/gce/config-default.sh
View file @
0b7c2fa6
...
...
@@ -121,6 +121,7 @@ ENABLE_NODE_AUTOSCALER="${KUBE_ENABLE_NODE_AUTOSCALER:-false}"
if
[[
"
${
ENABLE_NODE_AUTOSCALER
}
"
==
"true"
]]
;
then
AUTOSCALER_MIN_NODES
=
"
${
KUBE_AUTOSCALER_MIN_NODES
:-}
"
AUTOSCALER_MAX_NODES
=
"
${
KUBE_AUTOSCALER_MAX_NODES
:-}
"
AUTOSCALER_ENABLE_SCALE_DOWN
=
"
${
KUBE_AUTOSCALER_ENABLE_SCALE_DOWN
:-
false
}
"
fi
# Admission Controllers to invoke prior to persisting objects in cluster
...
...
cluster/gce/config-test.sh
View file @
0b7c2fa6
...
...
@@ -135,6 +135,7 @@ ENABLE_NODE_AUTOSCALER="${KUBE_ENABLE_NODE_AUTOSCALER:-false}"
if
[[
"
${
ENABLE_NODE_AUTOSCALER
}
"
==
"true"
]]
;
then
AUTOSCALER_MIN_NODES
=
"
${
KUBE_AUTOSCALER_MIN_NODES
:-}
"
AUTOSCALER_MAX_NODES
=
"
${
KUBE_AUTOSCALER_MAX_NODES
:-}
"
AUTOSCALER_ENABLE_SCALE_DOWN
=
"
${
KUBE_AUTOSCALER_ENABLE_SCALE_DOWN
:-
false
}
"
fi
# If we included ResourceQuota, we should keep it at the end of the list to prevent incremeting quota usage prematurely.
...
...
cluster/gce/util.sh
View file @
0b7c2fa6
...
...
@@ -837,6 +837,8 @@ function create-cluster-autoscaler-mig-config() {
local
mig_url
=
"https://www.googleapis.com/compute/v1/projects/
${
PROJECT
}
/zones/
${
ZONE
}
/instanceGroups/
${
group_name
}
"
AUTOSCALER_MIG_CONFIG
=
"
${
AUTOSCALER_MIG_CONFIG
}
--nodes=
${
this_mig_min
}
:
${
this_mig_max
}
:
${
mig_url
}
"
done
AUTOSCALER_MIG_CONFIG
=
"{AUTOSCALER_MIG_CONFIG} --experimental-scale-down-enabled=
${
AUTOSCALER_ENABLE_SCALE_DOWN
}
"
}
# Assumes:
...
...
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