blob: 930032203aa56a95957aa5f825a04a9d4167c993 [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 Wu48a32942018-11-08 07:34:49 -080090 helm_deploy_delay:
91 type: string
92 default: "2m"
93
94 use_ramdisk:
95 type: string
96 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
97 default: "false"
98
Gary Wuccd529b2018-01-16 18:31:01 -080099resources:
Gary Wuc98156d2018-01-18 12:03:26 -0800100 random-str:
101 type: OS::Heat::RandomString
102 properties:
103 length: 4
104
Gary Wubc11e5d2018-02-07 10:23:27 -0800105 # ONAP security group
106 onap_sg:
107 type: OS::Neutron::SecurityGroup
108 properties:
109 name:
110 str_replace:
111 template: base_rand
112 params:
113 base: onap_sg
114 rand: { get_resource: random-str }
115 description: security group used by ONAP
116 rules:
117 # All egress traffic
118 - direction: egress
119 ethertype: IPv4
120 - direction: egress
121 ethertype: IPv6
122 # ingress traffic
123 # ICMP
124 - protocol: icmp
125 - protocol: udp
126 port_range_min: 1
127 port_range_max: 65535
128 - protocol: tcp
129 port_range_min: 1
130 port_range_max: 65535
131
132
Gary Wu52dfdcb2018-01-25 11:02:48 -0800133 # ONAP management private network
134 oam_network:
135 type: OS::Neutron::Net
136 properties:
137 name:
138 str_replace:
139 template: oam_network_rand
140 params:
141 rand: { get_resource: random-str }
142
143 oam_subnet:
144 type: OS::Neutron::Subnet
145 properties:
146 name:
147 str_replace:
148 template: oam_network_rand
149 params:
150 rand: { get_resource: random-str }
151 network_id: { get_resource: oam_network }
152 cidr: { get_param: oam_network_cidr }
Gary Wu14a6b302018-05-01 15:59:28 -0700153 dns_nameservers: [ "8.8.8.8" ]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800154
155 router:
156 type: OS::Neutron::Router
157 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100158 name:
159 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
Gary Wu52dfdcb2018-01-25 11:02:48 -0800160 external_gateway_info:
161 network: { get_param: public_net_id }
162
163 router_interface:
164 type: OS::Neutron::RouterInterface
165 properties:
166 router_id: { get_resource: router }
167 subnet_id: { get_resource: oam_subnet }
168
Gary Wu374498a2018-02-06 17:31:04 -0800169 rancher_private_port:
170 type: OS::Neutron::Port
171 properties:
172 network: { get_resource: oam_network }
173 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800174 security_groups:
175 - { get_resource: onap_sg }
Gary Wu374498a2018-02-06 17:31:04 -0800176
177 rancher_floating_ip:
178 type: OS::Neutron::FloatingIP
179 properties:
180 floating_network_id: { get_param: public_net_id }
181 port_id: { get_resource: rancher_private_port }
182
Gary Wuccd529b2018-01-16 18:31:01 -0800183 rancher_vm:
184 type: OS::Nova::Server
185 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100186 name:
187 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']]
Gary Wu558ac6e2018-01-19 14:53:12 -0800188 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800189 flavor: { get_param: rancher_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700190 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800191 networks:
Gary Wu374498a2018-02-06 17:31:04 -0800192 - port: { get_resource: rancher_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800193 user_data_format: RAW
194 user_data:
195 str_replace:
Gary Wu1ff56672018-01-17 20:51:45 -0800196 template:
197 get_file: rancher_vm_entrypoint.sh
Gary Wu14a6b302018-05-01 15:59:28 -0700198 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700199 __docker_proxy__: { get_param: docker_proxy }
200 __apt_proxy__: { get_param: apt_proxy }
201 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700202 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu11c98742018-05-02 16:19:04 -0700203 __integration_override_yaml__: { get_param: integration_override_yaml }
Gary Wu87aa8b52018-08-09 08:10:24 -0700204 __integration_gerrit_branch__: { get_param: integration_gerrit_branch }
205 __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec }
206 __oom_gerrit_branch__: { get_param: oom_gerrit_branch }
207 __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec }
Gary Wu81836d22018-06-22 13:48:50 -0700208 __docker_manifest__: { get_param: docker_manifest }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700209 __docker_version__: { get_param: docker_version }
210 __rancher_version__: { get_param: rancher_version }
211 __rancher_agent_version__: { get_param: rancher_agent_version }
212 __kubectl_version__: { get_param: kubectl_version }
213 __helm_version__: { get_param: helm_version }
Gary Wu48a32942018-11-08 07:34:49 -0800214 __helm_deploy_delay__: { get_param: helm_deploy_delay }
215 __use_ramdisk__: { get_param: use_ramdisk }
Gary Wu978171e2018-07-24 11:56:01 -0700216 __public_net_id__: { get_param: public_net_id }
217 __oam_network_cidr__: { get_param: oam_network_cidr }
Gary Wu11c98742018-05-02 16:19:04 -0700218 __oam_network_id__: { get_resource: oam_network }
219 __oam_subnet_id__: { get_resource: oam_subnet }
Gary Wu17440fe2018-10-22 15:12:07 -0700220 __sec_group__: { get_resource: onap_sg }
Gary Wu48a32942018-11-08 07:34:49 -0800221 __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
Gary Wu14a6b302018-05-01 15:59:28 -0700222 __k8s_vm_ips__: [
Gary Wu48a32942018-11-08 07:34:49 -0800223 get_attr: [k8s_01_floating_ip, floating_ip_address],
224 get_attr: [k8s_02_floating_ip, floating_ip_address],
225 get_attr: [k8s_03_floating_ip, floating_ip_address],
226 get_attr: [k8s_04_floating_ip, floating_ip_address],
227 get_attr: [k8s_05_floating_ip, floating_ip_address],
228 get_attr: [k8s_06_floating_ip, floating_ip_address],
229 get_attr: [k8s_07_floating_ip, floating_ip_address],
230 get_attr: [k8s_08_floating_ip, floating_ip_address],
231 get_attr: [k8s_09_floating_ip, floating_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700232 get_attr: [k8s_10_floating_ip, floating_ip_address],
Gary Wu48a32942018-11-08 07:34:49 -0800233 get_attr: [k8s_11_floating_ip, floating_ip_address],
Gary Wu14a6b302018-05-01 15:59:28 -0700234 ]
Gary Wuad513722018-07-26 13:08:47 -0700235 __k8s_private_ips__: [
Gary Wu48a32942018-11-08 07:34:49 -0800236 get_attr: [k8s_01_floating_ip, fixed_ip_address],
237 get_attr: [k8s_02_floating_ip, fixed_ip_address],
238 get_attr: [k8s_03_floating_ip, fixed_ip_address],
239 get_attr: [k8s_04_floating_ip, fixed_ip_address],
240 get_attr: [k8s_05_floating_ip, fixed_ip_address],
241 get_attr: [k8s_06_floating_ip, fixed_ip_address],
242 get_attr: [k8s_07_floating_ip, fixed_ip_address],
243 get_attr: [k8s_08_floating_ip, fixed_ip_address],
244 get_attr: [k8s_09_floating_ip, fixed_ip_address],
Gary Wudc2351b2018-09-24 13:37:53 -0700245 get_attr: [k8s_10_floating_ip, fixed_ip_address],
Gary Wu48a32942018-11-08 07:34:49 -0800246 get_attr: [k8s_11_floating_ip, fixed_ip_address],
Gary Wuad513722018-07-26 13:08:47 -0700247 ]
Gary Wu48a32942018-11-08 07:34:49 -0800248 k8s_01_private_port:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800249 type: OS::Neutron::Port
250 properties:
251 network: { get_resource: oam_network }
252 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
Gary Wubc11e5d2018-02-07 10:23:27 -0800253 security_groups:
254 - { get_resource: onap_sg }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800255
Gary Wu48a32942018-11-08 07:34:49 -0800256 k8s_01_floating_ip:
Gary Wu52dfdcb2018-01-25 11:02:48 -0800257 type: OS::Neutron::FloatingIP
258 properties:
259 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800260 port_id: { get_resource: k8s_01_private_port }
Gary Wu52dfdcb2018-01-25 11:02:48 -0800261
Gary Wu48a32942018-11-08 07:34:49 -0800262 k8s_01_vm:
Gary Wuccd529b2018-01-16 18:31:01 -0800263 type: OS::Nova::Server
264 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100265 name:
Gary Wu48a32942018-11-08 07:34:49 -0800266 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ]
Gary Wu558ac6e2018-01-19 14:53:12 -0800267 image: { get_param: ubuntu_1604_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800268 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700269 key_name: { get_param: key_name }
Gary Wuccd529b2018-01-16 18:31:01 -0800270 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800271 - port: { get_resource: k8s_01_private_port }
Gary Wuccd529b2018-01-16 18:31:01 -0800272 user_data_format: RAW
273 user_data:
274 str_replace:
275 params:
276 __docker_proxy__: { get_param: docker_proxy }
277 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700278 __docker_version__: { get_param: docker_version }
Gary Wu5d325d02018-02-06 21:21:31 -0800279 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700280 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700281 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700282 template:
283 get_file: k8s_vm_entrypoint.sh
284
Gary Wu48a32942018-11-08 07:34:49 -0800285 k8s_02_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700286 type: OS::Neutron::Port
287 properties:
288 network: { get_resource: oam_network }
289 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
290 security_groups:
291 - { get_resource: onap_sg }
292
Gary Wu48a32942018-11-08 07:34:49 -0800293 k8s_02_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700294 type: OS::Neutron::FloatingIP
295 properties:
296 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800297 port_id: { get_resource: k8s_02_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700298
Gary Wu48a32942018-11-08 07:34:49 -0800299 k8s_02_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700300 type: OS::Nova::Server
301 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100302 name:
Gary Wu48a32942018-11-08 07:34:49 -0800303 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700304 image: { get_param: ubuntu_1604_image }
305 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700306 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700307 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800308 - port: { get_resource: k8s_02_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700309 user_data_format: RAW
310 user_data:
311 str_replace:
312 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700313 __docker_proxy__: { get_param: docker_proxy }
314 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700315 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700316 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700317 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700318 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700319 template:
320 get_file: k8s_vm_entrypoint.sh
321
Gary Wu48a32942018-11-08 07:34:49 -0800322 k8s_03_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700323 type: OS::Neutron::Port
324 properties:
325 network: { get_resource: oam_network }
326 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
327 security_groups:
328 - { get_resource: onap_sg }
329
Gary Wu48a32942018-11-08 07:34:49 -0800330 k8s_03_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700331 type: OS::Neutron::FloatingIP
332 properties:
333 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800334 port_id: { get_resource: k8s_03_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700335
Gary Wu48a32942018-11-08 07:34:49 -0800336 k8s_03_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700337 type: OS::Nova::Server
338 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100339 name:
Gary Wu48a32942018-11-08 07:34:49 -0800340 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700341 image: { get_param: ubuntu_1604_image }
342 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700343 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700344 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800345 - port: { get_resource: k8s_03_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700346 user_data_format: RAW
347 user_data:
348 str_replace:
349 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700350 __docker_proxy__: { get_param: docker_proxy }
351 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700352 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700353 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700354 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700355 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700356 template:
357 get_file: k8s_vm_entrypoint.sh
358
Gary Wu48a32942018-11-08 07:34:49 -0800359 k8s_04_private_port:
Gary Wu14a6b302018-05-01 15:59:28 -0700360 type: OS::Neutron::Port
361 properties:
362 network: { get_resource: oam_network }
363 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
364 security_groups:
365 - { get_resource: onap_sg }
366
Gary Wu48a32942018-11-08 07:34:49 -0800367 k8s_04_floating_ip:
Gary Wu14a6b302018-05-01 15:59:28 -0700368 type: OS::Neutron::FloatingIP
369 properties:
370 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800371 port_id: { get_resource: k8s_04_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700372
Gary Wu48a32942018-11-08 07:34:49 -0800373 k8s_04_vm:
Gary Wu14a6b302018-05-01 15:59:28 -0700374 type: OS::Nova::Server
375 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100376 name:
Gary Wu48a32942018-11-08 07:34:49 -0800377 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ]
Gary Wu14a6b302018-05-01 15:59:28 -0700378 image: { get_param: ubuntu_1604_image }
379 flavor: { get_param: k8s_vm_flavor }
gwu10db4622018-07-17 22:11:39 -0700380 key_name: { get_param: key_name }
Gary Wu14a6b302018-05-01 15:59:28 -0700381 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800382 - port: { get_resource: k8s_04_private_port }
Gary Wu14a6b302018-05-01 15:59:28 -0700383 user_data_format: RAW
384 user_data:
385 str_replace:
386 params:
Gary Wu14a6b302018-05-01 15:59:28 -0700387 __docker_proxy__: { get_param: docker_proxy }
388 __apt_proxy__: { get_param: apt_proxy }
Gary Wu7a04b3d2018-08-15 12:31:46 -0700389 __docker_version__: { get_param: docker_version }
Gary Wu14a6b302018-05-01 15:59:28 -0700390 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wuad513722018-07-26 13:08:47 -0700391 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700392 __host_label__: 'compute'
Gary Wu14a6b302018-05-01 15:59:28 -0700393 template:
394 get_file: k8s_vm_entrypoint.sh
395
Gary Wu48a32942018-11-08 07:34:49 -0800396 k8s_05_private_port:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700397 type: OS::Neutron::Port
398 properties:
399 network: { get_resource: oam_network }
400 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
401 security_groups:
402 - { get_resource: onap_sg }
403
Gary Wu48a32942018-11-08 07:34:49 -0800404 k8s_05_floating_ip:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700405 type: OS::Neutron::FloatingIP
406 properties:
407 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800408 port_id: { get_resource: k8s_05_private_port }
Gary Wu4d2cfb62018-09-07 09:05:33 -0700409
Gary Wu48a32942018-11-08 07:34:49 -0800410 k8s_05_vm:
Gary Wu4d2cfb62018-09-07 09:05:33 -0700411 type: OS::Nova::Server
412 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100413 name:
Gary Wu48a32942018-11-08 07:34:49 -0800414 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ]
Gary Wu4d2cfb62018-09-07 09:05:33 -0700415 image: { get_param: ubuntu_1604_image }
416 flavor: { get_param: k8s_vm_flavor }
417 key_name: { get_param: key_name }
418 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800419 - port: { get_resource: k8s_05_private_port }
Gary Wu4d2cfb62018-09-07 09:05:33 -0700420 user_data_format: RAW
421 user_data:
422 str_replace:
423 params:
424 __docker_proxy__: { get_param: docker_proxy }
425 __apt_proxy__: { get_param: apt_proxy }
426 __docker_version__: { get_param: docker_version }
427 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
428 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700429 __host_label__: 'compute'
Gary Wu4d2cfb62018-09-07 09:05:33 -0700430 template:
431 get_file: k8s_vm_entrypoint.sh
432
Gary Wu48a32942018-11-08 07:34:49 -0800433 k8s_06_private_port:
Gary Wu0bf673e2018-09-18 08:24:33 -0700434 type: OS::Neutron::Port
435 properties:
436 network: { get_resource: oam_network }
437 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
438 security_groups:
439 - { get_resource: onap_sg }
440
Gary Wu48a32942018-11-08 07:34:49 -0800441 k8s_06_floating_ip:
Gary Wu0bf673e2018-09-18 08:24:33 -0700442 type: OS::Neutron::FloatingIP
443 properties:
444 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800445 port_id: { get_resource: k8s_06_private_port }
Gary Wu0bf673e2018-09-18 08:24:33 -0700446
Gary Wu48a32942018-11-08 07:34:49 -0800447 k8s_06_vm:
Gary Wu0bf673e2018-09-18 08:24:33 -0700448 type: OS::Nova::Server
449 properties:
450 name:
Gary Wu48a32942018-11-08 07:34:49 -0800451 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ]
Gary Wu0bf673e2018-09-18 08:24:33 -0700452 image: { get_param: ubuntu_1604_image }
453 flavor: { get_param: k8s_vm_flavor }
454 key_name: { get_param: key_name }
455 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800456 - port: { get_resource: k8s_06_private_port }
Gary Wu0bf673e2018-09-18 08:24:33 -0700457 user_data_format: RAW
458 user_data:
459 str_replace:
460 params:
461 __docker_proxy__: { get_param: docker_proxy }
462 __apt_proxy__: { get_param: apt_proxy }
463 __docker_version__: { get_param: docker_version }
464 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
465 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700466 __host_label__: 'compute'
Gary Wu0bf673e2018-09-18 08:24:33 -0700467 template:
468 get_file: k8s_vm_entrypoint.sh
469
Gary Wu48a32942018-11-08 07:34:49 -0800470 k8s_07_private_port:
Gary Wudc2351b2018-09-24 13:37:53 -0700471 type: OS::Neutron::Port
472 properties:
473 network: { get_resource: oam_network }
474 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
475 security_groups:
476 - { get_resource: onap_sg }
477
Gary Wu48a32942018-11-08 07:34:49 -0800478 k8s_07_floating_ip:
Gary Wudc2351b2018-09-24 13:37:53 -0700479 type: OS::Neutron::FloatingIP
480 properties:
481 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800482 port_id: { get_resource: k8s_07_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700483
Gary Wu48a32942018-11-08 07:34:49 -0800484 k8s_07_vm:
Gary Wudc2351b2018-09-24 13:37:53 -0700485 type: OS::Nova::Server
486 properties:
487 name:
Gary Wu48a32942018-11-08 07:34:49 -0800488 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700489 image: { get_param: ubuntu_1604_image }
490 flavor: { get_param: k8s_vm_flavor }
491 key_name: { get_param: key_name }
492 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800493 - port: { get_resource: k8s_07_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700494 user_data_format: RAW
495 user_data:
496 str_replace:
497 params:
498 __docker_proxy__: { get_param: docker_proxy }
499 __apt_proxy__: { get_param: apt_proxy }
500 __docker_version__: { get_param: docker_version }
501 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
502 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700503 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700504 template:
505 get_file: k8s_vm_entrypoint.sh
506
Gary Wu48a32942018-11-08 07:34:49 -0800507 k8s_08_private_port:
Gary Wudc2351b2018-09-24 13:37:53 -0700508 type: OS::Neutron::Port
509 properties:
510 network: { get_resource: oam_network }
511 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
512 security_groups:
513 - { get_resource: onap_sg }
514
Gary Wu48a32942018-11-08 07:34:49 -0800515 k8s_08_floating_ip:
Gary Wudc2351b2018-09-24 13:37:53 -0700516 type: OS::Neutron::FloatingIP
517 properties:
518 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800519 port_id: { get_resource: k8s_08_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700520
Gary Wu48a32942018-11-08 07:34:49 -0800521 k8s_08_vm:
Gary Wudc2351b2018-09-24 13:37:53 -0700522 type: OS::Nova::Server
523 properties:
524 name:
Gary Wu48a32942018-11-08 07:34:49 -0800525 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700526 image: { get_param: ubuntu_1604_image }
527 flavor: { get_param: k8s_vm_flavor }
528 key_name: { get_param: key_name }
529 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800530 - port: { get_resource: k8s_08_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700531 user_data_format: RAW
532 user_data:
533 str_replace:
534 params:
535 __docker_proxy__: { get_param: docker_proxy }
536 __apt_proxy__: { get_param: apt_proxy }
537 __docker_version__: { get_param: docker_version }
538 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
539 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700540 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700541 template:
542 get_file: k8s_vm_entrypoint.sh
543
Gary Wu48a32942018-11-08 07:34:49 -0800544 k8s_09_private_port:
Gary Wudc2351b2018-09-24 13:37:53 -0700545 type: OS::Neutron::Port
546 properties:
547 network: { get_resource: oam_network }
548 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
549 security_groups:
550 - { get_resource: onap_sg }
551
Gary Wu48a32942018-11-08 07:34:49 -0800552 k8s_09_floating_ip:
Gary Wudc2351b2018-09-24 13:37:53 -0700553 type: OS::Neutron::FloatingIP
554 properties:
555 floating_network_id: { get_param: public_net_id }
Gary Wu48a32942018-11-08 07:34:49 -0800556 port_id: { get_resource: k8s_09_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700557
Gary Wu48a32942018-11-08 07:34:49 -0800558 k8s_09_vm:
Gary Wudc2351b2018-09-24 13:37:53 -0700559 type: OS::Nova::Server
560 properties:
561 name:
Gary Wu48a32942018-11-08 07:34:49 -0800562 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700563 image: { get_param: ubuntu_1604_image }
564 flavor: { get_param: k8s_vm_flavor }
565 key_name: { get_param: key_name }
566 networks:
Gary Wu48a32942018-11-08 07:34:49 -0800567 - port: { get_resource: k8s_09_private_port }
Gary Wudc2351b2018-09-24 13:37:53 -0700568 user_data_format: RAW
569 user_data:
570 str_replace:
571 params:
572 __docker_proxy__: { get_param: docker_proxy }
573 __apt_proxy__: { get_param: apt_proxy }
574 __docker_version__: { get_param: docker_version }
575 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
576 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700577 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700578 template:
579 get_file: k8s_vm_entrypoint.sh
580
581 k8s_10_private_port:
582 type: OS::Neutron::Port
583 properties:
584 network: { get_resource: oam_network }
585 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
586 security_groups:
587 - { get_resource: onap_sg }
588
589 k8s_10_floating_ip:
590 type: OS::Neutron::FloatingIP
591 properties:
592 floating_network_id: { get_param: public_net_id }
593 port_id: { get_resource: k8s_10_private_port }
594
595 k8s_10_vm:
596 type: OS::Nova::Server
597 properties:
598 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700599 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
Gary Wudc2351b2018-09-24 13:37:53 -0700600 image: { get_param: ubuntu_1604_image }
601 flavor: { get_param: k8s_vm_flavor }
602 key_name: { get_param: key_name }
603 networks:
604 - port: { get_resource: k8s_10_private_port }
605 user_data_format: RAW
606 user_data:
607 str_replace:
608 params:
609 __docker_proxy__: { get_param: docker_proxy }
610 __apt_proxy__: { get_param: apt_proxy }
611 __docker_version__: { get_param: docker_version }
612 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
613 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700614 __host_label__: 'compute'
Gary Wudc2351b2018-09-24 13:37:53 -0700615 template:
616 get_file: k8s_vm_entrypoint.sh
617
Gary Wu48a32942018-11-08 07:34:49 -0800618 k8s_11_private_port:
619 type: OS::Neutron::Port
620 properties:
621 network: { get_resource: oam_network }
622 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
623 security_groups:
624 - { get_resource: onap_sg }
625
626 k8s_11_floating_ip:
627 type: OS::Neutron::FloatingIP
628 properties:
629 floating_network_id: { get_param: public_net_id }
630 port_id: { get_resource: k8s_11_private_port }
631
632 k8s_11_vm:
633 type: OS::Nova::Server
634 properties:
635 name:
636 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
637 image: { get_param: ubuntu_1604_image }
638 flavor: { get_param: k8s_vm_flavor }
639 key_name: { get_param: key_name }
640 networks:
641 - port: { get_resource: k8s_11_private_port }
642 user_data_format: RAW
643 user_data:
644 str_replace:
645 params:
646 __docker_proxy__: { get_param: docker_proxy }
647 __apt_proxy__: { get_param: apt_proxy }
648 __docker_version__: { get_param: docker_version }
649 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
650 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
651 __host_label__: 'compute'
652 template:
653 get_file: k8s_vm_entrypoint.sh
654
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700655 etcd_1_private_port:
Gary Wu61db1be2018-09-25 08:12:33 -0700656 type: OS::Neutron::Port
657 properties:
658 network: { get_resource: oam_network }
659 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
660 security_groups:
661 - { get_resource: onap_sg }
662
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700663 etcd_1_floating_ip:
Gary Wu61db1be2018-09-25 08:12:33 -0700664 type: OS::Neutron::FloatingIP
665 properties:
666 floating_network_id: { get_param: public_net_id }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700667 port_id: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700668
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700669 etcd_1_vm:
Gary Wu61db1be2018-09-25 08:12:33 -0700670 type: OS::Nova::Server
671 properties:
672 name:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700673 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ]
Gary Wu61db1be2018-09-25 08:12:33 -0700674 image: { get_param: ubuntu_1604_image }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700675 flavor: { get_param: etcd_vm_flavor }
Gary Wu61db1be2018-09-25 08:12:33 -0700676 key_name: { get_param: key_name }
677 networks:
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700678 - port: { get_resource: etcd_1_private_port }
Gary Wu61db1be2018-09-25 08:12:33 -0700679 user_data_format: RAW
680 user_data:
681 str_replace:
682 params:
683 __docker_proxy__: { get_param: docker_proxy }
684 __apt_proxy__: { get_param: apt_proxy }
685 __docker_version__: { get_param: docker_version }
686 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
687 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
Gary Wu3fd6c2a2018-10-28 21:44:00 -0700688 __host_label__: 'etcd'
689 template:
690 get_file: k8s_vm_entrypoint.sh
691
692 etcd_2_private_port:
693 type: OS::Neutron::Port
694 properties:
695 network: { get_resource: oam_network }
696 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
697 security_groups:
698 - { get_resource: onap_sg }
699
700 etcd_2_floating_ip:
701 type: OS::Neutron::FloatingIP
702 properties:
703 floating_network_id: { get_param: public_net_id }
704 port_id: { get_resource: etcd_2_private_port }
705
706 etcd_2_vm:
707 type: OS::Nova::Server
708 properties:
709 name:
710 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ]
711 image: { get_param: ubuntu_1604_image }
712 flavor: { get_param: etcd_vm_flavor }
713 key_name: { get_param: key_name }
714 networks:
715 - port: { get_resource: etcd_2_private_port }
716 user_data_format: RAW
717 user_data:
718 str_replace:
719 params:
720 __docker_proxy__: { get_param: docker_proxy }
721 __apt_proxy__: { get_param: apt_proxy }
722 __docker_version__: { get_param: docker_version }
723 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
724 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
725 __host_label__: 'etcd'
726 template:
727 get_file: k8s_vm_entrypoint.sh
728
729 etcd_3_private_port:
730 type: OS::Neutron::Port
731 properties:
732 network: { get_resource: oam_network }
733 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
734 security_groups:
735 - { get_resource: onap_sg }
736
737 etcd_3_floating_ip:
738 type: OS::Neutron::FloatingIP
739 properties:
740 floating_network_id: { get_param: public_net_id }
741 port_id: { get_resource: etcd_3_private_port }
742
743 etcd_3_vm:
744 type: OS::Nova::Server
745 properties:
746 name:
747 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ]
748 image: { get_param: ubuntu_1604_image }
749 flavor: { get_param: etcd_vm_flavor }
750 key_name: { get_param: key_name }
751 networks:
752 - port: { get_resource: etcd_3_private_port }
753 user_data_format: RAW
754 user_data:
755 str_replace:
756 params:
757 __docker_proxy__: { get_param: docker_proxy }
758 __apt_proxy__: { get_param: apt_proxy }
759 __docker_version__: { get_param: docker_version }
760 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
761 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
762 __host_label__: 'etcd'
763 template:
764 get_file: k8s_vm_entrypoint.sh
765
Gary Wu89f67232018-11-01 13:45:31 -0700766 orch_1_private_port:
767 type: OS::Neutron::Port
768 properties:
769 network: { get_resource: oam_network }
770 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
771 security_groups:
772 - { get_resource: onap_sg }
773
774 orch_1_floating_ip:
775 type: OS::Neutron::FloatingIP
776 properties:
777 floating_network_id: { get_param: public_net_id }
778 port_id: { get_resource: orch_1_private_port }
779
780 orch_1_vm:
781 type: OS::Nova::Server
782 properties:
783 name:
784 list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ]
785 image: { get_param: ubuntu_1604_image }
786 flavor: { get_param: orch_vm_flavor }
787 key_name: { get_param: key_name }
788 networks:
789 - port: { get_resource: orch_1_private_port }
790 user_data_format: RAW
791 user_data:
792 str_replace:
793 params:
794 __docker_proxy__: { get_param: docker_proxy }
795 __apt_proxy__: { get_param: apt_proxy }
796 __docker_version__: { get_param: docker_version }
797 __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] }
798 __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] }
799 __host_label__: 'orchestration'
800 template:
801 get_file: k8s_vm_entrypoint.sh
802
Gary Wu14ee41d2018-01-19 15:03:59 -0800803outputs:
Gary Wu61034082018-01-22 12:48:50 -0800804 rancher_vm_ip:
805 description: The IP address of the rancher instance
Gary Wu5d325d02018-02-06 21:21:31 -0800806 value: { get_attr: [rancher_floating_ip, floating_ip_address] }
Gary Wu61034082018-01-22 12:48:50 -0800807
Gary Wu48a32942018-11-08 07:34:49 -0800808 k8s_01_vm_ip:
809 description: The IP address of the k8s_01 instance
810 value: { get_attr: [k8s_01_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -0700811
Gary Wu48a32942018-11-08 07:34:49 -0800812 k8s_02_vm_ip:
813 description: The IP address of the k8s_02 instance
814 value: { get_attr: [k8s_02_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -0700815
Gary Wu48a32942018-11-08 07:34:49 -0800816 k8s_03_vm_ip:
817 description: The IP address of the k8s_03 instance
818 value: { get_attr: [k8s_03_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -0700819
Gary Wu48a32942018-11-08 07:34:49 -0800820 k8s_04_vm_ip:
821 description: The IP address of the k8s_04 instance
822 value: { get_attr: [k8s_04_floating_ip, floating_ip_address] }
Gary Wu36e42dd2018-05-03 07:29:53 -0700823
Gary Wu48a32942018-11-08 07:34:49 -0800824 k8s_05_vm_ip:
825 description: The IP address of the k8s_05 instance
826 value: { get_attr: [k8s_05_floating_ip, floating_ip_address] }
Gary Wu4d2cfb62018-09-07 09:05:33 -0700827
Gary Wu48a32942018-11-08 07:34:49 -0800828 k8s_06_vm_ip:
829 description: The IP address of the k8s_06 instance
830 value: { get_attr: [k8s_06_floating_ip, floating_ip_address] }
Gary Wu0bf673e2018-09-18 08:24:33 -0700831
Gary Wu48a32942018-11-08 07:34:49 -0800832 k8s_07_vm_ip:
833 description: The IP address of the k8s_07 instance
834 value: { get_attr: [k8s_07_floating_ip, floating_ip_address] }
Gary Wudc2351b2018-09-24 13:37:53 -0700835
Gary Wu48a32942018-11-08 07:34:49 -0800836 k8s_08_vm_ip:
837 description: The IP address of the k8s_08 instance
838 value: { get_attr: [k8s_08_floating_ip, floating_ip_address] }
Gary Wudc2351b2018-09-24 13:37:53 -0700839
Gary Wu48a32942018-11-08 07:34:49 -0800840 k8s_09_vm_ip:
841 description: The IP address of the k8s_09 instance
842 value: { get_attr: [k8s_09_floating_ip, floating_ip_address] }
Gary Wudc2351b2018-09-24 13:37:53 -0700843
844 k8s_10_vm_ip:
845 description: The IP address of the k8s_10 instance
846 value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
847
Gary Wu48a32942018-11-08 07:34:49 -0800848 k8s_11_vm_ip:
849 description: The IP address of the k8s_11 instance
850 value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
851