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
1bdf34e7
Commit
1bdf34e7
authored
8 years ago
by
Bogdan Dobrelya
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #915 from bradbeam/ci
Sorting ansible args, fixed ci cluster_mode
parents
cd25bfca
dc08b75c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-19
23 additions, 19 deletions
.gitlab-ci.yml
with
23 additions
and
19 deletions
.gitlab-ci.yml
+
23
−
19
View file @
1bdf34e7
...
@@ -85,31 +85,35 @@ before_script:
...
@@ -85,31 +85,35 @@ before_script:
-
ls
-
ls
-
echo ${PWD}
-
echo ${PWD}
-
>
-
>
ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts.cfg -c local $LOG_LEVEL
ansible-playbook tests/cloud_playbooks/create-gce.yml -i tests/local_inventory/hosts.cfg -c local
-e mode=${CLUSTER_MODE}
${LOG_LEVEL}
-e test_id=${TEST_ID}
-e cloud_image=${CLOUD_IMAGE}
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
-e cloud_region=${CLOUD_REGION}
-e gce_credentials_file=${HOME}/.ssh/gce.json
-e gce_project_id=${GCE_PROJECT_ID}
-e gce_project_id=${GCE_PROJECT_ID}
-e gce_service_account_email=${GCE_ACCOUNT}
-e gce_service_account_email=${GCE_ACCOUNT}
-e gce_credentials_file=${HOME}/.ssh/gce.json
-e cloud_image=${CLOUD_IMAGE}
-e inventory_path=${PWD}/inventory/inventory.ini
-e inventory_path=${PWD}/inventory/inventory.ini
-e cloud_region=${CLOUD_REGION}
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
-e mode=${CLUSTER_MODE}
-e test_id=${TEST_ID}
# Create cluster
# Create cluster
-
>
-
>
ansible-playbook -i inventory/inventory.ini -u $SSH_USER -e ansible_ssh_user=$SSH_USER $SSH_ARGS
ansible-playbook -i inventory/inventory.ini -b --become-user=root --private-key=${HOME}/.ssh/id_rsa -u $SSH_USER
-b --become-user=root -e cloud_provider=gce $LOG_LEVEL -e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
${SSH_ARGS}
--private-key=${HOME}/.ssh/id_rsa
${LOG_LEVEL}
-e bootstrap_os=${BOOTSTRAP_OS}
-e ansible_python_interpreter=${PYPATH}
-e ansible_python_interpreter=${PYPATH}
-e download_run_once=true
-e ansible_ssh_user=${SSH_USER}
-e download_localhost=true
-e bootstrap_os=${BOOTSTRAP_OS}
-e cloud_provider=gce
-e deploy_netchecker=true
-e deploy_netchecker=true
-e
resolvconf_mode=${RESOLVCONF_MODE}
-e
download_localhost=true
-e
local_release_dir=${PWD}/downloads
-e
download_run_once=true
-e etcd_deployment_type=${ETCD_DEPLOYMENT}
-e etcd_deployment_type=${ETCD_DEPLOYMENT}
-e kube_network_plugin=${KUBE_NETWORK_PLUGIN}
-e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
-e kubelet_deployment_type=${KUBELET_DEPLOYMENT}
-e local_release_dir=${PWD}/downloads
-e resolvconf_mode=${RESOLVCONF_MODE}
cluster.yml
cluster.yml
...
@@ -205,7 +209,7 @@ before_script:
...
@@ -205,7 +209,7 @@ before_script:
KUBE_NETWORK_PLUGIN
:
calico
KUBE_NETWORK_PLUGIN
:
calico
CLOUD_IMAGE
:
coreos-stable
CLOUD_IMAGE
:
coreos-stable
CLOUD_REGION
:
us-west1-b
CLOUD_REGION
:
us-west1-b
CLUSTER_MODE
:
separate
d
CLUSTER_MODE
:
separate
BOOTSTRAP_OS
:
coreos
BOOTSTRAP_OS
:
coreos
RESOLVCONF_MODE
:
host_resolvconf
# This is required as long as the CoreOS stable channel uses docker < 1.12
RESOLVCONF_MODE
:
host_resolvconf
# This is required as long as the CoreOS stable channel uses docker < 1.12
...
@@ -252,14 +256,14 @@ before_script:
...
@@ -252,14 +256,14 @@ before_script:
KUBE_NETWORK_PLUGIN
:
canal
KUBE_NETWORK_PLUGIN
:
canal
CLOUD_IMAGE
:
rhel-7
CLOUD_IMAGE
:
rhel-7
CLOUD_REGION
:
us-east1-b
CLOUD_REGION
:
us-east1-b
CLUSTER_MODE
:
separate
d
CLUSTER_MODE
:
separate
.ubuntu_weave_sep_variables
:
&ubuntu_weave_sep_variables
.ubuntu_weave_sep_variables
:
&ubuntu_weave_sep_variables
# stage: deploy-gce-special
# stage: deploy-gce-special
KUBE_NETWORK_PLUGIN
:
weave
KUBE_NETWORK_PLUGIN
:
weave
CLOUD_IMAGE
:
ubuntu-1604-xenial
CLOUD_IMAGE
:
ubuntu-1604-xenial
CLOUD_REGION
:
us-central1-b
CLOUD_REGION
:
us-central1-b
CLUSTER_MODE
:
separate
d
CLUSTER_MODE
:
separate
IDEMPOT_CHECK
:
"
true"
IDEMPOT_CHECK
:
"
true"
.centos7_calico_ha_variables
:
¢os7_calico_ha_variables
.centos7_calico_ha_variables
:
¢os7_calico_ha_variables
...
@@ -283,7 +287,7 @@ before_script:
...
@@ -283,7 +287,7 @@ before_script:
KUBE_NETWORK_PLUGIN
:
flannel
KUBE_NETWORK_PLUGIN
:
flannel
CLOUD_IMAGE
:
ubuntu-1604-xenial
CLOUD_IMAGE
:
ubuntu-1604-xenial
CLOUD_REGION
:
us-central1-b
CLOUD_REGION
:
us-central1-b
CLUSTER_MODE
:
separate
d
CLUSTER_MODE
:
separate
ETCD_DEPLOYMENT
:
rkt
ETCD_DEPLOYMENT
:
rkt
KUBELET_DEPLOYMENT
:
rkt
KUBELET_DEPLOYMENT
:
rkt
...
...
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