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
4eef5408
Commit
4eef5408
authored
Mar 07, 2017
by
Jamie Hannaford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow minion floating IPs to be optional
parent
302aab9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
config-default.sh
cluster/openstack-heat/config-default.sh
+3
-0
kubecluster.yaml
cluster/openstack-heat/kubernetes-heat/kubecluster.yaml
+6
-0
kubeminion.yaml
cluster/openstack-heat/kubernetes-heat/kubeminion.yaml
+11
-0
util.sh
cluster/openstack-heat/util.sh
+1
-0
No files found.
cluster/openstack-heat/config-default.sh
View file @
4eef5408
...
...
@@ -73,3 +73,6 @@ SOCKS_PROXY=${SOCKS_PROXY:-}
# IPs and Domains that bypass the proxy.
NO_PROXY
=
${
NO_PROXY
:-}
# Whether to assign floating IPs to minions
ASSIGN_FLOATING_IP
=
${
ASSIGN_FLOATING_IP
:-
true
}
cluster/openstack-heat/kubernetes-heat/kubecluster.yaml
View file @
4eef5408
...
...
@@ -161,6 +161,11 @@ parameters:
type
:
string
description
:
Comma seperated list of domains/addresses that bypass proxying.
default
:
localhost
assign_floating_ip
:
type
:
boolean
description
:
Indicates whether floating IPs will be generated for minions
default
:
true
resources
:
...
...
@@ -435,6 +440,7 @@ resources:
https_proxy
:
{
get_param
:
https_proxy
}
socks_proxy
:
{
get_param
:
socks_proxy
}
no_proxy
:
{
get_param
:
no_proxy
}
assign_floating_ip
:
{
get_param
:
assign_floating_ip
}
min_size
:
{
get_param
:
number_of_minions
}
desired_capacity
:
{
get_param
:
number_of_minions
}
max_size
:
{
get_param
:
max_number_of_minions
}
...
...
cluster/openstack-heat/kubernetes-heat/kubeminion.yaml
View file @
4eef5408
...
...
@@ -100,6 +100,11 @@ parameters:
description
:
Comma seperated list of domains/addresses that bypass proxying.
default
:
localhost
assign_floating_ip
:
type
:
boolean
description
:
Indicates whether floating IPs will be generated for minions
default
:
true
# The following are all generated in the parent template.
kube_master_ip
:
type
:
string
...
...
@@ -127,6 +132,9 @@ parameters:
secgroup_node
:
type
:
string
conditions
:
assign_floating_ip
:
{
equals
:
[{
get_param
:
assign_floating_ip
},
true
]}
resources
:
minion_wait_handle
:
...
...
@@ -294,10 +302,13 @@ resources:
properties
:
floating_network
:
{
get_param
:
external_network
}
port_id
:
{
get_resource
:
kube_minion_eth0
}
condition
:
assign_floating_ip
outputs
:
kube_minion_ip
:
value
:
{
get_attr
:
[
kube_minion_eth0
,
fixed_ips
,
0
,
ip_address
]}
kube_minion_external_ip
:
value
:
{
get_attr
:
[
kube_minion_floating
,
floating_ip_address
]}
condition
:
assign_floating_ip
cluster/openstack-heat/util.sh
View file @
4eef5408
...
...
@@ -233,6 +233,7 @@ function run-heat-script() {
--parameter
https_proxy
=
"
${
HTTPS_PROXY
}
"
\
--parameter
socks_proxy
=
"
${
SOCKS_PROXY
}
"
\
--parameter
no_proxy
=
"
${
NO_PROXY
}
"
\
--parameter
assign_floating_ip
=
"
${
ASSIGN_FLOATING_IP
}
"
\
--template
kubecluster.yaml
\
${
STACK_NAME
}
)
...
...
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