Add CI for 16x ubuntu servers (#6040)
This commit is contained in:
parent
a468954519
commit
412d560bcf
5 changed files with 18 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
molecule_tests:
|
molecule_tests:
|
||||||
tags: [vagrant]
|
tags: [c3.small.x86]
|
||||||
only: [/^pr-.*$/]
|
only: [/^pr-.*$/]
|
||||||
except: ['triggers']
|
except: ['triggers']
|
||||||
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
||||||
|
@ -22,7 +22,8 @@ molecule_tests:
|
||||||
CI_PLATFORM: "vagrant"
|
CI_PLATFORM: "vagrant"
|
||||||
SSH_USER: "kubespray"
|
SSH_USER: "kubespray"
|
||||||
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
||||||
tags: [vagrant]
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
|
||||||
|
tags: [c3.small.x86]
|
||||||
only: [/^pr-.*$/]
|
only: [/^pr-.*$/]
|
||||||
except: ['triggers']
|
except: ['triggers']
|
||||||
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
||||||
|
@ -40,4 +41,9 @@ molecule_tests:
|
||||||
vagrant_ubuntu18-flannel:
|
vagrant_ubuntu18-flannel:
|
||||||
stage: deploy-part2
|
stage: deploy-part2
|
||||||
extends: .vagrant
|
extends: .vagrant
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
|
vagrant_ubuntu18-weave-medium:
|
||||||
|
stage: deploy-part2
|
||||||
|
extends: .vagrant
|
||||||
|
when: manual
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -7,7 +7,7 @@ require 'fileutils'
|
||||||
|
|
||||||
Vagrant.require_version ">= 2.0.0"
|
Vagrant.require_version ">= 2.0.0"
|
||||||
|
|
||||||
CONFIG = File.join(File.dirname(__FILE__), "vagrant/config.rb")
|
CONFIG = File.join(File.dirname(__FILE__), ENV['KUBESPRAY_VAGRANT_CONFIG'] || 'vagrant/config.rb')
|
||||||
|
|
||||||
COREOS_URL_TEMPLATE = "https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
|
COREOS_URL_TEMPLATE = "https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
|
||||||
FLATCAR_URL_TEMPLATE = "https://%s.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json"
|
FLATCAR_URL_TEMPLATE = "https://%s.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json"
|
||||||
|
|
0
tests/files/vagrant_ubuntu18-flannel.rb
Normal file
0
tests/files/vagrant_ubuntu18-flannel.rb
Normal file
6
tests/files/vagrant_ubuntu18-weave-medium.rb
Normal file
6
tests/files/vagrant_ubuntu18-weave-medium.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
$num_instances = 16
|
||||||
|
$vm_memory ||= 1600
|
||||||
|
$os = "ubuntu1804"
|
||||||
|
$network_plugin = "weave"
|
||||||
|
$kube_master_instances = 1
|
||||||
|
$etcd_instances = 1
|
|
@ -3,6 +3,8 @@ set -euxo pipefail
|
||||||
|
|
||||||
# Cleanup vagrant VMs to avoid name conflicts
|
# Cleanup vagrant VMs to avoid name conflicts
|
||||||
|
|
||||||
|
apt-get install -y libvirt-clients
|
||||||
|
|
||||||
for i in $(virsh list --name)
|
for i in $(virsh list --name)
|
||||||
do
|
do
|
||||||
virsh destroy "$i"
|
virsh destroy "$i"
|
||||||
|
|
Loading…
Reference in a new issue