Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 1 | # |
| 2 | # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST |
| 3 | # |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 4 | heat_template_version: 2015-10-15 |
| 5 | description: ONAP on Kubernetes using OOM |
| 6 | |
| 7 | parameters: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 8 | docker_proxy: |
| 9 | type: string |
| 10 | |
| 11 | apt_proxy: |
| 12 | type: string |
| 13 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 14 | public_net_id: |
| 15 | type: string |
| 16 | description: The ID of the Public network for floating IP address allocation |
| 17 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 18 | oam_network_cidr: |
| 19 | type: string |
| 20 | description: CIDR of the OAM ONAP network |
| 21 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 22 | ubuntu_1604_image: |
| 23 | type: string |
| 24 | description: Name of the Ubuntu 16.04 image |
| 25 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 26 | rancher_vm_flavor: |
| 27 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 28 | description: VM flavor for Rancher |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 29 | |
| 30 | k8s_vm_flavor: |
| 31 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 32 | description: VM flavor for k8s hosts |
| 33 | |
| 34 | integration_override_yaml: |
| 35 | type: string |
| 36 | description: Content for integration_override.yaml |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 37 | |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 38 | gerrit_branch: |
| 39 | type: string |
| 40 | default: "master" |
| 41 | |
| 42 | gerrit_refspec: |
| 43 | type: string |
| 44 | default: "refs/heads/master" |
| 45 | |
| 46 | docker_manifest: |
| 47 | type: string |
| 48 | default: "docker-manifest.csv" |
| 49 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 50 | key_name: |
| 51 | type: string |
| 52 | default: "onap_key" |
| 53 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 54 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 55 | random-str: |
| 56 | type: OS::Heat::RandomString |
| 57 | properties: |
| 58 | length: 4 |
| 59 | |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 60 | # ONAP security group |
| 61 | onap_sg: |
| 62 | type: OS::Neutron::SecurityGroup |
| 63 | properties: |
| 64 | name: |
| 65 | str_replace: |
| 66 | template: base_rand |
| 67 | params: |
| 68 | base: onap_sg |
| 69 | rand: { get_resource: random-str } |
| 70 | description: security group used by ONAP |
| 71 | rules: |
| 72 | # All egress traffic |
| 73 | - direction: egress |
| 74 | ethertype: IPv4 |
| 75 | - direction: egress |
| 76 | ethertype: IPv6 |
| 77 | # ingress traffic |
| 78 | # ICMP |
| 79 | - protocol: icmp |
| 80 | - protocol: udp |
| 81 | port_range_min: 1 |
| 82 | port_range_max: 65535 |
| 83 | - protocol: tcp |
| 84 | port_range_min: 1 |
| 85 | port_range_max: 65535 |
| 86 | |
| 87 | |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 88 | # ONAP management private network |
| 89 | oam_network: |
| 90 | type: OS::Neutron::Net |
| 91 | properties: |
| 92 | name: |
| 93 | str_replace: |
| 94 | template: oam_network_rand |
| 95 | params: |
| 96 | rand: { get_resource: random-str } |
| 97 | |
| 98 | oam_subnet: |
| 99 | type: OS::Neutron::Subnet |
| 100 | properties: |
| 101 | name: |
| 102 | str_replace: |
| 103 | template: oam_network_rand |
| 104 | params: |
| 105 | rand: { get_resource: random-str } |
| 106 | network_id: { get_resource: oam_network } |
| 107 | cidr: { get_param: oam_network_cidr } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 108 | dns_nameservers: [ "8.8.8.8" ] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 109 | |
| 110 | router: |
| 111 | type: OS::Neutron::Router |
| 112 | properties: |
| 113 | external_gateway_info: |
| 114 | network: { get_param: public_net_id } |
| 115 | |
| 116 | router_interface: |
| 117 | type: OS::Neutron::RouterInterface |
| 118 | properties: |
| 119 | router_id: { get_resource: router } |
| 120 | subnet_id: { get_resource: oam_subnet } |
| 121 | |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 122 | rancher_private_port: |
| 123 | type: OS::Neutron::Port |
| 124 | properties: |
| 125 | network: { get_resource: oam_network } |
| 126 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 127 | security_groups: |
| 128 | - { get_resource: onap_sg } |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 129 | |
| 130 | rancher_floating_ip: |
| 131 | type: OS::Neutron::FloatingIP |
| 132 | properties: |
| 133 | floating_network_id: { get_param: public_net_id } |
| 134 | port_id: { get_resource: rancher_private_port } |
| 135 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 136 | rancher_vm: |
| 137 | type: OS::Nova::Server |
| 138 | properties: |
| 139 | name: rancher |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 140 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 141 | flavor: { get_param: rancher_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 142 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 143 | networks: |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 144 | - port: { get_resource: rancher_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 145 | user_data_format: RAW |
| 146 | user_data: |
| 147 | str_replace: |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 148 | template: |
| 149 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 150 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 151 | __docker_proxy__: { get_param: docker_proxy } |
| 152 | __apt_proxy__: { get_param: apt_proxy } |
| 153 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 154 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 155 | __integration_override_yaml__: { get_param: integration_override_yaml } |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 156 | __gerrit_branch__: { get_param: gerrit_branch } |
| 157 | __gerrit_refspec__: { get_param: gerrit_refspec } |
| 158 | __docker_manifest__: { get_param: docker_manifest } |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 159 | __public_net_id__: { get_param: public_net_id } |
| 160 | __oam_network_cidr__: { get_param: oam_network_cidr } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 161 | __oam_network_id__: { get_resource: oam_network } |
| 162 | __oam_subnet_id__: { get_resource: oam_subnet } |
Gary Wu | 0a67162 | 2018-05-14 12:59:03 -0700 | [diff] [blame] | 163 | __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 164 | __k8s_vm_ips__: [ |
| 165 | get_attr: [k8s_1_floating_ip, floating_ip_address], |
| 166 | get_attr: [k8s_2_floating_ip, floating_ip_address], |
| 167 | get_attr: [k8s_3_floating_ip, floating_ip_address], |
| 168 | get_attr: [k8s_4_floating_ip, floating_ip_address], |
| 169 | get_attr: [k8s_5_floating_ip, floating_ip_address], |
| 170 | get_attr: [k8s_6_floating_ip, floating_ip_address], |
| 171 | get_attr: [k8s_7_floating_ip, floating_ip_address], |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 172 | get_attr: [k8s_8_floating_ip, floating_ip_address], |
| 173 | get_attr: [k8s_9_floating_ip, floating_ip_address], |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 174 | get_attr: [k8s_10_floating_ip, floating_ip_address], |
| 175 | get_attr: [k8s_11_floating_ip, floating_ip_address], |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 176 | ] |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 177 | __k8s_private_ips__: [ |
| 178 | get_attr: [k8s_1_floating_ip, fixed_ip_address], |
| 179 | get_attr: [k8s_2_floating_ip, fixed_ip_address], |
| 180 | get_attr: [k8s_3_floating_ip, fixed_ip_address], |
| 181 | get_attr: [k8s_4_floating_ip, fixed_ip_address], |
| 182 | get_attr: [k8s_5_floating_ip, fixed_ip_address], |
| 183 | get_attr: [k8s_6_floating_ip, fixed_ip_address], |
| 184 | get_attr: [k8s_7_floating_ip, fixed_ip_address], |
| 185 | get_attr: [k8s_8_floating_ip, fixed_ip_address], |
| 186 | get_attr: [k8s_9_floating_ip, fixed_ip_address], |
| 187 | get_attr: [k8s_10_floating_ip, fixed_ip_address], |
| 188 | get_attr: [k8s_11_floating_ip, fixed_ip_address], |
| 189 | ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 190 | k8s_1_private_port: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 191 | type: OS::Neutron::Port |
| 192 | properties: |
| 193 | network: { get_resource: oam_network } |
| 194 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 195 | security_groups: |
| 196 | - { get_resource: onap_sg } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 197 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 198 | k8s_1_floating_ip: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 199 | type: OS::Neutron::FloatingIP |
| 200 | properties: |
| 201 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 202 | port_id: { get_resource: k8s_1_private_port } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 203 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 204 | k8s_1_vm: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 205 | type: OS::Nova::Server |
| 206 | properties: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 207 | name: k8s_1 |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 208 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 209 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 210 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 211 | networks: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 212 | - port: { get_resource: k8s_1_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 213 | user_data_format: RAW |
| 214 | user_data: |
| 215 | str_replace: |
| 216 | params: |
| 217 | __docker_proxy__: { get_param: docker_proxy } |
| 218 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 219 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 220 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 221 | template: |
| 222 | get_file: k8s_vm_entrypoint.sh |
| 223 | |
| 224 | k8s_2_private_port: |
| 225 | type: OS::Neutron::Port |
| 226 | properties: |
| 227 | network: { get_resource: oam_network } |
| 228 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 229 | security_groups: |
| 230 | - { get_resource: onap_sg } |
| 231 | |
| 232 | k8s_2_floating_ip: |
| 233 | type: OS::Neutron::FloatingIP |
| 234 | properties: |
| 235 | floating_network_id: { get_param: public_net_id } |
| 236 | port_id: { get_resource: k8s_2_private_port } |
| 237 | |
| 238 | k8s_2_vm: |
| 239 | type: OS::Nova::Server |
| 240 | properties: |
| 241 | name: k8s_2 |
| 242 | image: { get_param: ubuntu_1604_image } |
| 243 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 244 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 245 | networks: |
| 246 | - port: { get_resource: k8s_2_private_port } |
| 247 | user_data_format: RAW |
| 248 | user_data: |
| 249 | str_replace: |
| 250 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 251 | __docker_proxy__: { get_param: docker_proxy } |
| 252 | __apt_proxy__: { get_param: apt_proxy } |
| 253 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 254 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 255 | template: |
| 256 | get_file: k8s_vm_entrypoint.sh |
| 257 | |
| 258 | k8s_3_private_port: |
| 259 | type: OS::Neutron::Port |
| 260 | properties: |
| 261 | network: { get_resource: oam_network } |
| 262 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 263 | security_groups: |
| 264 | - { get_resource: onap_sg } |
| 265 | |
| 266 | k8s_3_floating_ip: |
| 267 | type: OS::Neutron::FloatingIP |
| 268 | properties: |
| 269 | floating_network_id: { get_param: public_net_id } |
| 270 | port_id: { get_resource: k8s_3_private_port } |
| 271 | |
| 272 | k8s_3_vm: |
| 273 | type: OS::Nova::Server |
| 274 | properties: |
| 275 | name: k8s_3 |
| 276 | image: { get_param: ubuntu_1604_image } |
| 277 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 278 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 279 | networks: |
| 280 | - port: { get_resource: k8s_3_private_port } |
| 281 | user_data_format: RAW |
| 282 | user_data: |
| 283 | str_replace: |
| 284 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 285 | __docker_proxy__: { get_param: docker_proxy } |
| 286 | __apt_proxy__: { get_param: apt_proxy } |
| 287 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 288 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 289 | template: |
| 290 | get_file: k8s_vm_entrypoint.sh |
| 291 | |
| 292 | k8s_4_private_port: |
| 293 | type: OS::Neutron::Port |
| 294 | properties: |
| 295 | network: { get_resource: oam_network } |
| 296 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 297 | security_groups: |
| 298 | - { get_resource: onap_sg } |
| 299 | |
| 300 | k8s_4_floating_ip: |
| 301 | type: OS::Neutron::FloatingIP |
| 302 | properties: |
| 303 | floating_network_id: { get_param: public_net_id } |
| 304 | port_id: { get_resource: k8s_4_private_port } |
| 305 | |
| 306 | k8s_4_vm: |
| 307 | type: OS::Nova::Server |
| 308 | properties: |
| 309 | name: k8s_4 |
| 310 | image: { get_param: ubuntu_1604_image } |
| 311 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 312 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 313 | networks: |
| 314 | - port: { get_resource: k8s_4_private_port } |
| 315 | user_data_format: RAW |
| 316 | user_data: |
| 317 | str_replace: |
| 318 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 319 | __docker_proxy__: { get_param: docker_proxy } |
| 320 | __apt_proxy__: { get_param: apt_proxy } |
| 321 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 322 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 323 | template: |
| 324 | get_file: k8s_vm_entrypoint.sh |
| 325 | |
| 326 | k8s_5_private_port: |
| 327 | type: OS::Neutron::Port |
| 328 | properties: |
| 329 | network: { get_resource: oam_network } |
| 330 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 331 | security_groups: |
| 332 | - { get_resource: onap_sg } |
| 333 | |
| 334 | k8s_5_floating_ip: |
| 335 | type: OS::Neutron::FloatingIP |
| 336 | properties: |
| 337 | floating_network_id: { get_param: public_net_id } |
| 338 | port_id: { get_resource: k8s_5_private_port } |
| 339 | |
| 340 | k8s_5_vm: |
| 341 | type: OS::Nova::Server |
| 342 | properties: |
| 343 | name: k8s_5 |
| 344 | image: { get_param: ubuntu_1604_image } |
| 345 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 346 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 347 | networks: |
| 348 | - port: { get_resource: k8s_5_private_port } |
| 349 | user_data_format: RAW |
| 350 | user_data: |
| 351 | str_replace: |
| 352 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 353 | __docker_proxy__: { get_param: docker_proxy } |
| 354 | __apt_proxy__: { get_param: apt_proxy } |
| 355 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 356 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 357 | template: |
| 358 | get_file: k8s_vm_entrypoint.sh |
| 359 | |
| 360 | k8s_6_private_port: |
| 361 | type: OS::Neutron::Port |
| 362 | properties: |
| 363 | network: { get_resource: oam_network } |
| 364 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 365 | security_groups: |
| 366 | - { get_resource: onap_sg } |
| 367 | |
| 368 | k8s_6_floating_ip: |
| 369 | type: OS::Neutron::FloatingIP |
| 370 | properties: |
| 371 | floating_network_id: { get_param: public_net_id } |
| 372 | port_id: { get_resource: k8s_6_private_port } |
| 373 | |
| 374 | k8s_6_vm: |
| 375 | type: OS::Nova::Server |
| 376 | properties: |
| 377 | name: k8s_6 |
| 378 | image: { get_param: ubuntu_1604_image } |
| 379 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 380 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 381 | networks: |
| 382 | - port: { get_resource: k8s_6_private_port } |
| 383 | user_data_format: RAW |
| 384 | user_data: |
| 385 | str_replace: |
| 386 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 387 | __docker_proxy__: { get_param: docker_proxy } |
| 388 | __apt_proxy__: { get_param: apt_proxy } |
| 389 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 390 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 391 | template: |
| 392 | get_file: k8s_vm_entrypoint.sh |
| 393 | |
| 394 | k8s_7_private_port: |
| 395 | type: OS::Neutron::Port |
| 396 | properties: |
| 397 | network: { get_resource: oam_network } |
| 398 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 399 | security_groups: |
| 400 | - { get_resource: onap_sg } |
| 401 | |
| 402 | k8s_7_floating_ip: |
| 403 | type: OS::Neutron::FloatingIP |
| 404 | properties: |
| 405 | floating_network_id: { get_param: public_net_id } |
| 406 | port_id: { get_resource: k8s_7_private_port } |
| 407 | |
| 408 | k8s_7_vm: |
| 409 | type: OS::Nova::Server |
| 410 | properties: |
| 411 | name: k8s_7 |
| 412 | image: { get_param: ubuntu_1604_image } |
| 413 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 414 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 415 | networks: |
| 416 | - port: { get_resource: k8s_7_private_port } |
| 417 | user_data_format: RAW |
| 418 | user_data: |
| 419 | str_replace: |
| 420 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 421 | __docker_proxy__: { get_param: docker_proxy } |
| 422 | __apt_proxy__: { get_param: apt_proxy } |
| 423 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 424 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 425 | template: |
| 426 | get_file: k8s_vm_entrypoint.sh |
Gary Wu | 7b41639 | 2018-01-19 13:16:49 -0800 | [diff] [blame] | 427 | |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 428 | k8s_8_private_port: |
| 429 | type: OS::Neutron::Port |
| 430 | properties: |
| 431 | network: { get_resource: oam_network } |
| 432 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 433 | security_groups: |
| 434 | - { get_resource: onap_sg } |
| 435 | |
| 436 | k8s_8_floating_ip: |
| 437 | type: OS::Neutron::FloatingIP |
| 438 | properties: |
| 439 | floating_network_id: { get_param: public_net_id } |
| 440 | port_id: { get_resource: k8s_8_private_port } |
| 441 | |
| 442 | k8s_8_vm: |
| 443 | type: OS::Nova::Server |
| 444 | properties: |
| 445 | name: k8s_8 |
| 446 | image: { get_param: ubuntu_1604_image } |
| 447 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 448 | key_name: { get_param: key_name } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 449 | networks: |
| 450 | - port: { get_resource: k8s_8_private_port } |
| 451 | user_data_format: RAW |
| 452 | user_data: |
| 453 | str_replace: |
| 454 | params: |
| 455 | __docker_proxy__: { get_param: docker_proxy } |
| 456 | __apt_proxy__: { get_param: apt_proxy } |
| 457 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 458 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 459 | template: |
| 460 | get_file: k8s_vm_entrypoint.sh |
| 461 | |
| 462 | k8s_9_private_port: |
| 463 | type: OS::Neutron::Port |
| 464 | properties: |
| 465 | network: { get_resource: oam_network } |
| 466 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 467 | security_groups: |
| 468 | - { get_resource: onap_sg } |
| 469 | |
| 470 | k8s_9_floating_ip: |
| 471 | type: OS::Neutron::FloatingIP |
| 472 | properties: |
| 473 | floating_network_id: { get_param: public_net_id } |
| 474 | port_id: { get_resource: k8s_9_private_port } |
| 475 | |
| 476 | k8s_9_vm: |
| 477 | type: OS::Nova::Server |
| 478 | properties: |
| 479 | name: k8s_9 |
| 480 | image: { get_param: ubuntu_1604_image } |
| 481 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 482 | key_name: { get_param: key_name } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 483 | networks: |
| 484 | - port: { get_resource: k8s_9_private_port } |
| 485 | user_data_format: RAW |
| 486 | user_data: |
| 487 | str_replace: |
| 488 | params: |
| 489 | __docker_proxy__: { get_param: docker_proxy } |
| 490 | __apt_proxy__: { get_param: apt_proxy } |
| 491 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 492 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 493 | template: |
| 494 | get_file: k8s_vm_entrypoint.sh |
| 495 | |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 496 | k8s_10_private_port: |
| 497 | type: OS::Neutron::Port |
| 498 | properties: |
| 499 | network: { get_resource: oam_network } |
| 500 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 501 | security_groups: |
| 502 | - { get_resource: onap_sg } |
| 503 | |
| 504 | k8s_10_floating_ip: |
| 505 | type: OS::Neutron::FloatingIP |
| 506 | properties: |
| 507 | floating_network_id: { get_param: public_net_id } |
| 508 | port_id: { get_resource: k8s_10_private_port } |
| 509 | |
| 510 | k8s_10_vm: |
| 511 | type: OS::Nova::Server |
| 512 | properties: |
| 513 | name: k8s_10 |
| 514 | image: { get_param: ubuntu_1604_image } |
| 515 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 516 | key_name: { get_param: key_name } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 517 | networks: |
| 518 | - port: { get_resource: k8s_10_private_port } |
| 519 | user_data_format: RAW |
| 520 | user_data: |
| 521 | str_replace: |
| 522 | params: |
| 523 | __docker_proxy__: { get_param: docker_proxy } |
| 524 | __apt_proxy__: { get_param: apt_proxy } |
| 525 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 526 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 527 | template: |
| 528 | get_file: k8s_vm_entrypoint.sh |
| 529 | |
| 530 | k8s_11_private_port: |
| 531 | type: OS::Neutron::Port |
| 532 | properties: |
| 533 | network: { get_resource: oam_network } |
| 534 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 535 | security_groups: |
| 536 | - { get_resource: onap_sg } |
| 537 | |
| 538 | k8s_11_floating_ip: |
| 539 | type: OS::Neutron::FloatingIP |
| 540 | properties: |
| 541 | floating_network_id: { get_param: public_net_id } |
| 542 | port_id: { get_resource: k8s_11_private_port } |
| 543 | |
| 544 | k8s_11_vm: |
| 545 | type: OS::Nova::Server |
| 546 | properties: |
| 547 | name: k8s_11 |
| 548 | image: { get_param: ubuntu_1604_image } |
| 549 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 550 | key_name: { get_param: key_name } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 551 | networks: |
| 552 | - port: { get_resource: k8s_11_private_port } |
| 553 | user_data_format: RAW |
| 554 | user_data: |
| 555 | str_replace: |
| 556 | params: |
| 557 | __docker_proxy__: { get_param: docker_proxy } |
| 558 | __apt_proxy__: { get_param: apt_proxy } |
| 559 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame^] | 560 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 561 | template: |
| 562 | get_file: k8s_vm_entrypoint.sh |
| 563 | |
Gary Wu | 14ee41d | 2018-01-19 15:03:59 -0800 | [diff] [blame] | 564 | outputs: |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 565 | rancher_vm_ip: |
| 566 | description: The IP address of the rancher instance |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 567 | value: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 568 | |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 569 | k8s_1_vm_ip: |
| 570 | description: The IP address of the k8s_1 instance |
| 571 | value: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
| 572 | |
| 573 | k8s_2_vm_ip: |
| 574 | description: The IP address of the k8s_2 instance |
| 575 | value: { get_attr: [k8s_2_floating_ip, floating_ip_address] } |
| 576 | |
| 577 | k8s_3_vm_ip: |
| 578 | description: The IP address of the k8s_3 instance |
| 579 | value: { get_attr: [k8s_3_floating_ip, floating_ip_address] } |
| 580 | |
| 581 | k8s_4_vm_ip: |
| 582 | description: The IP address of the k8s_4 instance |
| 583 | value: { get_attr: [k8s_4_floating_ip, floating_ip_address] } |
| 584 | |
| 585 | k8s_5_vm_ip: |
| 586 | description: The IP address of the k8s_5 instance |
| 587 | value: { get_attr: [k8s_5_floating_ip, floating_ip_address] } |
| 588 | |
| 589 | k8s_6_vm_ip: |
| 590 | description: The IP address of the k8s_6 instance |
| 591 | value: { get_attr: [k8s_6_floating_ip, floating_ip_address] } |
| 592 | |
| 593 | k8s_7_vm_ip: |
| 594 | description: The IP address of the k8s_7 instance |
| 595 | value: { get_attr: [k8s_7_floating_ip, floating_ip_address] } |
| 596 | |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 597 | k8s_8_vm_ip: |
| 598 | description: The IP address of the k8s_8 instance |
| 599 | value: { get_attr: [k8s_8_floating_ip, floating_ip_address] } |
| 600 | |
| 601 | k8s_9_vm_ip: |
| 602 | description: The IP address of the k8s_9 instance |
| 603 | value: { get_attr: [k8s_9_floating_ip, floating_ip_address] } |
| 604 | |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 605 | k8s_10_vm_ip: |
| 606 | description: The IP address of the k8s_10 instance |
| 607 | value: { get_attr: [k8s_10_floating_ip, floating_ip_address] } |
| 608 | |
| 609 | k8s_11_vm_ip: |
| 610 | description: The IP address of the k8s_11 instance |
| 611 | value: { get_attr: [k8s_11_floating_ip, floating_ip_address] } |
| 612 | |