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
4d55dbe6
Commit
4d55dbe6
authored
Feb 12, 2016
by
Mike Spreitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced envar KUBE_PROXY_EXTRA_OPTS
Resolves #21168
parent
9d776d99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
config-default.sh
cluster/ubuntu/config-default.sh
+4
-0
util.sh
cluster/ubuntu/util.sh
+6
-3
No files found.
cluster/ubuntu/config-default.sh
View file @
4d55dbe6
...
...
@@ -67,6 +67,10 @@ ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-true}"
# --insecure-registry for local registries.
DOCKER_OPTS
=
${
DOCKER_OPTS
:-
""
}
# Extra options to set on the kube-proxy command line. This is useful
# for selecting the iptables proxy-mode, for example.
KUBE_PROXY_EXTRA_OPTS
=
${
KUBE_PROXY_EXTRA_OPTS
:-
""
}
# Optional: Install cluster DNS.
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
# DNS_SERVER_IP must be a IP in SERVICE_CLUSTER_IP_RANGE
...
...
cluster/ubuntu/util.sh
View file @
4d55dbe6
...
...
@@ -248,7 +248,8 @@ function create-kube-proxy-opts() {
KUBE_PROXY_OPTS="\
--hostname-override=
${
1
}
\
--master=http://
${
2
}
:8080 \
--logtostderr=true"
--logtostderr=true \
${
3
}
"
EOF
}
...
...
@@ -450,7 +451,8 @@ function provision-node() {
'
${
KUBELET_CONFIG
}
'
create-kube-proxy-opts
\
'
${
1
#*@
}
'
\
'
${
MASTER_IP
}
'
'
${
MASTER_IP
}
'
\
'
${
KUBE_PROXY_EXTRA_OPTS
}
'
create-flanneld-opts '
${
MASTER_IP
}
' '
${
1
#*@
}
'
sudo -E -p '[sudo] password to start node: ' -- /bin/bash -ce '
...
...
@@ -526,7 +528,8 @@ function provision-masterandnode() {
'
${
KUBELET_CONFIG
}
'
create-kube-proxy-opts
\
'
${
MASTER_IP
}
'
\
'
${
MASTER_IP
}
'
'
${
MASTER_IP
}
'
\
'
${
KUBE_PROXY_EXTRA_OPTS
}
'
create-flanneld-opts '127.0.0.1' '
${
MASTER_IP
}
'
FLANNEL_OTHER_NET_CONFIG='
${
FLANNEL_OTHER_NET_CONFIG
}
' sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
...
...
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