Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 1 | ${K8S_VM_NAME}_private_port: |
| 2 | type: OS::Neutron::Port |
| 3 | properties: |
| 4 | network: { get_resource: oam_network } |
| 5 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 6 | security_groups: |
| 7 | - { get_resource: onap_sg } |
| 8 | |
| 9 | ${K8S_VM_NAME}_floating_ip: |
| 10 | type: OS::Neutron::FloatingIP |
| 11 | properties: |
| 12 | floating_network_id: { get_param: public_net_id } |
| 13 | port_id: { get_resource: ${K8S_VM_NAME}_private_port } |
| 14 | |
| 15 | ${K8S_VM_NAME}_vm: |
| 16 | type: OS::Nova::Server |
| 17 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 18 | name: |
| 19 | list_join: ['-', [ { get_param: 'OS::stack_name' }, '${K8S_VM_NAME}']] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 20 | image: { get_param: ubuntu_1604_image } |
| 21 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 22 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 23 | networks: |
| 24 | - port: { get_resource: ${K8S_VM_NAME}_private_port } |
| 25 | user_data_format: RAW |
| 26 | user_data: |
| 27 | str_replace: |
| 28 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 29 | __docker_proxy__: { get_param: docker_proxy } |
| 30 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 31 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 32 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 33 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 34 | template: |
| 35 | get_file: k8s_vm_entrypoint.sh |
| 36 | |