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
7933edd2
Commit
7933edd2
authored
Jul 26, 2018
by
Koonwah Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add KUBE_CUSTOM_CALICO_NODE_DAEMONSET_YAML and KUBE_CUSTOM_TYPHA_DEPLOYMENT_YAML
parent
cef2d325
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
config-default.sh
cluster/gce/config-default.sh
+2
-0
config-test.sh
cluster/gce/config-test.sh
+2
-0
util.sh
cluster/gce/util.sh
+4
-0
No files found.
cluster/gce/config-default.sh
View file @
7933edd2
...
...
@@ -181,6 +181,8 @@ fi
# Optional: Enable netd.
ENABLE_NETD
=
"
${
KUBE_ENABLE_NETD
:-
false
}
"
CUSTOM_NETD_YAML
=
"
${
KUBE_CUSTOM_NETD_YAML
:-}
"
CUSTOM_CALICO_NODE_DAEMONSET_YAML
=
"
${
KUBE_CUSTOM_CALICO_NODE_DAEMONSET_YAML
:-}
"
CUSTOM_TYPHA_DEPLOYMENT_YAML
=
"
${
KUBE_CUSTOM_TYPHA_DEPLOYMENT_YAML
:-}
"
# To avoid running netd on a node that is not configured appropriately,
# label each Node so that the DaemonSet can run the Pods only on ready Nodes.
...
...
cluster/gce/config-test.sh
View file @
7933edd2
...
...
@@ -213,6 +213,8 @@ NON_MASTER_NODE_LABELS="${KUBE_NON_MASTER_NODE_LABELS:-}"
# Optional: Enable netd.
ENABLE_NETD
=
"
${
KUBE_ENABLE_NETD
:-
false
}
"
CUSTOM_NETD_YAML
=
"
${
KUBE_CUSTOM_NETD_YAML
:-}
"
CUSTOM_CALICO_NODE_DAEMONSET_YAML
=
"
${
KUBE_CUSTOM_CALICO_NODE_DAEMONSET_YAML
:-}
"
CUSTOM_TYPHA_DEPLOYMENT_YAML
=
"
${
KUBE_CUSTOM_TYPHA_DEPLOYMENT_YAML
:-}
"
# To avoid running netd on a node that is not configured appropriately,
# label each Node so that the DaemonSet can run the Pods only on ready Nodes.
...
...
cluster/gce/util.sh
View file @
7933edd2
...
...
@@ -900,6 +900,10 @@ REQUIRE_METADATA_KUBELET_CONFIG_FILE: $(yaml-quote true)
ENABLE_NETD:
$(
yaml-quote
${
ENABLE_NETD
:-
false
})
CUSTOM_NETD_YAML: |
$(
echo
"
${
CUSTOM_NETD_YAML
:-}
"
|
sed
-e
"s/'/''/g"
)
CUSTOM_CALICO_NODE_DAEMONSET_YAML: |
$(
echo
"
${
CUSTOM_CALICO_NODE_DAEMONSET_YAML
:-}
"
|
sed
-e
"s/'/''/g"
)
CUSTOM_TYPHA_DEPLOYMENT_YAML: |
$(
echo
"
${
CUSTOM_TYPHA_DEPLOYMENT_YAML
:-}
"
|
sed
-e
"s/'/''/g"
)
EOF
if
[[
"
${
master
}
"
==
"true"
&&
"
${
MASTER_OS_DISTRIBUTION
}
"
==
"gci"
]]
||
\
[[
"
${
master
}
"
==
"false"
&&
"
${
NODE_OS_DISTRIBUTION
}
"
==
"gci"
]]
||
\
...
...
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