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
4f845ad6
Commit
4f845ad6
authored
Jan 27, 2016
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19642 from MikeSpreitzer/issue/19618
Introduce FLANNEL_OTHER_NET_CONFIG
parents
26677817
d4ab9663
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
config-default.sh
cluster/ubuntu/config-default.sh
+9
-0
reconfDocker.sh
cluster/ubuntu/reconfDocker.sh
+1
-1
util.sh
cluster/ubuntu/util.sh
+2
-2
ubuntu.md
docs/getting-started-guides/ubuntu.md
+2
-0
No files found.
cluster/ubuntu/config-default.sh
View file @
4f845ad6
...
...
@@ -34,6 +34,15 @@ export SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:-192.168.3.0/24} # f
# define the IP range used for flannel overlay network, should not conflict with above SERVICE_CLUSTER_IP_RANGE
export
FLANNEL_NET
=
${
FLANNEL_NET
:-
172
.16.0.0/16
}
# Optionally add other contents to the Flannel configuration JSON
# object normally stored in etcd as /coreos.com/network/config. Use
# JSON syntax suitable for insertion into a JSON object constructor
# after other field name:value pairs. For example:
# FLANNEL_OTHER_NET_CONFIG=', "SubnetMin": "172.16.10.0", "SubnetMax": "172.16.90.0"'
export
FLANNEL_OTHER_NET_CONFIG
FLANNEL_OTHER_NET_CONFIG
=
''
# Admission Controllers to invoke prior to persisting objects in cluster
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,SecurityContextDeny
...
...
cluster/ubuntu/reconfDocker.sh
View file @
4f845ad6
...
...
@@ -36,7 +36,7 @@ function config_etcd {
exit
2
fi
/opt/bin/etcdctl mk /coreos.com/network/config
"{
\"
Network
\"
:
\"
${
FLANNEL_NET
}
\"
,
\"
Backend
\"
: {
\"
Type
\"
:
\"
vxlan
\"
}}"
/opt/bin/etcdctl mk /coreos.com/network/config
"{
\"
Network
\"
:
\"
${
FLANNEL_NET
}
\"
,
\"
Backend
\"
: {
\"
Type
\"
:
\"
vxlan
\"
}
${
FLANNEL_OTHER_NET_CONFIG
}
}"
attempt
=
$((
attempt+1
))
sleep
3
fi
...
...
cluster/ubuntu/util.sh
View file @
4f845ad6
...
...
@@ -396,7 +396,7 @@ function provision-master() {
create-kube-controller-manager-opts '
${
NODE_IPS
}
'
create-kube-scheduler-opts
create-flanneld-opts '127.0.0.1' '
${
MASTER_IP
}
'
sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
FLANNEL_OTHER_NET_CONFIG='
${
FLANNEL_OTHER_NET_CONFIG
}
'
sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
${
BASH_DEBUG_FLAGS
}
cp ~/kube/default/* /etc/default/
...
...
@@ -529,7 +529,7 @@ function provision-masterandnode() {
'
${
MASTER_IP
}
'
create-flanneld-opts '127.0.0.1' '
${
MASTER_IP
}
'
sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
FLANNEL_OTHER_NET_CONFIG='
${
FLANNEL_OTHER_NET_CONFIG
}
'
sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
${
BASH_DEBUG_FLAGS
}
cp ~/kube/default/* /etc/default/
cp ~/kube/init_conf/* /etc/init/
...
...
docs/getting-started-guides/ubuntu.md
View file @
4f845ad6
...
...
@@ -145,6 +145,8 @@ that conflicts with your own private network range.
The
`FLANNEL_NET`
variable defines the IP range used for flannel overlay network,
should not conflict with above
`SERVICE_CLUSTER_IP_RANGE`
.
You can optionally provide additional Flannel network configuration
through
`FLANNEL_OTHER_NET_CONFIG`
, as explained in
`cluster/ubuntu/config-default.sh`
.
**Note:**
When deploying, master needs to be connected to the Internet to download the necessary files.
If your machines are located in a private network that need proxy setting to connect the Internet,
...
...
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