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
9eba9a7f
Commit
9eba9a7f
authored
Jul 26, 2018
by
Aaron Crickenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default some unbound cluster/gce env vars
Values based on how they were being used, so the true/false check defaults to false, and the non-empty check defaults to empty
parent
9d4b5746
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
config-default.sh
cluster/gce/config-default.sh
+4
-0
config-test.sh
cluster/gce/config-test.sh
+4
-0
No files found.
cluster/gce/config-default.sh
View file @
9eba9a7f
...
...
@@ -193,6 +193,7 @@ fi
#
# TODO(#8867) Enable by default.
ENABLE_METADATA_CONCEALMENT
=
"
${
ENABLE_METADATA_CONCEALMENT
:-
false
}
"
# true, false
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
# Put the necessary label on the node so the daemonset gets scheduled.
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
...
...
@@ -412,6 +413,9 @@ HEAPSTER_GCP_MEMORY_PER_NODE="${HEAPSTER_GCP_MEMORY_PER_NODE:-4}"
HEAPSTER_GCP_BASE_CPU
=
"
${
HEAPSTER_GCP_BASE_CPU
:-
80m
}
"
HEAPSTER_GCP_CPU_PER_NODE
=
"
${
HEAPSTER_GCP_CPU_PER_NODE
:-
0
.5
}
"
# Optional: custom system banner for dashboard addon
CUSTOM_KUBE_DASHBOARD_BANNER
=
"
${
CUSTOM_KUBE_DASHBOARD_BANNER
:-}
"
# Default Stackdriver resources version exported by Fluentd-gcp addon
LOGGING_STACKDRIVER_RESOURCE_TYPES
=
"
${
LOGGING_STACKDRIVER_RESOURCE_TYPES
:-
old
}
"
...
...
cluster/gce/config-test.sh
View file @
9eba9a7f
...
...
@@ -229,6 +229,7 @@ fi
# Enable metadata concealment by firewalling pod traffic to the metadata server
# and run a proxy daemonset on nodes.
ENABLE_METADATA_CONCEALMENT
=
"
${
ENABLE_METADATA_CONCEALMENT
:-
true
}
"
# true, false
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
# Put the necessary label on the node so the daemonset gets scheduled.
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
...
...
@@ -428,6 +429,9 @@ HEAPSTER_GCP_MEMORY_PER_NODE="${HEAPSTER_GCP_MEMORY_PER_NODE:-4}"
HEAPSTER_GCP_BASE_CPU
=
"
${
HEAPSTER_GCP_BASE_CPU
:-
80m
}
"
HEAPSTER_GCP_CPU_PER_NODE
=
"
${
HEAPSTER_GCP_CPU_PER_NODE
:-
0
.5
}
"
# Optional: custom system banner for dashboard addon
CUSTOM_KUBE_DASHBOARD_BANNER
=
"
${
CUSTOM_KUBE_DASHBOARD_BANNER
:-}
"
# Default Stackdriver resources version exported by Fluentd-gcp addon
LOGGING_STACKDRIVER_RESOURCE_TYPES
=
"
${
LOGGING_STACKDRIVER_RESOURCE_TYPES
:-
old
}
"
...
...
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