blob: 61ed8a5f768025a0a7d7007bb9a36655338b5ca0 [file] [log] [blame]
Gary Wu11c98742018-05-02 16:19:04 -07001#
2# Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST
3#
Gary Wuccd529b2018-01-16 18:31:01 -08004heat_template_version: 2015-10-15
5description: ONAP on Kubernetes using OOM
6
7parameters:
Gary Wuccd529b2018-01-16 18:31:01 -08008 docker_proxy:
9 type: string
10
11 apt_proxy:
12 type: string
13
Gary Wuc98156d2018-01-18 12:03:26 -080014 public_net_id:
15 type: string
16 description: The ID of the Public network for floating IP address allocation
17
Gary Wuc98156d2018-01-18 12:03:26 -080018 oam_network_cidr:
19 type: string
20 description: CIDR of the OAM ONAP network
21
Gary Wu60dd0d82018-01-18 14:54:47 -080022 ubuntu_1604_image:
23 type: string
24 description: Name of the Ubuntu 16.04 image
25
Gary Wu60dd0d82018-01-18 14:54:47 -080026 rancher_vm_flavor:
27 type: string
Gary Wu11c98742018-05-02 16:19:04 -070028 description: VM flavor for Rancher
Gary Wu60dd0d82018-01-18 14:54:47 -080029
30 k8s_vm_flavor:
31 type: string
Gary Wu11c98742018-05-02 16:19:04 -070032 description: VM flavor for k8s hosts
33
Gary Wu3fd6c2a2018-10-28 21:44:00 -070034 etcd_vm_flavor:
35 type: string
36 description: VM flavor for etcd hosts
37
38 orch_vm_flavor:
39 type: string
40 description: VM flavor for orch hosts
41
Gary Wu11c98742018-05-02 16:19:04 -070042 integration_override_yaml:
43 type: string
44 description: Content for integration_override.yaml
Gary Wu60dd0d82018-01-18 14:54:47 -080045
Gary Wu87aa8b52018-08-09 08:10:24 -070046 integration_gerrit_branch:
Gary Wu81836d22018-06-22 13:48:50 -070047 type: string
48 default: "master"
49
Gary Wu87aa8b52018-08-09 08:10:24 -070050 integration_gerrit_refspec:
51 type: string
52 default: "refs/heads/master"
53
54 oom_gerrit_branch:
55 type: string
56 default: "master"
57
58 oom_gerrit_refspec:
Gary Wu81836d22018-06-22 13:48:50 -070059 type: string
60 default: "refs/heads/master"
61
62 docker_manifest:
63 type: string
Gary Wu87aa8b52018-08-09 08:10:24 -070064 default: ""
Gary Wu81836d22018-06-22 13:48:50 -070065
gwu10db4622018-07-17 22:11:39 -070066 key_name:
67 type: string
68 default: "onap_key"
69
Gary Wu7a04b3d2018-08-15 12:31:46 -070070 docker_version:
71 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070072 default: "17.03.2"
Gary Wu7a04b3d2018-08-15 12:31:46 -070073
74 rancher_version:
75 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070076 default: "1.6.22"
Gary Wu7a04b3d2018-08-15 12:31:46 -070077
78 rancher_agent_version:
79 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070080 default: "1.2.11"
Gary Wu7a04b3d2018-08-15 12:31:46 -070081
82 kubectl_version:
83 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070084 default: "1.11.2"
Gary Wu7a04b3d2018-08-15 12:31:46 -070085
86 helm_version:
87 type: string
88 default: "2.9.1"
89
Gary Wuccd529b2018-01-16 18:31:01 -080090resources:
Gary Wuc98156d2018-01-18 12:03:26 -080091 random-str:
92 type: OS::Heat::RandomString
93 properties:
94 length: 4
95
Gary Wubc11e5d2018-02-07 10:23:27 -080096 # ONAP security group
97 onap_sg:
98 type: OS::Neutron::SecurityGroup
99 properties:
100 name:
101 str_replace:
102 template: base_rand
103 params:
104 base: onap_sg
105 rand: { get_resource: random-str }
106 description: security group used by ONAP
107 rules:
108 # All egress traffic
109 - direction: egress
110 ethertype: IPv4
111 - direction: egress
112 ethertype: IPv6
113 # ingress traffic
114 # ICMP
115 - protocol: icmp
116 - protocol: udp
117 port_range_min: 1
118 port_range_max: 65535
119 - protocol: tcp
120 port_range_min: 1
121 port_range_max: 65535
122
123
Gary Wu52dfdcb2018-01-25 11:02:48 -0800124 # ONAP management private network
125 oam_network:
126 type: OS::Neutron::Net
127 properties:
128 name:
129 str_replace:
130 template: oam_network_rand
131 params:
132 rand: { get_resource: random-str }
133
134 oam_subnet:
135 type: OS::Neutron::Subnet
136 properties:
137 name:
138 str_replace:
139 template: oam_network_rand
140 params:
141 rand: { get_resource: random-str }
142 network_id: { get_resource: oam_network }
143 cidr: { get_param: oam_network_cidr }
Gary Wu14a6b302018-05-01 15:59:28 -0700144 dns_nameservers: [ "8.8.8.8" ]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800145
146 router:
147 type: OS::Neutron::Router
148 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100149 name:
150 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800151 external_gateway_info:
152 network: { get_param: public_net_id }
153
154 router_interface:
155 type: OS::Neutron::RouterInterface
156 properties:
157 router_id: { get_resource: router }
158 subnet_id: { get_resource: oam_subnet }
159
Gary Wu374498a2018-02-06 17:31:04 -0800160 rancher_private_port:
161 type: OS::Neutron::Port
162 properties:
163 network: { get_resource: oam_network }
164 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800165 security_groups:
166 - { get_resource: onap_sg }
Gary Wu374498a2018-02-06 17:31:04 -0800167
168 rancher_floating_ip:
169 type: OS::Neutron::FloatingIP
170 properties:
171 floating_network_id: { get_param: public_net_id }
172 port_id: { get_resource: rancher_private_port }
173
Gary Wuccd529b2018-01-16 18:31:01 -0800174 rancher_vm:
175 type: OS::Nova::Server
176 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100177 name:
178 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
Gary Wu558ac6e2018-01-19 14:53:12 -0800179 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800180 flavor: { get_param: rancher_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700181 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800182 networks:
Gary Wu374498a2018-02-06 17:31:04 -0800183 - port: { get_resource: rancher_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800184 user_data_format: RAW
185 user_data:
186 str_replace:
Gary Wu1ff56672018-01-17 20:51:45 -0800187 template:
188 get_file: rancher_vm_entrypoint.sh
Gary Wu14a6b302018-05-01 15:59:28 -0700189 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700190 __docker_proxy__: { get_param: docker_proxy }
191 __apt_proxy__: { get_param: apt_proxy }
192 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700193 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu11c98742018-05-02 16:19:04 -0700194 __integration_override_yaml__: { get_param: integration_override_yaml }
Gary Wu87aa8b52018-08-09 08:10:24 -0700195 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
196 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
197 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
198 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
Gary Wu81836d22018-06-22 13:48:50 -0700199 __docker_manifest__: { get_param: docker_manifest }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700200 __docker_version__: { get_param: docker_version }
201 __rancher_version__: { get_param: rancher_version }
202 __rancher_agent_version__: { get_param: rancher_agent_version }
203 __kubectl_version__: { get_param: kubectl_version }
204 __helm_version__: { get_param: helm_version }
Gary Wu978171e2018-07-24 11:56:01 -0700205 __public_net_id__: { get_param: public_net_id }
206 __oam_network_cidr__: { get_param: oam_network_cidr }
Gary Wu11c98742018-05-02 16:19:04 -0700207 __oam_network_id__: { get_resource: oam_network }
208 __oam_subnet_id__: { get_resource: oam_subnet }
Gary Wu17440fe2018-10-22 15:12:07 -0700209 __sec_group__: { get_resource: onap_sg }
Gary Wu0a671622018-05-14 12:59:03 -0700210 __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700211 __k8s_vm_ips__: [
212 get_attr: [k8s_1_floating_ip, floating_ip_address],
213 get_attr: [k8s_2_floating_ip, floating_ip_address],
214 get_attr: [k8s_3_floating_ip, floating_ip_address],
215 get_attr: [k8s_4_floating_ip, floating_ip_address],
Gary Wu4d2cfb62018-09-07 09:05:33 -0700216 get_attr: [k8s_5_floating_ip, floating_ip_address],
Gary Wu0bf673e2018-09-18 08:24:33 -0700217 get_attr: [k8s_6_floating_ip, floating_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700218 get_attr: [k8s_7_floating_ip, floating_ip_address],
219 get_attr: [k8s_8_floating_ip, floating_ip_address],
220 get_attr: [k8s_9_floating_ip, floating_ip_address],
221 get_attr: [k8s_10_floating_ip, floating_ip_address],
222 get_attr: [k8s_11_floating_ip, floating_ip_address],
Gary Wu14a6b302018-05-01 15:59:28 -0700223 ]
Gary Wuad513722018-07-26 13:08:47 -0700224 __k8s_private_ips__: [
225 get_attr: [k8s_1_floating_ip, fixed_ip_address],
226 get_attr: [k8s_2_floating_ip, fixed_ip_address],
227 get_attr: [k8s_3_floating_ip, fixed_ip_address],
228 get_attr: [k8s_4_floating_ip, fixed_ip_address],
Gary Wu4d2cfb62018-09-07 09:05:33 -0700229 get_attr: [k8s_5_floating_ip, fixed_ip_address],
Gary Wu0bf673e2018-09-18 08:24:33 -0700230 get_attr: [k8s_6_floating_ip, fixed_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700231 get_attr: [k8s_7_floating_ip, fixed_ip_address],
232 get_attr: [k8s_8_floating_ip, fixed_ip_address],
233 get_attr: [k8s_9_floating_ip, fixed_ip_address],
234 get_attr: [k8s_10_floating_ip, fixed_ip_address],
235 get_attr: [k8s_11_floating_ip, fixed_ip_address],
Gary Wuad513722018-07-26 13:08:47 -0700236 ]
Gary Wu14a6b302018-05-01 15:59:28 -0700237 k8s_1_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800238 type: OS::Neutron::Port
239 properties:
240 network: { get_resource: oam_network }
241 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800242 security_groups:
243 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800244
Gary Wu14a6b302018-05-01 15:59:28 -0700245 k8s_1_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800246 type: OS::Neutron::FloatingIP
247 properties:
248 floating_network_id: { get_param: public_net_id }
Gary Wu14a6b302018-05-01 15:59:28 -0700249 port_id: { get_resource: k8s_1_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800250
Gary Wu14a6b302018-05-01 15:59:28 -0700251 k8s_1_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800252 type: OS::Nova::Server
253 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100254 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700255 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '1' ] ]
Gary Wu558ac6e2018-01-19 14:53:12 -0800256 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800257 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700258 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800259 networks:
Gary Wu14a6b302018-05-01 15:59:28 -0700260 - port: { get_resource: k8s_1_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800261 user_data_format: RAW
262 user_data:
263 str_replace:
264 params:
265 __docker_proxy__: { get_param: docker_proxy }
266 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700267 __docker_version__: { get_param: docker_version }
Gary Wu5d325d02018-02-06 21:21:31 -0800268 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700269 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700270 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700271 template:
272 get_file: k8s_vm_entrypoint.sh
273
274 k8s_2_private_port:
275 type: OS::Neutron::Port
276 properties:
277 network: { get_resource: oam_network }
278 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
279 security_groups:
280 - { get_resource: onap_sg }
281
282 k8s_2_floating_ip:
283 type: OS::Neutron::FloatingIP
284 properties:
285 floating_network_id: { get_param: public_net_id }
286 port_id: { get_resource: k8s_2_private_port }
287
288 k8s_2_vm:
289 type: OS::Nova::Server
290 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100291 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700292 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '2' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700293 image: { get_param: ubuntu_1604_image }
294 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700295 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700296 networks:
297 - port: { get_resource: k8s_2_private_port }
298 user_data_format: RAW
299 user_data:
300 str_replace:
301 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700302 __docker_proxy__: { get_param: docker_proxy }
303 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700304 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700305 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700306 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700307 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700308 template:
309 get_file: k8s_vm_entrypoint.sh
310
311 k8s_3_private_port:
312 type: OS::Neutron::Port
313 properties:
314 network: { get_resource: oam_network }
315 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
316 security_groups:
317 - { get_resource: onap_sg }
318
319 k8s_3_floating_ip:
320 type: OS::Neutron::FloatingIP
321 properties:
322 floating_network_id: { get_param: public_net_id }
323 port_id: { get_resource: k8s_3_private_port }
324
325 k8s_3_vm:
326 type: OS::Nova::Server
327 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100328 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700329 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '3' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700330 image: { get_param: ubuntu_1604_image }
331 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700332 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700333 networks:
334 - port: { get_resource: k8s_3_private_port }
335 user_data_format: RAW
336 user_data:
337 str_replace:
338 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700339 __docker_proxy__: { get_param: docker_proxy }
340 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700341 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700342 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700343 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700344 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700345 template:
346 get_file: k8s_vm_entrypoint.sh
347
348 k8s_4_private_port:
349 type: OS::Neutron::Port
350 properties:
351 network: { get_resource: oam_network }
352 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
353 security_groups:
354 - { get_resource: onap_sg }
355
356 k8s_4_floating_ip:
357 type: OS::Neutron::FloatingIP
358 properties:
359 floating_network_id: { get_param: public_net_id }
360 port_id: { get_resource: k8s_4_private_port }
361
362 k8s_4_vm:
363 type: OS::Nova::Server
364 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100365 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700366 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '4' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700367 image: { get_param: ubuntu_1604_image }
368 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700369 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700370 networks:
371 - port: { get_resource: k8s_4_private_port }
372 user_data_format: RAW
373 user_data:
374 str_replace:
375 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700376 __docker_proxy__: { get_param: docker_proxy }
377 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700378 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700379 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700380 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700381 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700382 template:
383 get_file: k8s_vm_entrypoint.sh
384
Gary Wu4d2cfb62018-09-07 09:05:33 -0700385 k8s_5_private_port:
386 type: OS::Neutron::Port
387 properties:
388 network: { get_resource: oam_network }
389 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
390 security_groups:
391 - { get_resource: onap_sg }
392
393 k8s_5_floating_ip:
394 type: OS::Neutron::FloatingIP
395 properties:
396 floating_network_id: { get_param: public_net_id }
397 port_id: { get_resource: k8s_5_private_port }
398
399 k8s_5_vm:
400 type: OS::Nova::Server
401 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100402 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700403 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '5' ] ]
Gary Wu4d2cfb62018-09-07 09:05:33 -0700404 image: { get_param: ubuntu_1604_image }
405 flavor: { get_param: k8s_vm_flavor }
406 key_name: { get_param: key_name }
407 networks:
408 - port: { get_resource: k8s_5_private_port }
409 user_data_format: RAW
410 user_data:
411 str_replace:
412 params:
413 __docker_proxy__: { get_param: docker_proxy }
414 __apt_proxy__: { get_param: apt_proxy }
415 __docker_version__: { get_param: docker_version }
416 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
417 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700418 __host_label__: 'compute'
Gary Wu4d2cfb62018-09-07 09:05:33 -0700419 template:
420 get_file: k8s_vm_entrypoint.sh
421
Gary Wu0bf673e2018-09-18 08:24:33 -0700422 k8s_6_private_port:
423 type: OS::Neutron::Port
424 properties:
425 network: { get_resource: oam_network }
426 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
427 security_groups:
428 - { get_resource: onap_sg }
429
430 k8s_6_floating_ip:
431 type: OS::Neutron::FloatingIP
432 properties:
433 floating_network_id: { get_param: public_net_id }
434 port_id: { get_resource: k8s_6_private_port }
435
436 k8s_6_vm:
437 type: OS::Nova::Server
438 properties:
439 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700440 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '6' ] ]
Gary Wu0bf673e2018-09-18 08:24:33 -0700441 image: { get_param: ubuntu_1604_image }
442 flavor: { get_param: k8s_vm_flavor }
443 key_name: { get_param: key_name }
444 networks:
445 - port: { get_resource: k8s_6_private_port }
446 user_data_format: RAW
447 user_data:
448 str_replace:
449 params:
450 __docker_proxy__: { get_param: docker_proxy }
451 __apt_proxy__: { get_param: apt_proxy }
452 __docker_version__: { get_param: docker_version }
453 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
454 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700455 __host_label__: 'compute'
Gary Wu0bf673e2018-09-18 08:24:33 -0700456 template:
457 get_file: k8s_vm_entrypoint.sh
458
Gary Wudc2351b2018-09-24 13:37:53 -0700459 k8s_7_private_port:
460 type: OS::Neutron::Port
461 properties:
462 network: { get_resource: oam_network }
463 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
464 security_groups:
465 - { get_resource: onap_sg }
466
467 k8s_7_floating_ip:
468 type: OS::Neutron::FloatingIP
469 properties:
470 floating_network_id: { get_param: public_net_id }
471 port_id: { get_resource: k8s_7_private_port }
472
473 k8s_7_vm:
474 type: OS::Nova::Server
475 properties:
476 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700477 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '7' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700478 image: { get_param: ubuntu_1604_image }
479 flavor: { get_param: k8s_vm_flavor }
480 key_name: { get_param: key_name }
481 networks:
482 - port: { get_resource: k8s_7_private_port }
483 user_data_format: RAW
484 user_data:
485 str_replace:
486 params:
487 __docker_proxy__: { get_param: docker_proxy }
488 __apt_proxy__: { get_param: apt_proxy }
489 __docker_version__: { get_param: docker_version }
490 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
491 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700492 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700493 template:
494 get_file: k8s_vm_entrypoint.sh
495
496 k8s_8_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_8_floating_ip:
505 type: OS::Neutron::FloatingIP
506 properties:
507 floating_network_id: { get_param: public_net_id }
508 port_id: { get_resource: k8s_8_private_port }
509
510 k8s_8_vm:
511 type: OS::Nova::Server
512 properties:
513 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700514 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '8' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700515 image: { get_param: ubuntu_1604_image }
516 flavor: { get_param: k8s_vm_flavor }
517 key_name: { get_param: key_name }
518 networks:
519 - port: { get_resource: k8s_8_private_port }
520 user_data_format: RAW
521 user_data:
522 str_replace:
523 params:
524 __docker_proxy__: { get_param: docker_proxy }
525 __apt_proxy__: { get_param: apt_proxy }
526 __docker_version__: { get_param: docker_version }
527 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
528 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700529 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700530 template:
531 get_file: k8s_vm_entrypoint.sh
532
533 k8s_9_private_port:
534 type: OS::Neutron::Port
535 properties:
536 network: { get_resource: oam_network }
537 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
538 security_groups:
539 - { get_resource: onap_sg }
540
541 k8s_9_floating_ip:
542 type: OS::Neutron::FloatingIP
543 properties:
544 floating_network_id: { get_param: public_net_id }
545 port_id: { get_resource: k8s_9_private_port }
546
547 k8s_9_vm:
548 type: OS::Nova::Server
549 properties:
550 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700551 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '9' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700552 image: { get_param: ubuntu_1604_image }
553 flavor: { get_param: k8s_vm_flavor }
554 key_name: { get_param: key_name }
555 networks:
556 - port: { get_resource: k8s_9_private_port }
557 user_data_format: RAW
558 user_data:
559 str_replace:
560 params:
561 __docker_proxy__: { get_param: docker_proxy }
562 __apt_proxy__: { get_param: apt_proxy }
563 __docker_version__: { get_param: docker_version }
564 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
565 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700566 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700567 template:
568 get_file: k8s_vm_entrypoint.sh
569
570 k8s_10_private_port:
571 type: OS::Neutron::Port
572 properties:
573 network: { get_resource: oam_network }
574 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
575 security_groups:
576 - { get_resource: onap_sg }
577
578 k8s_10_floating_ip:
579 type: OS::Neutron::FloatingIP
580 properties:
581 floating_network_id: { get_param: public_net_id }
582 port_id: { get_resource: k8s_10_private_port }
583
584 k8s_10_vm:
585 type: OS::Nova::Server
586 properties:
587 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700588 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700589 image: { get_param: ubuntu_1604_image }
590 flavor: { get_param: k8s_vm_flavor }
591 key_name: { get_param: key_name }
592 networks:
593 - port: { get_resource: k8s_10_private_port }
594 user_data_format: RAW
595 user_data:
596 str_replace:
597 params:
598 __docker_proxy__: { get_param: docker_proxy }
599 __apt_proxy__: { get_param: apt_proxy }
600 __docker_version__: { get_param: docker_version }
601 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
602 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700603 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700604 template:
605 get_file: k8s_vm_entrypoint.sh
606
607 k8s_11_private_port:
608 type: OS::Neutron::Port
609 properties:
610 network: { get_resource: oam_network }
611 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
612 security_groups:
613 - { get_resource: onap_sg }
614
615 k8s_11_floating_ip:
616 type: OS::Neutron::FloatingIP
617 properties:
618 floating_network_id: { get_param: public_net_id }
619 port_id: { get_resource: k8s_11_private_port }
620
621 k8s_11_vm:
622 type: OS::Nova::Server
623 properties:
624 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700625 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700626 image: { get_param: ubuntu_1604_image }
627 flavor: { get_param: k8s_vm_flavor }
628 key_name: { get_param: key_name }
629 networks:
630 - port: { get_resource: k8s_11_private_port }
631 user_data_format: RAW
632 user_data:
633 str_replace:
634 params:
635 __docker_proxy__: { get_param: docker_proxy }
636 __apt_proxy__: { get_param: apt_proxy }
637 __docker_version__: { get_param: docker_version }
638 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
639 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700640 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700641 template:
642 get_file: k8s_vm_entrypoint.sh
643
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700644 etcd_1_private_port:
Gary Wu61db1be2018-09-25 08:12:33 -0700645 type: OS::Neutron::Port
646 properties:
647 network: { get_resource: oam_network }
648 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
649 security_groups:
650 - { get_resource: onap_sg }
651
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700652 etcd_1_floating_ip:
Gary Wu61db1be2018-09-25 08:12:33 -0700653 type: OS::Neutron::FloatingIP
654 properties:
655 floating_network_id: { get_param: public_net_id }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700656 port_id: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700657
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700658 etcd_1_vm:
Gary Wu61db1be2018-09-25 08:12:33 -0700659 type: OS::Nova::Server
660 properties:
661 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700662 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
Gary Wu61db1be2018-09-25 08:12:33 -0700663 image: { get_param: ubuntu_1604_image }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700664 flavor: { get_param: etcd_vm_flavor }
Gary Wu61db1be2018-09-25 08:12:33 -0700665 key_name: { get_param: key_name }
666 networks:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700667 - port: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700668 user_data_format: RAW
669 user_data:
670 str_replace:
671 params:
672 __docker_proxy__: { get_param: docker_proxy }
673 __apt_proxy__: { get_param: apt_proxy }
674 __docker_version__: { get_param: docker_version }
675 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
676 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700677 __host_label__: 'etcd'
678 template:
679 get_file: k8s_vm_entrypoint.sh
680
681 etcd_2_private_port:
682 type: OS::Neutron::Port
683 properties:
684 network: { get_resource: oam_network }
685 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
686 security_groups:
687 - { get_resource: onap_sg }
688
689 etcd_2_floating_ip:
690 type: OS::Neutron::FloatingIP
691 properties:
692 floating_network_id: { get_param: public_net_id }
693 port_id: { get_resource: etcd_2_private_port }
694
695 etcd_2_vm:
696 type: OS::Nova::Server
697 properties:
698 name:
699 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
700 image: { get_param: ubuntu_1604_image }
701 flavor: { get_param: etcd_vm_flavor }
702 key_name: { get_param: key_name }
703 networks:
704 - port: { get_resource: etcd_2_private_port }
705 user_data_format: RAW
706 user_data:
707 str_replace:
708 params:
709 __docker_proxy__: { get_param: docker_proxy }
710 __apt_proxy__: { get_param: apt_proxy }
711 __docker_version__: { get_param: docker_version }
712 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
713 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
714 __host_label__: 'etcd'
715 template:
716 get_file: k8s_vm_entrypoint.sh
717
718 etcd_3_private_port:
719 type: OS::Neutron::Port
720 properties:
721 network: { get_resource: oam_network }
722 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
723 security_groups:
724 - { get_resource: onap_sg }
725
726 etcd_3_floating_ip:
727 type: OS::Neutron::FloatingIP
728 properties:
729 floating_network_id: { get_param: public_net_id }
730 port_id: { get_resource: etcd_3_private_port }
731
732 etcd_3_vm:
733 type: OS::Nova::Server
734 properties:
735 name:
736 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
737 image: { get_param: ubuntu_1604_image }
738 flavor: { get_param: etcd_vm_flavor }
739 key_name: { get_param: key_name }
740 networks:
741 - port: { get_resource: etcd_3_private_port }
742 user_data_format: RAW
743 user_data:
744 str_replace:
745 params:
746 __docker_proxy__: { get_param: docker_proxy }
747 __apt_proxy__: { get_param: apt_proxy }
748 __docker_version__: { get_param: docker_version }
749 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
750 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
751 __host_label__: 'etcd'
752 template:
753 get_file: k8s_vm_entrypoint.sh
754
755 orch_1_private_port:
756 type: OS::Neutron::Port
757 properties:
758 network: { get_resource: oam_network }
759 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
760 security_groups:
761 - { get_resource: onap_sg }
762
763 orch_1_floating_ip:
764 type: OS::Neutron::FloatingIP
765 properties:
766 floating_network_id: { get_param: public_net_id }
767 port_id: { get_resource: orch_1_private_port }
768
769 orch_1_vm:
770 type: OS::Nova::Server
771 properties:
772 name:
773 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
774 image: { get_param: ubuntu_1604_image }
775 flavor: { get_param: orch_vm_flavor }
776 key_name: { get_param: key_name }
777 networks:
778 - port: { get_resource: orch_1_private_port }
779 user_data_format: RAW
780 user_data:
781 str_replace:
782 params:
783 __docker_proxy__: { get_param: docker_proxy }
784 __apt_proxy__: { get_param: apt_proxy }
785 __docker_version__: { get_param: docker_version }
786 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
787 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
788 __host_label__: 'orchestration'
789 template:
790 get_file: k8s_vm_entrypoint.sh
791
792 orch_2_private_port:
793 type: OS::Neutron::Port
794 properties:
795 network: { get_resource: oam_network }
796 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
797 security_groups:
798 - { get_resource: onap_sg }
799
800 orch_2_floating_ip:
801 type: OS::Neutron::FloatingIP
802 properties:
803 floating_network_id: { get_param: public_net_id }
804 port_id: { get_resource: orch_2_private_port }
805
806 orch_2_vm:
807 type: OS::Nova::Server
808 properties:
809 name:
810 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '2' ] ]
811 image: { get_param: ubuntu_1604_image }
812 flavor: { get_param: orch_vm_flavor }
813 key_name: { get_param: key_name }
814 networks:
815 - port: { get_resource: orch_2_private_port }
816 user_data_format: RAW
817 user_data:
818 str_replace:
819 params:
820 __docker_proxy__: { get_param: docker_proxy }
821 __apt_proxy__: { get_param: apt_proxy }
822 __docker_version__: { get_param: docker_version }
823 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
824 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
825 __host_label__: 'orchestration'
Gary Wu61db1be2018-09-25 08:12:33 -0700826 template:
827 get_file: k8s_vm_entrypoint.sh
828
Gary Wu14ee41d2018-01-19 15:03:59 -0800829outputs:
Gary Wu61034082018-01-22 12:48:50 -0800830 rancher_vm_ip:
831 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -0800832 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -0800833
Gary Wu36e42dd2018-05-03 07:29:53 -0700834 k8s_1_vm_ip:
835 description: The IP address of the k8s_1 instance
836 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
837
838 k8s_2_vm_ip:
839 description: The IP address of the k8s_2 instance
840 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
841
842 k8s_3_vm_ip:
843 description: The IP address of the k8s_3 instance
844 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
845
846 k8s_4_vm_ip:
847 description: The IP address of the k8s_4 instance
848 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
849
Gary Wu4d2cfb62018-09-07 09:05:33 -0700850 k8s_5_vm_ip:
851 description: The IP address of the k8s_5 instance
852 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
853
Gary Wu0bf673e2018-09-18 08:24:33 -0700854 k8s_6_vm_ip:
855 description: The IP address of the k8s_6 instance
856 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
857
Gary Wudc2351b2018-09-24 13:37:53 -0700858 k8s_7_vm_ip:
859 description: The IP address of the k8s_7 instance
860 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
861
862 k8s_8_vm_ip:
863 description: The IP address of the k8s_8 instance
864 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
865
866 k8s_9_vm_ip:
867 description: The IP address of the k8s_9 instance
868 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
869
870 k8s_10_vm_ip:
871 description: The IP address of the k8s_10 instance
872 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
873
874 k8s_11_vm_ip:
875 description: The IP address of the k8s_11 instance
876 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
877