blob: 7ee9021af5dd912e083c425deeffe90f284f24f6 [file] [log] [blame]
Gary Wu14a6b302018-05-01 15:59:28 -07001 ${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:
18 name: ${K8S_VM_NAME}
19 image: { get_param: ubuntu_1604_image }
20 flavor: { get_param: k8s_vm_flavor }
21 key_name: onap_key
22 networks:
23 - port: { get_resource: ${K8S_VM_NAME}_private_port }
24 user_data_format: RAW
25 user_data:
26 str_replace:
27 params:
Gary Wu14a6b302018-05-01 15:59:28 -070028 __docker_proxy__: { get_param: docker_proxy }
29 __apt_proxy__: { get_param: apt_proxy }
30 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
31 template:
32 get_file: k8s_vm_entrypoint.sh
33