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
72ad4f12
Commit
72ad4f12
authored
Feb 03, 2015
by
Satnam Singh
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4092 from zmerlynn/parameterize_monitoring_logging
Parameterize ENABLE_{NODE,CLUSTER}_{LOGGING,MONITORING} and LOGGING_DESTINATION
parents
be310ac8
2f546ce6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
config-default.sh
cluster/gce/config-default.sh
+12
-12
config-test.sh
cluster/gce/config-test.sh
+9
-6
No files found.
cluster/gce/config-default.sh
View file @
72ad4f12
...
...
@@ -49,9 +49,9 @@ function increment_ipv4 {
ip_dec
=
$((
ip_dec
<<
8
))
ip_dec=
$((
ip_dec
+
$comp
))
done
ip_dec=
$((
ip_dec
+
$incr_amount
))
ip_components=()
local i
for ((i=0; i < 4; i++)); do
...
...
@@ -61,13 +61,13 @@ function increment_ipv4 {
done
echo "
${
ip_components
[3]
}
.
${
ip_components
[2]
}
.
${
ip_components
[1]
}
.
${
ip_components
[0]
}
"
}
node_count="
${
NUM_MINIONS
}
"
next_node="10.244.0.0"
node_subnet_size=24
node_subnet_count=
$((
2
**
(
32
-
$node_subnet_size
))
)
subnets=()
for ((node_num=0; node_num<node_count; node_num++)); do
subnets+=("
$next_node
"/"
${
node_subnet_size
}
")
next_node=
$(
increment_ipv4
$next_node
$node_subnet_count
)
...
...
@@ -81,21 +81,21 @@ MINION_SCOPES=("storage-ro" "compute-rw")
POLL_SLEEP_INTERVAL=3
PORTAL_NET="10.0.0.0/16"
# When set to true, Docker Cache is enabled by default as part of the cluster bring up.
ENABLE_DOCKER_REGISTRY_CACHE=true
# Optional: Install node monitoring.
ENABLE_NODE_MONITORING=
true
ENABLE_NODE_MONITORING=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
# Optional: When set to true, heapster will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING=true
# When set to true, Docker Cache is enabled by default as part of the cluster bring up.
ENABLE_DOCKER_REGISTRY_CACHE=true
ENABLE_CLUSTER_MONITORING="
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Optional: Enable node logging.
ENABLE_NODE_LOGGING=
true
LOGGING_DESTINATION=
elasticsearch
# options: elasticsearch, gcp
ENABLE_NODE_LOGGING=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
LOGGING_DESTINATION=
"
${
KUBE_LOGGING_DESTINATION
:-
elasticsearch
}
"
# options: elasticsearch, gcp
# Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_LOGGING=
true
ENABLE_CLUSTER_LOGGING=
"
${
KUBE_ENABLE_CLUSTER_LOGGING
:-
true
}
"
ELASTICSEARCH_LOGGING_REPLICAS=1
# Don't require https for registries in our local RFC1918 network
...
...
cluster/gce/config-test.sh
View file @
72ad4f12
...
...
@@ -44,17 +44,20 @@ PORTAL_NET="10.0.0.0/16"
# When set to true, Docker Cache is enabled by default as part of the cluster bring up.
ENABLE_DOCKER_REGISTRY_CACHE
=
true
ENABLE_NODE_MONITORING
=
true
# Optional: Install node monitoring.
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
ENABLE_NODE_LOGGING
=
true
LOGGING_DESTINATION
=
elasticsearch
# options: elasticsearch, gcp
# Optional: When set to true, heapster will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
false
}
"
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
LOGGING_DESTINATION
=
"
${
KUBE_LOGGING_DESTINATION
:-
elasticsearch
}
"
# options: elasticsearch, gcp
# Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
"
${
KUBE_ENABLE_CLUSTER_LOGGING
:-
false
}
"
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ENABLE_CLUSTER_MONITORING
=
false
# Don't require https for registries in our local RFC1918 network
EXTRA_DOCKER_OPTS
=
"--insecure-registry 10.0.0.0/8"
...
...
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