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
9908a028
Commit
9908a028
authored
Jun 21, 2016
by
jianhuiz
Committed by
jianhuiz
Aug 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lbaas subnet and floating network config; lbaas v2; env variable for fixed network
parent
d412d572
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
config-default.sh
cluster/openstack-heat/config-default.sh
+2
-0
configure-salt.yaml
...nstack-heat/kubernetes-heat/fragments/configure-salt.yaml
+4
-0
kubecluster.yaml
cluster/openstack-heat/kubernetes-heat/kubecluster.yaml
+7
-0
util.sh
cluster/openstack-heat/util.sh
+2
-0
No files found.
cluster/openstack-heat/config-default.sh
View file @
9908a028
...
@@ -35,6 +35,8 @@ MINION_FLAVOR=${MINION_FLAVOR:-m1.medium}
...
@@ -35,6 +35,8 @@ MINION_FLAVOR=${MINION_FLAVOR:-m1.medium}
EXTERNAL_NETWORK
=
${
EXTERNAL_NETWORK
:-
public
}
EXTERNAL_NETWORK
=
${
EXTERNAL_NETWORK
:-
public
}
LBAAS_VERSION
=
${
LBAAS_VERSION
:-}
SWIFT_SERVER_URL
=
${
SWIFT_SERVER_URL
:-}
SWIFT_SERVER_URL
=
${
SWIFT_SERVER_URL
:-}
# Flag indicates if new image must be created. If 'false' then image with IMAGE_ID will be used.
# Flag indicates if new image must be created. If 'false' then image with IMAGE_ID will be used.
...
...
cluster/openstack-heat/kubernetes-heat/fragments/configure-salt.yaml
View file @
9908a028
...
@@ -33,6 +33,10 @@ write_files:
...
@@ -33,6 +33,10 @@ write_files:
password=$OS_PASSWORD
password=$OS_PASSWORD
region=$OS_REGION_NAME
region=$OS_REGION_NAME
tenant-id=$OS_TENANT_ID
tenant-id=$OS_TENANT_ID
[LoadBalancer]
lb-version=$LBAAS_VERSION
subnet-id=$SUBNET_ID
floating-network-id=$FLOATING_NETWORK_ID
-
path
:
/srv/salt-overlay/pillar/cluster-params.sls
-
path
:
/srv/salt-overlay/pillar/cluster-params.sls
content
:
|
content
:
|
service_cluster_ip_range: 10.246.0.0/16
service_cluster_ip_range: 10.246.0.0/16
...
...
cluster/openstack-heat/kubernetes-heat/kubecluster.yaml
View file @
9908a028
...
@@ -14,6 +14,10 @@ parameters:
...
@@ -14,6 +14,10 @@ parameters:
description
:
uuid/name of a network to use for floating ip addresses
description
:
uuid/name of a network to use for floating ip addresses
default
:
public
default
:
public
lbaas_version
:
type
:
string
description
:
version of OpenStack LBaaS service. not specifying means auto detect
server_image
:
server_image
:
type
:
string
type
:
string
description
:
glance image used to boot the server
description
:
glance image used to boot the server
...
@@ -293,6 +297,9 @@ resources:
...
@@ -293,6 +297,9 @@ resources:
"
$OS_PASSWORD"
:
{
get_param
:
os_password
}
"
$OS_PASSWORD"
:
{
get_param
:
os_password
}
"
$OS_REGION_NAME"
:
{
get_param
:
os_region_name
}
"
$OS_REGION_NAME"
:
{
get_param
:
os_region_name
}
"
$OS_TENANT_ID"
:
{
get_param
:
os_tenant_id
}
"
$OS_TENANT_ID"
:
{
get_param
:
os_tenant_id
}
"
$LBAAS_VERSION"
:
{
get_param
:
lbaas_version
}
"
$SUBNET_ID"
:
{
get_resource
:
fixed_subnet
}
"
$FLOATING_NETWORK_ID"
:
{
get_attr
:
[
kube_master_floating
,
floating_network_id
]}
"
$role"
:
"
kubernetes-master"
"
$role"
:
"
kubernetes-master"
run_salt
:
run_salt
:
...
...
cluster/openstack-heat/util.sh
View file @
9908a028
...
@@ -202,6 +202,8 @@ function run-heat-script() {
...
@@ -202,6 +202,8 @@ function run-heat-script() {
cd
${
ROOT
}
/kubernetes-heat
cd
${
ROOT
}
/kubernetes-heat
openstack stack create
--timeout
60
\
openstack stack create
--timeout
60
\
--parameter
external_network
=
${
EXTERNAL_NETWORK
}
\
--parameter
external_network
=
${
EXTERNAL_NETWORK
}
\
--parameter
lbaas_version
=
${
LBAAS_VERSION
}
\
--parameter
fixed_network_cidr
=
${
FIXED_NETWORK_CIDR
}
\
--parameter
ssh_key_name
=
${
KUBERNETES_KEYPAIR_NAME
}
\
--parameter
ssh_key_name
=
${
KUBERNETES_KEYPAIR_NAME
}
\
--parameter
server_image
=
${
IMAGE_ID
}
\
--parameter
server_image
=
${
IMAGE_ID
}
\
--parameter
master_flavor
=
${
MASTER_FLAVOR
}
\
--parameter
master_flavor
=
${
MASTER_FLAVOR
}
\
...
...
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