diff --git a/kubenodes.yaml b/kubenodes.yaml index c232bdd..8d96d2f 100644 --- a/kubenodes.yaml +++ b/kubenodes.yaml @@ -33,3 +33,13 @@ {% set secgroupssh=secgroups.security_groups|selectattr('name', 'equalto', 'ssh-from-jumphost')| first -%} {{ secgroupallegress['id'] }},{{secgroupkubenode['id']}},{{secgroupssh['id'] -}} loop: "{{ range(1,4)|list }}" + +- name: Launch kubernetes instances + openstack.cloud.server: + name: "kube{{ item }}.matrix-test.sunet.se" + state: present + flavor: b2.c4r16 + volumes: + - kube{{ item }}-matrix-test-sunet-se-osvol + nics: "port-name=kube{{ item }}-matrix-test-sunet-se-port" + loop: "{{ range(1,4)|list }}"