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
249a5c9f
Commit
249a5c9f
authored
Mar 15, 2016
by
OHTAKE Tomohiro
Committed by
Lukasz Zajaczkowski
Apr 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use host-gw flannel for better performance
parent
188b303d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
+23
-19
provision-network-master.sh
...ack/kubernetes-heat/fragments/provision-network-master.sh
+1
-2
kubecluster.yaml
cluster/openstack/kubernetes-heat/kubecluster.yaml
+14
-8
kubeminion.yaml
cluster/openstack/kubernetes-heat/kubeminion.yaml
+8
-9
No files found.
cluster/openstack/kubernetes-heat/fragments/provision-network-master.sh
View file @
249a5c9f
...
...
@@ -49,8 +49,7 @@ cat <<EOF > /etc/flannel-config.json
"Network": "
${
CONTAINER_SUBNET
}
",
"SubnetLen": 24,
"Backend": {
"Type": "udp",
"Port": 8285
"Type": "host-gw"
}
}
EOF
...
...
cluster/openstack/kubernetes-heat/kubecluster.yaml
View file @
249a5c9f
...
...
@@ -144,21 +144,23 @@ resources:
-
protocol
:
tcp
port_range_min
:
22
port_range_max
:
22
-
remote_mode
:
remote_group_id
secgroup_
kubernetes
:
secgroup_
master
:
type
:
OS::Neutron::SecurityGroup
properties
:
rules
:
-
protocol
:
tcp
# etcd for flanneld
port_range_min
:
4379
port_range_max
:
4380
-
protocol
:
udp
# flannel backend
port_range_min
:
8285
port_range_max
:
8285
-
protocol
:
tcp
# api-server
port_range_min
:
443
port_range_max
:
443
secgroup_node
:
type
:
OS::Neutron::SecurityGroup
properties
:
rules
:
-
protocol
:
icmp
-
protocol
:
tcp
-
protocol
:
udp
######################################################################
#
...
...
@@ -261,9 +263,11 @@ resources:
network
:
{
get_resource
:
fixed_network
}
security_groups
:
-
{
get_resource
:
secgroup_base
}
-
{
get_resource
:
secgroup_
kubernetes
}
-
{
get_resource
:
secgroup_
master
}
fixed_ips
:
-
subnet
:
{
get_resource
:
fixed_subnet
}
allowed_address_pairs
:
-
ip_address
:
10.246.0.0/16
replacement_policy
:
AUTO
kube_master_floating
:
...
...
@@ -302,6 +306,8 @@ resources:
wait_condition_timeout
:
{
get_param
:
wait_condition_timeout
}
metadata
:
{
"
metering.stack"
:
{
get_param
:
"
OS::stack_id"
}}
cluster_name
:
{
get_param
:
"
OS::stack_name"
}
secgroup_base
:
{
get_resource
:
secgroup_base
}
secgroup_node
:
{
get_resource
:
secgroup_node
}
min_size
:
{
get_param
:
number_of_minions
}
desired_capacity
:
{
get_param
:
number_of_minions
}
max_size
:
{
get_param
:
max_number_of_minions
}
...
...
cluster/openstack/kubernetes-heat/kubeminion.yaml
View file @
249a5c9f
...
...
@@ -60,6 +60,10 @@ parameters:
description
:
metadata for ceilometer query
cluster_name
:
type
:
string
secgroup_base
:
type
:
string
secgroup_node
:
type
:
string
resources
:
...
...
@@ -73,14 +77,6 @@ resources:
handle
:
{
get_resource
:
minion_wait_handle
}
timeout
:
{
get_param
:
wait_condition_timeout
}
secgroup_all_open
:
type
:
OS::Neutron::SecurityGroup
properties
:
rules
:
-
protocol
:
icmp
-
protocol
:
tcp
-
protocol
:
udp
######################################################################
#
# software configs. these are components that are combined into
...
...
@@ -182,9 +178,12 @@ resources:
properties
:
network
:
{
get_param
:
fixed_network
}
security_groups
:
-
get_resource
:
secgroup_all_open
-
{
get_param
:
secgroup_base
}
-
{
get_param
:
secgroup_node
}
fixed_ips
:
-
subnet
:
{
get_param
:
fixed_subnet
}
allowed_address_pairs
:
-
ip_address
:
10.246.0.0/16
replacement_policy
:
AUTO
kube_minion_floating
:
...
...
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