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
bfd68b35
Commit
bfd68b35
authored
Mar 23, 2016
by
Andy Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trusty: Update heapster manifest handling code
parent
f89432e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+6
-2
No files found.
cluster/gce/trusty/configure-helper.sh
View file @
bfd68b35
...
...
@@ -605,10 +605,12 @@ prepare_kube_addons() {
# Replace the salt configurations with variable values.
metrics_memory
=
"200Mi"
eventer_memory
=
"200Mi"
readonly
metrics_memory_per_node
=
"4"
readonly
eventer_memory_per_node
=
"500"
if
[
-n
"
${
NUM_NODES
:-}
"
]
&&
[
"
${
NUM_NODES
}
"
-ge
1
]
;
then
num_kube_nodes
=
"
$((${
NUM_NODES
}
-
1
))
"
metrics_memory
=
"
$((${
num_kube_nodes
}
*
4
+
200
))
Mi"
eventer_memory
=
"
$((${
num_kube_nodes
}
*
500
+
200
*
1024
))
Ki"
metrics_memory
=
"
$((${
num_kube_nodes
}
*
${
metrics_memory_per_node
}
+
200
))
Mi"
eventer_memory
=
"
$((${
num_kube_nodes
}
*
${
eventer_memory_per_node
}
+
200
*
1024
))
Ki"
fi
controller_yaml
=
"
${
addon_dst_dir
}
/
${
file_dir
}
"
if
[
"
${
ENABLE_CLUSTER_MONITORING
:-}
"
=
"googleinfluxdb"
]
;
then
...
...
@@ -619,6 +621,8 @@ prepare_kube_addons() {
remove_salt_config_comments
"
${
controller_yaml
}
"
sed
-i
-e
"s@{{ *metrics_memory *}}@
${
metrics_memory
}
@g"
"
${
controller_yaml
}
"
sed
-i
-e
"s@{{ *eventer_memory *}}@
${
eventer_memory
}
@g"
"
${
controller_yaml
}
"
sed
-i
-e
"s@{{ *metrics_memory_per_node *}}@
${
metrics_memory_per_node
}
@g"
"
${
controller_yaml
}
"
sed
-i
-e
"s@{{ *eventer_memory_per_node *}}@
${
eventer_memory_per_node
}
@g"
"
${
controller_yaml
}
"
fi
cp
"
${
addon_src_dir
}
/namespace.yaml"
"
${
addon_dst_dir
}
"
if
[
"
${
ENABLE_L7_LOADBALANCING
:-}
"
=
"glbc"
]
;
then
...
...
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