Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 1 | # |
| 2 | # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST |
| 3 | # |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 4 | heat_template_version: 2015-10-15 |
| 5 | description: ONAP on Kubernetes using OOM |
| 6 | |
| 7 | parameters: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 8 | docker_proxy: |
| 9 | type: string |
| 10 | |
| 11 | apt_proxy: |
| 12 | type: string |
| 13 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 14 | public_net_id: |
| 15 | type: string |
| 16 | description: The ID of the Public network for floating IP address allocation |
| 17 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 18 | oam_network_cidr: |
| 19 | type: string |
| 20 | description: CIDR of the OAM ONAP network |
| 21 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 22 | ubuntu_1604_image: |
| 23 | type: string |
| 24 | description: Name of the Ubuntu 16.04 image |
| 25 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 26 | rancher_vm_flavor: |
| 27 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 28 | description: VM flavor for Rancher |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 29 | |
| 30 | k8s_vm_flavor: |
| 31 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 32 | description: VM flavor for k8s hosts |
| 33 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 34 | 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 Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 42 | integration_override_yaml: |
| 43 | type: string |
| 44 | description: Content for integration_override.yaml |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 45 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 46 | integration_gerrit_branch: |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 47 | type: string |
| 48 | default: "master" |
| 49 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 50 | 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 Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 59 | type: string |
| 60 | default: "refs/heads/master" |
| 61 | |
| 62 | docker_manifest: |
| 63 | type: string |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 64 | default: "" |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 65 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 66 | key_name: |
| 67 | type: string |
| 68 | default: "onap_key" |
| 69 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 70 | docker_version: |
| 71 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 72 | default: "17.03.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 73 | |
| 74 | rancher_version: |
| 75 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 76 | default: "1.6.22" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 77 | |
| 78 | rancher_agent_version: |
| 79 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 80 | default: "1.2.11" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 81 | |
| 82 | kubectl_version: |
| 83 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 84 | default: "1.11.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 85 | |
| 86 | helm_version: |
| 87 | type: string |
| 88 | default: "2.9.1" |
| 89 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 90 | 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 Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 99 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 100 | random-str: |
| 101 | type: OS::Heat::RandomString |
| 102 | properties: |
| 103 | length: 4 |
| 104 | |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 105 | # 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 Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 133 | # 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 Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 153 | dns_nameservers: [ "8.8.8.8" ] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 154 | |
| 155 | router: |
| 156 | type: OS::Neutron::Router |
| 157 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 158 | name: |
| 159 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 160 | 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 Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 169 | 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 Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 174 | security_groups: |
| 175 | - { get_resource: onap_sg } |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 176 | |
| 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 Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 183 | rancher_vm: |
| 184 | type: OS::Nova::Server |
| 185 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 186 | name: |
| 187 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']] |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 188 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 189 | flavor: { get_param: rancher_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 190 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 191 | networks: |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 192 | - port: { get_resource: rancher_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 193 | user_data_format: RAW |
| 194 | user_data: |
| 195 | str_replace: |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 196 | template: |
| 197 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 198 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 199 | __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 Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 202 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 203 | __integration_override_yaml__: { get_param: integration_override_yaml } |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 204 | __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 Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 208 | __docker_manifest__: { get_param: docker_manifest } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 209 | __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 Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 214 | __helm_deploy_delay__: { get_param: helm_deploy_delay } |
| 215 | __use_ramdisk__: { get_param: use_ramdisk } |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 216 | __public_net_id__: { get_param: public_net_id } |
| 217 | __oam_network_cidr__: { get_param: oam_network_cidr } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 218 | __oam_network_id__: { get_resource: oam_network } |
| 219 | __oam_subnet_id__: { get_resource: oam_subnet } |
Gary Wu | 17440fe | 2018-10-22 15:12:07 -0700 | [diff] [blame] | 220 | __sec_group__: { get_resource: onap_sg } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 221 | __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 222 | __k8s_vm_ips__: [ |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 223 | 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 Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 232 | get_attr: [k8s_10_floating_ip, floating_ip_address], |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 233 | get_attr: [k8s_11_floating_ip, floating_ip_address], |
Gary Wu | 4b79dbb | 2018-11-08 20:04:33 -0800 | [diff] [blame] | 234 | get_attr: [k8s_12_floating_ip, floating_ip_address], |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 235 | ] |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 236 | __k8s_private_ips__: [ |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 237 | get_attr: [k8s_01_floating_ip, fixed_ip_address], |
| 238 | get_attr: [k8s_02_floating_ip, fixed_ip_address], |
| 239 | get_attr: [k8s_03_floating_ip, fixed_ip_address], |
| 240 | get_attr: [k8s_04_floating_ip, fixed_ip_address], |
| 241 | get_attr: [k8s_05_floating_ip, fixed_ip_address], |
| 242 | get_attr: [k8s_06_floating_ip, fixed_ip_address], |
| 243 | get_attr: [k8s_07_floating_ip, fixed_ip_address], |
| 244 | get_attr: [k8s_08_floating_ip, fixed_ip_address], |
| 245 | get_attr: [k8s_09_floating_ip, fixed_ip_address], |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 246 | get_attr: [k8s_10_floating_ip, fixed_ip_address], |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 247 | get_attr: [k8s_11_floating_ip, fixed_ip_address], |
Gary Wu | 4b79dbb | 2018-11-08 20:04:33 -0800 | [diff] [blame] | 248 | get_attr: [k8s_12_floating_ip, fixed_ip_address], |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 249 | ] |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 250 | k8s_01_private_port: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 251 | type: OS::Neutron::Port |
| 252 | properties: |
| 253 | network: { get_resource: oam_network } |
| 254 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 255 | security_groups: |
| 256 | - { get_resource: onap_sg } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 257 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 258 | k8s_01_floating_ip: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 259 | type: OS::Neutron::FloatingIP |
| 260 | properties: |
| 261 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 262 | port_id: { get_resource: k8s_01_private_port } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 263 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 264 | k8s_01_vm: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 265 | type: OS::Nova::Server |
| 266 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 267 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 268 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ] |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 269 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 270 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 271 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 272 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 273 | - port: { get_resource: k8s_01_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 274 | user_data_format: RAW |
| 275 | user_data: |
| 276 | str_replace: |
| 277 | params: |
| 278 | __docker_proxy__: { get_param: docker_proxy } |
| 279 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 280 | __docker_version__: { get_param: docker_version } |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 281 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 282 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 283 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 284 | template: |
| 285 | get_file: k8s_vm_entrypoint.sh |
| 286 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 287 | k8s_02_private_port: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 288 | type: OS::Neutron::Port |
| 289 | properties: |
| 290 | network: { get_resource: oam_network } |
| 291 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 292 | security_groups: |
| 293 | - { get_resource: onap_sg } |
| 294 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 295 | k8s_02_floating_ip: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 296 | type: OS::Neutron::FloatingIP |
| 297 | properties: |
| 298 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 299 | port_id: { get_resource: k8s_02_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 300 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 301 | k8s_02_vm: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 302 | type: OS::Nova::Server |
| 303 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 304 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 305 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 306 | image: { get_param: ubuntu_1604_image } |
| 307 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 308 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 309 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 310 | - port: { get_resource: k8s_02_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 311 | user_data_format: RAW |
| 312 | user_data: |
| 313 | str_replace: |
| 314 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 315 | __docker_proxy__: { get_param: docker_proxy } |
| 316 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 317 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 318 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 319 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 320 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 321 | template: |
| 322 | get_file: k8s_vm_entrypoint.sh |
| 323 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 324 | k8s_03_private_port: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 325 | type: OS::Neutron::Port |
| 326 | properties: |
| 327 | network: { get_resource: oam_network } |
| 328 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 329 | security_groups: |
| 330 | - { get_resource: onap_sg } |
| 331 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 332 | k8s_03_floating_ip: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 333 | type: OS::Neutron::FloatingIP |
| 334 | properties: |
| 335 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 336 | port_id: { get_resource: k8s_03_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 337 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 338 | k8s_03_vm: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 339 | type: OS::Nova::Server |
| 340 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 341 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 342 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 343 | image: { get_param: ubuntu_1604_image } |
| 344 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 345 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 346 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 347 | - port: { get_resource: k8s_03_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 348 | user_data_format: RAW |
| 349 | user_data: |
| 350 | str_replace: |
| 351 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 352 | __docker_proxy__: { get_param: docker_proxy } |
| 353 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 354 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 355 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 356 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 357 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 358 | template: |
| 359 | get_file: k8s_vm_entrypoint.sh |
| 360 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 361 | k8s_04_private_port: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 362 | type: OS::Neutron::Port |
| 363 | properties: |
| 364 | network: { get_resource: oam_network } |
| 365 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 366 | security_groups: |
| 367 | - { get_resource: onap_sg } |
| 368 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 369 | k8s_04_floating_ip: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 370 | type: OS::Neutron::FloatingIP |
| 371 | properties: |
| 372 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 373 | port_id: { get_resource: k8s_04_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 374 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 375 | k8s_04_vm: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 376 | type: OS::Nova::Server |
| 377 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 378 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 379 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 380 | image: { get_param: ubuntu_1604_image } |
| 381 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 382 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 383 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 384 | - port: { get_resource: k8s_04_private_port } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 385 | user_data_format: RAW |
| 386 | user_data: |
| 387 | str_replace: |
| 388 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 389 | __docker_proxy__: { get_param: docker_proxy } |
| 390 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 391 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 392 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 393 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 394 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 395 | template: |
| 396 | get_file: k8s_vm_entrypoint.sh |
| 397 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 398 | k8s_05_private_port: |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 399 | type: OS::Neutron::Port |
| 400 | properties: |
| 401 | network: { get_resource: oam_network } |
| 402 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 403 | security_groups: |
| 404 | - { get_resource: onap_sg } |
| 405 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 406 | k8s_05_floating_ip: |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 407 | type: OS::Neutron::FloatingIP |
| 408 | properties: |
| 409 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 410 | port_id: { get_resource: k8s_05_private_port } |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 411 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 412 | k8s_05_vm: |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 413 | type: OS::Nova::Server |
| 414 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 415 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 416 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ] |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 417 | image: { get_param: ubuntu_1604_image } |
| 418 | flavor: { get_param: k8s_vm_flavor } |
| 419 | key_name: { get_param: key_name } |
| 420 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 421 | - port: { get_resource: k8s_05_private_port } |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 422 | user_data_format: RAW |
| 423 | user_data: |
| 424 | str_replace: |
| 425 | params: |
| 426 | __docker_proxy__: { get_param: docker_proxy } |
| 427 | __apt_proxy__: { get_param: apt_proxy } |
| 428 | __docker_version__: { get_param: docker_version } |
| 429 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 430 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 431 | __host_label__: 'compute' |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 432 | template: |
| 433 | get_file: k8s_vm_entrypoint.sh |
| 434 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 435 | k8s_06_private_port: |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 436 | type: OS::Neutron::Port |
| 437 | properties: |
| 438 | network: { get_resource: oam_network } |
| 439 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 440 | security_groups: |
| 441 | - { get_resource: onap_sg } |
| 442 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 443 | k8s_06_floating_ip: |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 444 | type: OS::Neutron::FloatingIP |
| 445 | properties: |
| 446 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 447 | port_id: { get_resource: k8s_06_private_port } |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 448 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 449 | k8s_06_vm: |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 450 | type: OS::Nova::Server |
| 451 | properties: |
| 452 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 453 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ] |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 454 | image: { get_param: ubuntu_1604_image } |
| 455 | flavor: { get_param: k8s_vm_flavor } |
| 456 | key_name: { get_param: key_name } |
| 457 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 458 | - port: { get_resource: k8s_06_private_port } |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 459 | user_data_format: RAW |
| 460 | user_data: |
| 461 | str_replace: |
| 462 | params: |
| 463 | __docker_proxy__: { get_param: docker_proxy } |
| 464 | __apt_proxy__: { get_param: apt_proxy } |
| 465 | __docker_version__: { get_param: docker_version } |
| 466 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 467 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 468 | __host_label__: 'compute' |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 469 | template: |
| 470 | get_file: k8s_vm_entrypoint.sh |
| 471 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 472 | k8s_07_private_port: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 473 | type: OS::Neutron::Port |
| 474 | properties: |
| 475 | network: { get_resource: oam_network } |
| 476 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 477 | security_groups: |
| 478 | - { get_resource: onap_sg } |
| 479 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 480 | k8s_07_floating_ip: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 481 | type: OS::Neutron::FloatingIP |
| 482 | properties: |
| 483 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 484 | port_id: { get_resource: k8s_07_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 485 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 486 | k8s_07_vm: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 487 | type: OS::Nova::Server |
| 488 | properties: |
| 489 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 490 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 491 | image: { get_param: ubuntu_1604_image } |
| 492 | flavor: { get_param: k8s_vm_flavor } |
| 493 | key_name: { get_param: key_name } |
| 494 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 495 | - port: { get_resource: k8s_07_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 496 | user_data_format: RAW |
| 497 | user_data: |
| 498 | str_replace: |
| 499 | params: |
| 500 | __docker_proxy__: { get_param: docker_proxy } |
| 501 | __apt_proxy__: { get_param: apt_proxy } |
| 502 | __docker_version__: { get_param: docker_version } |
| 503 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 504 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 505 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 506 | template: |
| 507 | get_file: k8s_vm_entrypoint.sh |
| 508 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 509 | k8s_08_private_port: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 510 | type: OS::Neutron::Port |
| 511 | properties: |
| 512 | network: { get_resource: oam_network } |
| 513 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 514 | security_groups: |
| 515 | - { get_resource: onap_sg } |
| 516 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 517 | k8s_08_floating_ip: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 518 | type: OS::Neutron::FloatingIP |
| 519 | properties: |
| 520 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 521 | port_id: { get_resource: k8s_08_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 522 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 523 | k8s_08_vm: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 524 | type: OS::Nova::Server |
| 525 | properties: |
| 526 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 527 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 528 | image: { get_param: ubuntu_1604_image } |
| 529 | flavor: { get_param: k8s_vm_flavor } |
| 530 | key_name: { get_param: key_name } |
| 531 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 532 | - port: { get_resource: k8s_08_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 533 | user_data_format: RAW |
| 534 | user_data: |
| 535 | str_replace: |
| 536 | params: |
| 537 | __docker_proxy__: { get_param: docker_proxy } |
| 538 | __apt_proxy__: { get_param: apt_proxy } |
| 539 | __docker_version__: { get_param: docker_version } |
| 540 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 541 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 542 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 543 | template: |
| 544 | get_file: k8s_vm_entrypoint.sh |
| 545 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 546 | k8s_09_private_port: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 547 | type: OS::Neutron::Port |
| 548 | properties: |
| 549 | network: { get_resource: oam_network } |
| 550 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 551 | security_groups: |
| 552 | - { get_resource: onap_sg } |
| 553 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 554 | k8s_09_floating_ip: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 555 | type: OS::Neutron::FloatingIP |
| 556 | properties: |
| 557 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 558 | port_id: { get_resource: k8s_09_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 559 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 560 | k8s_09_vm: |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 561 | type: OS::Nova::Server |
| 562 | properties: |
| 563 | name: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 564 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 565 | image: { get_param: ubuntu_1604_image } |
| 566 | flavor: { get_param: k8s_vm_flavor } |
| 567 | key_name: { get_param: key_name } |
| 568 | networks: |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 569 | - port: { get_resource: k8s_09_private_port } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 570 | user_data_format: RAW |
| 571 | user_data: |
| 572 | str_replace: |
| 573 | params: |
| 574 | __docker_proxy__: { get_param: docker_proxy } |
| 575 | __apt_proxy__: { get_param: apt_proxy } |
| 576 | __docker_version__: { get_param: docker_version } |
| 577 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 578 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 579 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 580 | template: |
| 581 | get_file: k8s_vm_entrypoint.sh |
| 582 | |
| 583 | k8s_10_private_port: |
| 584 | type: OS::Neutron::Port |
| 585 | properties: |
| 586 | network: { get_resource: oam_network } |
| 587 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 588 | security_groups: |
| 589 | - { get_resource: onap_sg } |
| 590 | |
| 591 | k8s_10_floating_ip: |
| 592 | type: OS::Neutron::FloatingIP |
| 593 | properties: |
| 594 | floating_network_id: { get_param: public_net_id } |
| 595 | port_id: { get_resource: k8s_10_private_port } |
| 596 | |
| 597 | k8s_10_vm: |
| 598 | type: OS::Nova::Server |
| 599 | properties: |
| 600 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 601 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 602 | image: { get_param: ubuntu_1604_image } |
| 603 | flavor: { get_param: k8s_vm_flavor } |
| 604 | key_name: { get_param: key_name } |
| 605 | networks: |
| 606 | - port: { get_resource: k8s_10_private_port } |
| 607 | user_data_format: RAW |
| 608 | user_data: |
| 609 | str_replace: |
| 610 | params: |
| 611 | __docker_proxy__: { get_param: docker_proxy } |
| 612 | __apt_proxy__: { get_param: apt_proxy } |
| 613 | __docker_version__: { get_param: docker_version } |
| 614 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 615 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 616 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 617 | template: |
| 618 | get_file: k8s_vm_entrypoint.sh |
| 619 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 620 | k8s_11_private_port: |
| 621 | type: OS::Neutron::Port |
| 622 | properties: |
| 623 | network: { get_resource: oam_network } |
| 624 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 625 | security_groups: |
| 626 | - { get_resource: onap_sg } |
| 627 | |
| 628 | k8s_11_floating_ip: |
| 629 | type: OS::Neutron::FloatingIP |
| 630 | properties: |
| 631 | floating_network_id: { get_param: public_net_id } |
| 632 | port_id: { get_resource: k8s_11_private_port } |
| 633 | |
| 634 | k8s_11_vm: |
| 635 | type: OS::Nova::Server |
| 636 | properties: |
| 637 | name: |
| 638 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ] |
| 639 | image: { get_param: ubuntu_1604_image } |
| 640 | flavor: { get_param: k8s_vm_flavor } |
| 641 | key_name: { get_param: key_name } |
| 642 | networks: |
| 643 | - port: { get_resource: k8s_11_private_port } |
| 644 | user_data_format: RAW |
| 645 | user_data: |
| 646 | str_replace: |
| 647 | params: |
| 648 | __docker_proxy__: { get_param: docker_proxy } |
| 649 | __apt_proxy__: { get_param: apt_proxy } |
| 650 | __docker_version__: { get_param: docker_version } |
| 651 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 652 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 653 | __host_label__: 'compute' |
| 654 | template: |
| 655 | get_file: k8s_vm_entrypoint.sh |
| 656 | |
Gary Wu | 4b79dbb | 2018-11-08 20:04:33 -0800 | [diff] [blame] | 657 | k8s_12_private_port: |
| 658 | type: OS::Neutron::Port |
| 659 | properties: |
| 660 | network: { get_resource: oam_network } |
| 661 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 662 | security_groups: |
| 663 | - { get_resource: onap_sg } |
| 664 | |
| 665 | k8s_12_floating_ip: |
| 666 | type: OS::Neutron::FloatingIP |
| 667 | properties: |
| 668 | floating_network_id: { get_param: public_net_id } |
| 669 | port_id: { get_resource: k8s_12_private_port } |
| 670 | |
| 671 | k8s_12_vm: |
| 672 | type: OS::Nova::Server |
| 673 | properties: |
| 674 | name: |
| 675 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '12' ] ] |
| 676 | image: { get_param: ubuntu_1604_image } |
| 677 | flavor: { get_param: k8s_vm_flavor } |
| 678 | key_name: { get_param: key_name } |
| 679 | networks: |
| 680 | - port: { get_resource: k8s_12_private_port } |
| 681 | user_data_format: RAW |
| 682 | user_data: |
| 683 | str_replace: |
| 684 | params: |
| 685 | __docker_proxy__: { get_param: docker_proxy } |
| 686 | __apt_proxy__: { get_param: apt_proxy } |
| 687 | __docker_version__: { get_param: docker_version } |
| 688 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 689 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 690 | __host_label__: 'compute' |
| 691 | template: |
| 692 | get_file: k8s_vm_entrypoint.sh |
| 693 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 694 | etcd_1_private_port: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 695 | type: OS::Neutron::Port |
| 696 | properties: |
| 697 | network: { get_resource: oam_network } |
| 698 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 699 | security_groups: |
| 700 | - { get_resource: onap_sg } |
| 701 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 702 | etcd_1_floating_ip: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 703 | type: OS::Neutron::FloatingIP |
| 704 | properties: |
| 705 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 706 | port_id: { get_resource: etcd_1_private_port } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 707 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 708 | etcd_1_vm: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 709 | type: OS::Nova::Server |
| 710 | properties: |
| 711 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 712 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ] |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 713 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 714 | flavor: { get_param: etcd_vm_flavor } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 715 | key_name: { get_param: key_name } |
| 716 | networks: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 717 | - port: { get_resource: etcd_1_private_port } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 718 | user_data_format: RAW |
| 719 | user_data: |
| 720 | str_replace: |
| 721 | params: |
| 722 | __docker_proxy__: { get_param: docker_proxy } |
| 723 | __apt_proxy__: { get_param: apt_proxy } |
| 724 | __docker_version__: { get_param: docker_version } |
| 725 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 726 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 727 | __host_label__: 'etcd' |
| 728 | template: |
| 729 | get_file: k8s_vm_entrypoint.sh |
| 730 | |
| 731 | etcd_2_private_port: |
| 732 | type: OS::Neutron::Port |
| 733 | properties: |
| 734 | network: { get_resource: oam_network } |
| 735 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 736 | security_groups: |
| 737 | - { get_resource: onap_sg } |
| 738 | |
| 739 | etcd_2_floating_ip: |
| 740 | type: OS::Neutron::FloatingIP |
| 741 | properties: |
| 742 | floating_network_id: { get_param: public_net_id } |
| 743 | port_id: { get_resource: etcd_2_private_port } |
| 744 | |
| 745 | etcd_2_vm: |
| 746 | type: OS::Nova::Server |
| 747 | properties: |
| 748 | name: |
| 749 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ] |
| 750 | image: { get_param: ubuntu_1604_image } |
| 751 | flavor: { get_param: etcd_vm_flavor } |
| 752 | key_name: { get_param: key_name } |
| 753 | networks: |
| 754 | - port: { get_resource: etcd_2_private_port } |
| 755 | user_data_format: RAW |
| 756 | user_data: |
| 757 | str_replace: |
| 758 | params: |
| 759 | __docker_proxy__: { get_param: docker_proxy } |
| 760 | __apt_proxy__: { get_param: apt_proxy } |
| 761 | __docker_version__: { get_param: docker_version } |
| 762 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 763 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 764 | __host_label__: 'etcd' |
| 765 | template: |
| 766 | get_file: k8s_vm_entrypoint.sh |
| 767 | |
| 768 | etcd_3_private_port: |
| 769 | type: OS::Neutron::Port |
| 770 | properties: |
| 771 | network: { get_resource: oam_network } |
| 772 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 773 | security_groups: |
| 774 | - { get_resource: onap_sg } |
| 775 | |
| 776 | etcd_3_floating_ip: |
| 777 | type: OS::Neutron::FloatingIP |
| 778 | properties: |
| 779 | floating_network_id: { get_param: public_net_id } |
| 780 | port_id: { get_resource: etcd_3_private_port } |
| 781 | |
| 782 | etcd_3_vm: |
| 783 | type: OS::Nova::Server |
| 784 | properties: |
| 785 | name: |
| 786 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ] |
| 787 | image: { get_param: ubuntu_1604_image } |
| 788 | flavor: { get_param: etcd_vm_flavor } |
| 789 | key_name: { get_param: key_name } |
| 790 | networks: |
| 791 | - port: { get_resource: etcd_3_private_port } |
| 792 | user_data_format: RAW |
| 793 | user_data: |
| 794 | str_replace: |
| 795 | params: |
| 796 | __docker_proxy__: { get_param: docker_proxy } |
| 797 | __apt_proxy__: { get_param: apt_proxy } |
| 798 | __docker_version__: { get_param: docker_version } |
| 799 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 800 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 801 | __host_label__: 'etcd' |
| 802 | template: |
| 803 | get_file: k8s_vm_entrypoint.sh |
| 804 | |
Gary Wu | 89f6723 | 2018-11-01 13:45:31 -0700 | [diff] [blame] | 805 | orch_1_private_port: |
| 806 | type: OS::Neutron::Port |
| 807 | properties: |
| 808 | network: { get_resource: oam_network } |
| 809 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 810 | security_groups: |
| 811 | - { get_resource: onap_sg } |
| 812 | |
| 813 | orch_1_floating_ip: |
| 814 | type: OS::Neutron::FloatingIP |
| 815 | properties: |
| 816 | floating_network_id: { get_param: public_net_id } |
| 817 | port_id: { get_resource: orch_1_private_port } |
| 818 | |
| 819 | orch_1_vm: |
| 820 | type: OS::Nova::Server |
| 821 | properties: |
| 822 | name: |
| 823 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ] |
| 824 | image: { get_param: ubuntu_1604_image } |
| 825 | flavor: { get_param: orch_vm_flavor } |
| 826 | key_name: { get_param: key_name } |
| 827 | networks: |
| 828 | - port: { get_resource: orch_1_private_port } |
| 829 | user_data_format: RAW |
| 830 | user_data: |
| 831 | str_replace: |
| 832 | params: |
| 833 | __docker_proxy__: { get_param: docker_proxy } |
| 834 | __apt_proxy__: { get_param: apt_proxy } |
| 835 | __docker_version__: { get_param: docker_version } |
| 836 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 837 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 838 | __host_label__: 'orchestration' |
| 839 | template: |
| 840 | get_file: k8s_vm_entrypoint.sh |
| 841 | |
Gary Wu | 14ee41d | 2018-01-19 15:03:59 -0800 | [diff] [blame] | 842 | outputs: |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 843 | rancher_vm_ip: |
| 844 | description: The IP address of the rancher instance |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 845 | value: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 846 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 847 | k8s_01_vm_ip: |
| 848 | description: The IP address of the k8s_01 instance |
| 849 | value: { get_attr: [k8s_01_floating_ip, floating_ip_address] } |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 850 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 851 | k8s_02_vm_ip: |
| 852 | description: The IP address of the k8s_02 instance |
| 853 | value: { get_attr: [k8s_02_floating_ip, floating_ip_address] } |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 854 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 855 | k8s_03_vm_ip: |
| 856 | description: The IP address of the k8s_03 instance |
| 857 | value: { get_attr: [k8s_03_floating_ip, floating_ip_address] } |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 858 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 859 | k8s_04_vm_ip: |
| 860 | description: The IP address of the k8s_04 instance |
| 861 | value: { get_attr: [k8s_04_floating_ip, floating_ip_address] } |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 862 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 863 | k8s_05_vm_ip: |
| 864 | description: The IP address of the k8s_05 instance |
| 865 | value: { get_attr: [k8s_05_floating_ip, floating_ip_address] } |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 866 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 867 | k8s_06_vm_ip: |
| 868 | description: The IP address of the k8s_06 instance |
| 869 | value: { get_attr: [k8s_06_floating_ip, floating_ip_address] } |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 870 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 871 | k8s_07_vm_ip: |
| 872 | description: The IP address of the k8s_07 instance |
| 873 | value: { get_attr: [k8s_07_floating_ip, floating_ip_address] } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 874 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 875 | k8s_08_vm_ip: |
| 876 | description: The IP address of the k8s_08 instance |
| 877 | value: { get_attr: [k8s_08_floating_ip, floating_ip_address] } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 878 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 879 | k8s_09_vm_ip: |
| 880 | description: The IP address of the k8s_09 instance |
| 881 | value: { get_attr: [k8s_09_floating_ip, floating_ip_address] } |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 882 | |
| 883 | k8s_10_vm_ip: |
| 884 | description: The IP address of the k8s_10 instance |
| 885 | value: { get_attr: [k8s_10_floating_ip, floating_ip_address] } |
| 886 | |
Gary Wu | 48a3294 | 2018-11-08 07:34:49 -0800 | [diff] [blame] | 887 | k8s_11_vm_ip: |
| 888 | description: The IP address of the k8s_11 instance |
| 889 | value: { get_attr: [k8s_11_floating_ip, floating_ip_address] } |
| 890 | |
Gary Wu | 4b79dbb | 2018-11-08 20:04:33 -0800 | [diff] [blame] | 891 | k8s_12_vm_ip: |
| 892 | description: The IP address of the k8s_12 instance |
| 893 | value: { get_attr: [k8s_12_floating_ip, floating_ip_address] } |
| 894 | |