Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
4662b41d
Commit
4662b41d
authored
8 years ago
by
Antoine Legrand
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #393 from bogdando/ci_changes
Add CI test layouts
parents
4fb4ac12
ff5a48c9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+8
-4
8 additions, 4 deletions
.travis.yml
tests/templates/inventory-gce.j2
+11
-0
11 additions, 0 deletions
tests/templates/inventory-gce.j2
with
19 additions
and
4 deletions
.travis.yml
+
8
−
4
View file @
4662b41d
...
...
@@ -72,19 +72,22 @@ env:
CLOUD_IMAGE=ubuntu-1604-xenial
CLOUD_REGION=asia-east1-c
#
Ubuntu 15.10
#
Extra cases for separated roles
-
>-
KUBE_NETWORK_PLUGIN=flannel
CLOUD_IMAGE=
ubuntu-1510-wily
CLOUD_IMAGE=
rhel-7-sudo
CLOUD_REGION=europe-west1-b
MODE="separate"
-
>-
KUBE_NETWORK_PLUGIN=calico
CLOUD_IMAGE=ubuntu-1
510-wily
CLOUD_IMAGE=ubuntu-1
604-xenial
CLOUD_REGION=us-central1-a
MODE="separate"
-
>-
KUBE_NETWORK_PLUGIN=weave
CLOUD_IMAGE=
ubuntu-1510-wil
y
CLOUD_IMAGE=
debian-8-kubespra
y
CLOUD_REGION=us-east1-d
MODE="separate"
before_install
:
...
...
@@ -113,6 +116,7 @@ before_script:
script
:
-
>
$HOME/.local/bin/ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts -c local $LOG_LEVEL
-e mode=${MODE}
-e test_id=${TEST_ID}
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
-e gce_project_id=${GCE_PROJECT_ID}
...
...
This diff is collapsed.
Click to expand it.
tests/templates/inventory-gce.j2
+
11
−
0
View file @
4662b41d
...
...
@@ -2,6 +2,16 @@ node1 ansible_ssh_host={{gce.instance_data[0].public_ip}}
node2 ansible_ssh_host={{gce.instance_data[1].public_ip}}
node3 ansible_ssh_host={{gce.instance_data[2].public_ip}}
{% if mode == "separate" %}
[kube-master]
node1
[kube-node]
node2
[etcd]
node3
{% else %}
[kube-master]
node1
node2
...
...
@@ -14,6 +24,7 @@ node3
[etcd]
node1
node2
{% endif %}
[k8s-cluster:children]
kube-node
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment