blob: dc06512bba6803d32140dc86933e3a4ad1d1399c [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],
Gary Wu14a6b302018-05-01 15:59:28 -0700222 ]
Gary Wuad513722018-07-26 13:08:47 -0700223 __k8s_private_ips__: [
224 get_attr: [k8s_1_floating_ip, fixed_ip_address],
225 get_attr: [k8s_2_floating_ip, fixed_ip_address],
226 get_attr: [k8s_3_floating_ip, fixed_ip_address],
227 get_attr: [k8s_4_floating_ip, fixed_ip_address],
Gary Wu4d2cfb62018-09-07 09:05:33 -0700228 get_attr: [k8s_5_floating_ip, fixed_ip_address],
Gary Wu0bf673e2018-09-18 08:24:33 -0700229 get_attr: [k8s_6_floating_ip, fixed_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700230 get_attr: [k8s_7_floating_ip, fixed_ip_address],
231 get_attr: [k8s_8_floating_ip, fixed_ip_address],
232 get_attr: [k8s_9_floating_ip, fixed_ip_address],
233 get_attr: [k8s_10_floating_ip, fixed_ip_address],
Gary Wuad513722018-07-26 13:08:47 -0700234 ]
Gary Wu14a6b302018-05-01 15:59:28 -0700235 k8s_1_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800236 type: OS::Neutron::Port
237 properties:
238 network: { get_resource: oam_network }
239 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800240 security_groups:
241 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800242
Gary Wu14a6b302018-05-01 15:59:28 -0700243 k8s_1_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800244 type: OS::Neutron::FloatingIP
245 properties:
246 floating_network_id: { get_param: public_net_id }
Gary Wu14a6b302018-05-01 15:59:28 -0700247 port_id: { get_resource: k8s_1_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800248
Gary Wu14a6b302018-05-01 15:59:28 -0700249 k8s_1_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800250 type: OS::Nova::Server
251 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100252 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700253 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '1' ] ]
Gary Wu558ac6e2018-01-19 14:53:12 -0800254 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800255 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700256 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800257 networks:
Gary Wu14a6b302018-05-01 15:59:28 -0700258 - port: { get_resource: k8s_1_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800259 user_data_format: RAW
260 user_data:
261 str_replace:
262 params:
263 __docker_proxy__: { get_param: docker_proxy }
264 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700265 __docker_version__: { get_param: docker_version }
Gary Wu5d325d02018-02-06 21:21:31 -0800266 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700267 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700268 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700269 template:
270 get_file: k8s_vm_entrypoint.sh
271
272 k8s_2_private_port:
273 type: OS::Neutron::Port
274 properties:
275 network: { get_resource: oam_network }
276 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
277 security_groups:
278 - { get_resource: onap_sg }
279
280 k8s_2_floating_ip:
281 type: OS::Neutron::FloatingIP
282 properties:
283 floating_network_id: { get_param: public_net_id }
284 port_id: { get_resource: k8s_2_private_port }
285
286 k8s_2_vm:
287 type: OS::Nova::Server
288 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100289 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700290 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '2' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700291 image: { get_param: ubuntu_1604_image }
292 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700293 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700294 networks:
295 - port: { get_resource: k8s_2_private_port }
296 user_data_format: RAW
297 user_data:
298 str_replace:
299 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700300 __docker_proxy__: { get_param: docker_proxy }
301 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700302 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700303 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700304 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700305 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700306 template:
307 get_file: k8s_vm_entrypoint.sh
308
309 k8s_3_private_port:
310 type: OS::Neutron::Port
311 properties:
312 network: { get_resource: oam_network }
313 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
314 security_groups:
315 - { get_resource: onap_sg }
316
317 k8s_3_floating_ip:
318 type: OS::Neutron::FloatingIP
319 properties:
320 floating_network_id: { get_param: public_net_id }
321 port_id: { get_resource: k8s_3_private_port }
322
323 k8s_3_vm:
324 type: OS::Nova::Server
325 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100326 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700327 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '3' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700328 image: { get_param: ubuntu_1604_image }
329 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700330 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700331 networks:
332 - port: { get_resource: k8s_3_private_port }
333 user_data_format: RAW
334 user_data:
335 str_replace:
336 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700337 __docker_proxy__: { get_param: docker_proxy }
338 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700339 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700340 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700341 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700342 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700343 template:
344 get_file: k8s_vm_entrypoint.sh
345
346 k8s_4_private_port:
347 type: OS::Neutron::Port
348 properties:
349 network: { get_resource: oam_network }
350 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
351 security_groups:
352 - { get_resource: onap_sg }
353
354 k8s_4_floating_ip:
355 type: OS::Neutron::FloatingIP
356 properties:
357 floating_network_id: { get_param: public_net_id }
358 port_id: { get_resource: k8s_4_private_port }
359
360 k8s_4_vm:
361 type: OS::Nova::Server
362 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100363 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700364 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '4' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700365 image: { get_param: ubuntu_1604_image }
366 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700367 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700368 networks:
369 - port: { get_resource: k8s_4_private_port }
370 user_data_format: RAW
371 user_data:
372 str_replace:
373 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700374 __docker_proxy__: { get_param: docker_proxy }
375 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700376 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700377 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700378 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700379 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700380 template:
381 get_file: k8s_vm_entrypoint.sh
382
Gary Wu4d2cfb62018-09-07 09:05:33 -0700383 k8s_5_private_port:
384 type: OS::Neutron::Port
385 properties:
386 network: { get_resource: oam_network }
387 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
388 security_groups:
389 - { get_resource: onap_sg }
390
391 k8s_5_floating_ip:
392 type: OS::Neutron::FloatingIP
393 properties:
394 floating_network_id: { get_param: public_net_id }
395 port_id: { get_resource: k8s_5_private_port }
396
397 k8s_5_vm:
398 type: OS::Nova::Server
399 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100400 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700401 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '5' ] ]
Gary Wu4d2cfb62018-09-07 09:05:33 -0700402 image: { get_param: ubuntu_1604_image }
403 flavor: { get_param: k8s_vm_flavor }
404 key_name: { get_param: key_name }
405 networks:
406 - port: { get_resource: k8s_5_private_port }
407 user_data_format: RAW
408 user_data:
409 str_replace:
410 params:
411 __docker_proxy__: { get_param: docker_proxy }
412 __apt_proxy__: { get_param: apt_proxy }
413 __docker_version__: { get_param: docker_version }
414 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
415 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700416 __host_label__: 'compute'
Gary Wu4d2cfb62018-09-07 09:05:33 -0700417 template:
418 get_file: k8s_vm_entrypoint.sh
419
Gary Wu0bf673e2018-09-18 08:24:33 -0700420 k8s_6_private_port:
421 type: OS::Neutron::Port
422 properties:
423 network: { get_resource: oam_network }
424 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
425 security_groups:
426 - { get_resource: onap_sg }
427
428 k8s_6_floating_ip:
429 type: OS::Neutron::FloatingIP
430 properties:
431 floating_network_id: { get_param: public_net_id }
432 port_id: { get_resource: k8s_6_private_port }
433
434 k8s_6_vm:
435 type: OS::Nova::Server
436 properties:
437 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700438 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '6' ] ]
Gary Wu0bf673e2018-09-18 08:24:33 -0700439 image: { get_param: ubuntu_1604_image }
440 flavor: { get_param: k8s_vm_flavor }
441 key_name: { get_param: key_name }
442 networks:
443 - port: { get_resource: k8s_6_private_port }
444 user_data_format: RAW
445 user_data:
446 str_replace:
447 params:
448 __docker_proxy__: { get_param: docker_proxy }
449 __apt_proxy__: { get_param: apt_proxy }
450 __docker_version__: { get_param: docker_version }
451 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
452 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700453 __host_label__: 'compute'
Gary Wu0bf673e2018-09-18 08:24:33 -0700454 template:
455 get_file: k8s_vm_entrypoint.sh
456
Gary Wudc2351b2018-09-24 13:37:53 -0700457 k8s_7_private_port:
458 type: OS::Neutron::Port
459 properties:
460 network: { get_resource: oam_network }
461 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
462 security_groups:
463 - { get_resource: onap_sg }
464
465 k8s_7_floating_ip:
466 type: OS::Neutron::FloatingIP
467 properties:
468 floating_network_id: { get_param: public_net_id }
469 port_id: { get_resource: k8s_7_private_port }
470
471 k8s_7_vm:
472 type: OS::Nova::Server
473 properties:
474 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700475 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '7' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700476 image: { get_param: ubuntu_1604_image }
477 flavor: { get_param: k8s_vm_flavor }
478 key_name: { get_param: key_name }
479 networks:
480 - port: { get_resource: k8s_7_private_port }
481 user_data_format: RAW
482 user_data:
483 str_replace:
484 params:
485 __docker_proxy__: { get_param: docker_proxy }
486 __apt_proxy__: { get_param: apt_proxy }
487 __docker_version__: { get_param: docker_version }
488 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
489 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700490 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700491 template:
492 get_file: k8s_vm_entrypoint.sh
493
494 k8s_8_private_port:
495 type: OS::Neutron::Port
496 properties:
497 network: { get_resource: oam_network }
498 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
499 security_groups:
500 - { get_resource: onap_sg }
501
502 k8s_8_floating_ip:
503 type: OS::Neutron::FloatingIP
504 properties:
505 floating_network_id: { get_param: public_net_id }
506 port_id: { get_resource: k8s_8_private_port }
507
508 k8s_8_vm:
509 type: OS::Nova::Server
510 properties:
511 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700512 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '8' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700513 image: { get_param: ubuntu_1604_image }
514 flavor: { get_param: k8s_vm_flavor }
515 key_name: { get_param: key_name }
516 networks:
517 - port: { get_resource: k8s_8_private_port }
518 user_data_format: RAW
519 user_data:
520 str_replace:
521 params:
522 __docker_proxy__: { get_param: docker_proxy }
523 __apt_proxy__: { get_param: apt_proxy }
524 __docker_version__: { get_param: docker_version }
525 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
526 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700527 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700528 template:
529 get_file: k8s_vm_entrypoint.sh
530
531 k8s_9_private_port:
532 type: OS::Neutron::Port
533 properties:
534 network: { get_resource: oam_network }
535 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
536 security_groups:
537 - { get_resource: onap_sg }
538
539 k8s_9_floating_ip:
540 type: OS::Neutron::FloatingIP
541 properties:
542 floating_network_id: { get_param: public_net_id }
543 port_id: { get_resource: k8s_9_private_port }
544
545 k8s_9_vm:
546 type: OS::Nova::Server
547 properties:
548 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700549 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '9' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700550 image: { get_param: ubuntu_1604_image }
551 flavor: { get_param: k8s_vm_flavor }
552 key_name: { get_param: key_name }
553 networks:
554 - port: { get_resource: k8s_9_private_port }
555 user_data_format: RAW
556 user_data:
557 str_replace:
558 params:
559 __docker_proxy__: { get_param: docker_proxy }
560 __apt_proxy__: { get_param: apt_proxy }
561 __docker_version__: { get_param: docker_version }
562 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
563 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700564 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700565 template:
566 get_file: k8s_vm_entrypoint.sh
567
568 k8s_10_private_port:
569 type: OS::Neutron::Port
570 properties:
571 network: { get_resource: oam_network }
572 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
573 security_groups:
574 - { get_resource: onap_sg }
575
576 k8s_10_floating_ip:
577 type: OS::Neutron::FloatingIP
578 properties:
579 floating_network_id: { get_param: public_net_id }
580 port_id: { get_resource: k8s_10_private_port }
581
582 k8s_10_vm:
583 type: OS::Nova::Server
584 properties:
585 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700586 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700587 image: { get_param: ubuntu_1604_image }
588 flavor: { get_param: k8s_vm_flavor }
589 key_name: { get_param: key_name }
590 networks:
591 - port: { get_resource: k8s_10_private_port }
592 user_data_format: RAW
593 user_data:
594 str_replace:
595 params:
596 __docker_proxy__: { get_param: docker_proxy }
597 __apt_proxy__: { get_param: apt_proxy }
598 __docker_version__: { get_param: docker_version }
599 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
600 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700601 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700602 template:
603 get_file: k8s_vm_entrypoint.sh
604
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700605 etcd_1_private_port:
Gary Wu61db1be2018-09-25 08:12:33 -0700606 type: OS::Neutron::Port
607 properties:
608 network: { get_resource: oam_network }
609 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
610 security_groups:
611 - { get_resource: onap_sg }
612
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700613 etcd_1_floating_ip:
Gary Wu61db1be2018-09-25 08:12:33 -0700614 type: OS::Neutron::FloatingIP
615 properties:
616 floating_network_id: { get_param: public_net_id }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700617 port_id: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700618
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700619 etcd_1_vm:
Gary Wu61db1be2018-09-25 08:12:33 -0700620 type: OS::Nova::Server
621 properties:
622 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700623 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
Gary Wu61db1be2018-09-25 08:12:33 -0700624 image: { get_param: ubuntu_1604_image }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700625 flavor: { get_param: etcd_vm_flavor }
Gary Wu61db1be2018-09-25 08:12:33 -0700626 key_name: { get_param: key_name }
627 networks:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700628 - port: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700629 user_data_format: RAW
630 user_data:
631 str_replace:
632 params:
633 __docker_proxy__: { get_param: docker_proxy }
634 __apt_proxy__: { get_param: apt_proxy }
635 __docker_version__: { get_param: docker_version }
636 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
637 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700638 __host_label__: 'etcd'
639 template:
640 get_file: k8s_vm_entrypoint.sh
641
642 etcd_2_private_port:
643 type: OS::Neutron::Port
644 properties:
645 network: { get_resource: oam_network }
646 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
647 security_groups:
648 - { get_resource: onap_sg }
649
650 etcd_2_floating_ip:
651 type: OS::Neutron::FloatingIP
652 properties:
653 floating_network_id: { get_param: public_net_id }
654 port_id: { get_resource: etcd_2_private_port }
655
656 etcd_2_vm:
657 type: OS::Nova::Server
658 properties:
659 name:
660 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
661 image: { get_param: ubuntu_1604_image }
662 flavor: { get_param: etcd_vm_flavor }
663 key_name: { get_param: key_name }
664 networks:
665 - port: { get_resource: etcd_2_private_port }
666 user_data_format: RAW
667 user_data:
668 str_replace:
669 params:
670 __docker_proxy__: { get_param: docker_proxy }
671 __apt_proxy__: { get_param: apt_proxy }
672 __docker_version__: { get_param: docker_version }
673 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
674 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
675 __host_label__: 'etcd'
676 template:
677 get_file: k8s_vm_entrypoint.sh
678
679 etcd_3_private_port:
680 type: OS::Neutron::Port
681 properties:
682 network: { get_resource: oam_network }
683 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
684 security_groups:
685 - { get_resource: onap_sg }
686
687 etcd_3_floating_ip:
688 type: OS::Neutron::FloatingIP
689 properties:
690 floating_network_id: { get_param: public_net_id }
691 port_id: { get_resource: etcd_3_private_port }
692
693 etcd_3_vm:
694 type: OS::Nova::Server
695 properties:
696 name:
697 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
698 image: { get_param: ubuntu_1604_image }
699 flavor: { get_param: etcd_vm_flavor }
700 key_name: { get_param: key_name }
701 networks:
702 - port: { get_resource: etcd_3_private_port }
703 user_data_format: RAW
704 user_data:
705 str_replace:
706 params:
707 __docker_proxy__: { get_param: docker_proxy }
708 __apt_proxy__: { get_param: apt_proxy }
709 __docker_version__: { get_param: docker_version }
710 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
711 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
712 __host_label__: 'etcd'
713 template:
714 get_file: k8s_vm_entrypoint.sh
715
Gary Wu89f67232018-11-01 13:45:31 -0700716 orch_1_private_port:
717 type: OS::Neutron::Port
718 properties:
719 network: { get_resource: oam_network }
720 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
721 security_groups:
722 - { get_resource: onap_sg }
723
724 orch_1_floating_ip:
725 type: OS::Neutron::FloatingIP
726 properties:
727 floating_network_id: { get_param: public_net_id }
728 port_id: { get_resource: orch_1_private_port }
729
730 orch_1_vm:
731 type: OS::Nova::Server
732 properties:
733 name:
734 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
735 image: { get_param: ubuntu_1604_image }
736 flavor: { get_param: orch_vm_flavor }
737 key_name: { get_param: key_name }
738 networks:
739 - port: { get_resource: orch_1_private_port }
740 user_data_format: RAW
741 user_data:
742 str_replace:
743 params:
744 __docker_proxy__: { get_param: docker_proxy }
745 __apt_proxy__: { get_param: apt_proxy }
746 __docker_version__: { get_param: docker_version }
747 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
748 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
749 __host_label__: 'orchestration'
750 template:
751 get_file: k8s_vm_entrypoint.sh
752
Gary Wu14ee41d2018-01-19 15:03:59 -0800753outputs:
Gary Wu61034082018-01-22 12:48:50 -0800754 rancher_vm_ip:
755 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -0800756 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -0800757
Gary Wu36e42dd2018-05-03 07:29:53 -0700758 k8s_1_vm_ip:
759 description: The IP address of the k8s_1 instance
760 value: { get_attr: [k8s_1_floating_ip, floating_ip_address] }
761
762 k8s_2_vm_ip:
763 description: The IP address of the k8s_2 instance
764 value: { get_attr: [k8s_2_floating_ip, floating_ip_address] }
765
766 k8s_3_vm_ip:
767 description: The IP address of the k8s_3 instance
768 value: { get_attr: [k8s_3_floating_ip, floating_ip_address] }
769
770 k8s_4_vm_ip:
771 description: The IP address of the k8s_4 instance
772 value: { get_attr: [k8s_4_floating_ip, floating_ip_address] }
773
Gary Wu4d2cfb62018-09-07 09:05:33 -0700774 k8s_5_vm_ip:
775 description: The IP address of the k8s_5 instance
776 value: { get_attr: [k8s_5_floating_ip, floating_ip_address] }
777
Gary Wu0bf673e2018-09-18 08:24:33 -0700778 k8s_6_vm_ip:
779 description: The IP address of the k8s_6 instance
780 value: { get_attr: [k8s_6_floating_ip, floating_ip_address] }
781
Gary Wudc2351b2018-09-24 13:37:53 -0700782 k8s_7_vm_ip:
783 description: The IP address of the k8s_7 instance
784 value: { get_attr: [k8s_7_floating_ip, floating_ip_address] }
785
786 k8s_8_vm_ip:
787 description: The IP address of the k8s_8 instance
788 value: { get_attr: [k8s_8_floating_ip, floating_ip_address] }
789
790 k8s_9_vm_ip:
791 description: The IP address of the k8s_9 instance
792 value: { get_attr: [k8s_9_floating_ip, floating_ip_address] }
793
794 k8s_10_vm_ip:
795 description: The IP address of the k8s_10 instance
796 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
797