| Anton Samoylov | e2e969e | 2024-10-03 15:28:31 +0400 | [diff] [blame^] | 1 | heat_template_version: queens | 
|  | 2 |  | 
|  | 3 | parameters: | 
|  | 4 |  | 
|  | 5 | node_type: | 
|  | 6 | type: string | 
|  | 7 | k8s_network: | 
|  | 8 | type: string | 
|  | 9 | k8s_subnet_id: | 
|  | 10 | type: string | 
|  | 11 | public_net_id: | 
|  | 12 | type: string | 
|  | 13 | data_network: | 
|  | 14 | type: string | 
|  | 15 | availability_zone: | 
|  | 16 | type: string | 
|  | 17 | default: nova | 
|  | 18 | image: | 
|  | 19 | type: string | 
|  | 20 | description: Name of image to use for servers | 
|  | 21 | flavor: | 
|  | 22 | type: string | 
|  | 23 | description: Flavor to use for servers | 
|  | 24 | key_name: | 
|  | 25 | type: string | 
|  | 26 | description: Name of keypair to assign to servers | 
|  | 27 |  | 
|  | 28 | resources: | 
|  | 29 |  | 
|  | 30 | k8s_network_port: | 
|  | 31 | type: OS::Neutron::Port | 
|  | 32 | properties: | 
|  | 33 | network: { get_param: k8s_network } | 
|  | 34 | port_security_enabled: false | 
|  | 35 | fixed_ips: | 
|  | 36 | - subnet: { get_param: k8s_subnet_id } | 
|  | 37 |  | 
|  | 38 | floating_ip_k8s_net: | 
|  | 39 | type: OS::Neutron::FloatingIP | 
|  | 40 | properties: | 
|  | 41 | floating_network_id: { get_param: public_net_id } | 
|  | 42 | port_id: { get_resource: k8s_network_port } | 
|  | 43 |  | 
|  | 44 | vm_server: | 
|  | 45 | type: OS::Nova::Server | 
|  | 46 | properties: | 
|  | 47 | availability_zone: { get_param: availability_zone } | 
|  | 48 | image: { get_param: image } | 
|  | 49 | flavor: { get_param: flavor } | 
|  | 50 | key_name: { get_param: key_name } | 
|  | 51 | networks: | 
|  | 52 | - port: { get_resource: k8s_network_port } | 
|  | 53 | - network: { get_param : data_network } | 
|  | 54 |  | 
|  | 55 | outputs: | 
|  | 56 | server_public_ip: | 
|  | 57 | description: Floating IP address of server in public network | 
|  | 58 | value: { get_attr: [ floating_ip_k8s_net, floating_ip_address ] } |