Create instances for kubernets nodes
This commit is contained in:
parent
4113181fff
commit
ca9f31c201
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue