|
|
@ -11,80 +11,92 @@ env: |
|
|
|
CONTAINER_ENGINE=docker |
|
|
|
PRIVATE_KEY=$GCE_PRIVATE_KEY |
|
|
|
ANSIBLE_KEEP_REMOTE_FILES=1 |
|
|
|
CLUSTER_MODE=default |
|
|
|
matrix: |
|
|
|
# Debian Jessie |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=flannel |
|
|
|
CLOUD_IMAGE=debian-8-kubespray |
|
|
|
CLOUD_REGION=europe-west1-b |
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=calico |
|
|
|
CLOUD_IMAGE=debian-8-kubespray |
|
|
|
CLOUD_REGION=us-central1-c |
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=weave |
|
|
|
CLOUD_IMAGE=debian-8-kubespray |
|
|
|
CLOUD_REGION=us-east1-d |
|
|
|
CLUSTER_MODE=default |
|
|
|
|
|
|
|
# Centos 7 |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=flannel |
|
|
|
CLOUD_IMAGE=centos-7-sudo |
|
|
|
CLOUD_REGION=asia-east1-c |
|
|
|
|
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=calico |
|
|
|
CLOUD_IMAGE=centos-7-sudo |
|
|
|
CLOUD_REGION=europe-west1-b |
|
|
|
|
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=weave |
|
|
|
CLOUD_IMAGE=centos-7-sudo |
|
|
|
CLOUD_REGION=us-central1-c |
|
|
|
CLUSTER_MODE=default |
|
|
|
|
|
|
|
# Redhat 7 |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=flannel |
|
|
|
CLOUD_IMAGE=rhel-7-sudo |
|
|
|
CLOUD_REGION=us-east1-d |
|
|
|
|
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=calico |
|
|
|
CLOUD_IMAGE=rhel-7-sudo |
|
|
|
CLOUD_REGION=asia-east1-c |
|
|
|
|
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=weave |
|
|
|
CLOUD_IMAGE=rhel-7-sudo |
|
|
|
CLOUD_REGION=europe-west1-b |
|
|
|
CLUSTER_MODE=default |
|
|
|
|
|
|
|
# Ubuntu 16.04 |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=flannel |
|
|
|
CLOUD_IMAGE=ubuntu-1604-xenial |
|
|
|
CLOUD_REGION=us-central1-c |
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=calico |
|
|
|
CLOUD_IMAGE=ubuntu-1604-xenial |
|
|
|
CLOUD_REGION=us-east1-d |
|
|
|
CLUSTER_MODE=default |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=weave |
|
|
|
CLOUD_IMAGE=ubuntu-1604-xenial |
|
|
|
CLOUD_REGION=asia-east1-c |
|
|
|
CLUSTER_MODE=default |
|
|
|
|
|
|
|
# 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 |
|
|
|
CLUSTER_MODE=separate |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=calico |
|
|
|
CLOUD_IMAGE=ubuntu-1510-wily |
|
|
|
CLOUD_IMAGE=ubuntu-1604-xenial |
|
|
|
CLOUD_REGION=us-central1-a |
|
|
|
CLUSTER_MODE=separate |
|
|
|
- >- |
|
|
|
KUBE_NETWORK_PLUGIN=weave |
|
|
|
CLOUD_IMAGE=ubuntu-1510-wily |
|
|
|
CLOUD_IMAGE=debian-8-kubespray |
|
|
|
CLOUD_REGION=us-east1-d |
|
|
|
CLUSTER_MODE=separate |
|
|
|
|
|
|
|
|
|
|
|
before_install: |
|
|
@ -92,7 +104,8 @@ before_install: |
|
|
|
- pip install --user boto -U |
|
|
|
- pip install --user ansible |
|
|
|
- pip install --user netaddr |
|
|
|
- pip install --user apache-libcloud |
|
|
|
# W/A https://github.com/ansible/ansible-modules-core/issues/5196#issuecomment-253766186 |
|
|
|
- pip install --user apache-libcloud==0.20.1 |
|
|
|
|
|
|
|
cache: |
|
|
|
- directories: |
|
|
@ -114,7 +127,8 @@ before_script: |
|
|
|
|
|
|
|
script: |
|
|
|
- > |
|
|
|
$HOME/.local/bin/ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts -c local $LOG_LEVEL |
|
|
|
$HOME/.local/bin/ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts.cfg -c local $LOG_LEVEL |
|
|
|
-e mode=${CLUSTER_MODE} |
|
|
|
-e test_id=${TEST_ID} |
|
|
|
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN} |
|
|
|
-e gce_project_id=${GCE_PROJECT_ID} |
|
|
|