Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 1 | # |
| 2 | # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST |
| 3 | # |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 4 | heat_template_version: 2015-10-15 |
| 5 | description: ONAP on Kubernetes using OOM |
| 6 | |
| 7 | parameters: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 8 | docker_proxy: |
| 9 | type: string |
| 10 | |
| 11 | apt_proxy: |
| 12 | type: string |
| 13 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 14 | public_net_id: |
| 15 | type: string |
| 16 | description: The ID of the Public network for floating IP address allocation |
| 17 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 18 | oam_network_cidr: |
| 19 | type: string |
| 20 | description: CIDR of the OAM ONAP network |
| 21 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 22 | ubuntu_1604_image: |
| 23 | type: string |
| 24 | description: Name of the Ubuntu 16.04 image |
| 25 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 26 | rancher_vm_flavor: |
| 27 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 28 | description: VM flavor for Rancher |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 29 | |
| 30 | k8s_vm_flavor: |
| 31 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 32 | description: VM flavor for k8s hosts |
| 33 | |
| 34 | integration_override_yaml: |
| 35 | type: string |
| 36 | description: Content for integration_override.yaml |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 37 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 38 | integration_gerrit_branch: |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 39 | type: string |
| 40 | default: "master" |
| 41 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 42 | integration_gerrit_refspec: |
| 43 | type: string |
| 44 | default: "refs/heads/master" |
| 45 | |
| 46 | oom_gerrit_branch: |
| 47 | type: string |
| 48 | default: "master" |
| 49 | |
| 50 | oom_gerrit_refspec: |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 51 | type: string |
| 52 | default: "refs/heads/master" |
| 53 | |
| 54 | docker_manifest: |
| 55 | type: string |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 56 | default: "" |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 57 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 58 | key_name: |
| 59 | type: string |
| 60 | default: "onap_key" |
| 61 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 62 | docker_version: |
| 63 | type: string |
| 64 | default: "17.03" |
| 65 | |
| 66 | rancher_version: |
| 67 | type: string |
| 68 | default: "1.6.18" |
| 69 | |
| 70 | rancher_agent_version: |
| 71 | type: string |
| 72 | default: "1.2.10" |
| 73 | |
| 74 | kubectl_version: |
| 75 | type: string |
| 76 | default: "1.8.10" |
| 77 | |
| 78 | helm_version: |
| 79 | type: string |
| 80 | default: "2.9.1" |
| 81 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 82 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 83 | random-str: |
| 84 | type: OS::Heat::RandomString |
| 85 | properties: |
| 86 | length: 4 |
| 87 | |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 88 | # ONAP security group |
| 89 | onap_sg: |
| 90 | type: OS::Neutron::SecurityGroup |
| 91 | properties: |
| 92 | name: |
| 93 | str_replace: |
| 94 | template: base_rand |
| 95 | params: |
| 96 | base: onap_sg |
| 97 | rand: { get_resource: random-str } |
| 98 | description: security group used by ONAP |
| 99 | rules: |
| 100 | # All egress traffic |
| 101 | - direction: egress |
| 102 | ethertype: IPv4 |
| 103 | - direction: egress |
| 104 | ethertype: IPv6 |
| 105 | # ingress traffic |
| 106 | # ICMP |
| 107 | - protocol: icmp |
| 108 | - protocol: udp |
| 109 | port_range_min: 1 |
| 110 | port_range_max: 65535 |
| 111 | - protocol: tcp |
| 112 | port_range_min: 1 |
| 113 | port_range_max: 65535 |
| 114 | |
| 115 | |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 116 | # ONAP management private network |
| 117 | oam_network: |
| 118 | type: OS::Neutron::Net |
| 119 | properties: |
| 120 | name: |
| 121 | str_replace: |
| 122 | template: oam_network_rand |
| 123 | params: |
| 124 | rand: { get_resource: random-str } |
| 125 | |
| 126 | oam_subnet: |
| 127 | type: OS::Neutron::Subnet |
| 128 | properties: |
| 129 | name: |
| 130 | str_replace: |
| 131 | template: oam_network_rand |
| 132 | params: |
| 133 | rand: { get_resource: random-str } |
| 134 | network_id: { get_resource: oam_network } |
| 135 | cidr: { get_param: oam_network_cidr } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 136 | dns_nameservers: [ "8.8.8.8" ] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 137 | |
| 138 | router: |
| 139 | type: OS::Neutron::Router |
| 140 | properties: |
| 141 | external_gateway_info: |
| 142 | network: { get_param: public_net_id } |
| 143 | |
| 144 | router_interface: |
| 145 | type: OS::Neutron::RouterInterface |
| 146 | properties: |
| 147 | router_id: { get_resource: router } |
| 148 | subnet_id: { get_resource: oam_subnet } |
| 149 | |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 150 | rancher_private_port: |
| 151 | type: OS::Neutron::Port |
| 152 | properties: |
| 153 | network: { get_resource: oam_network } |
| 154 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 155 | security_groups: |
| 156 | - { get_resource: onap_sg } |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 157 | |
| 158 | rancher_floating_ip: |
| 159 | type: OS::Neutron::FloatingIP |
| 160 | properties: |
| 161 | floating_network_id: { get_param: public_net_id } |
| 162 | port_id: { get_resource: rancher_private_port } |
| 163 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 164 | rancher_vm: |
| 165 | type: OS::Nova::Server |
| 166 | properties: |
| 167 | name: rancher |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 168 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 169 | flavor: { get_param: rancher_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 170 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 171 | networks: |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 172 | - port: { get_resource: rancher_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 173 | user_data_format: RAW |
| 174 | user_data: |
| 175 | str_replace: |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 176 | template: |
| 177 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 178 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 179 | __docker_proxy__: { get_param: docker_proxy } |
| 180 | __apt_proxy__: { get_param: apt_proxy } |
| 181 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 182 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 183 | __integration_override_yaml__: { get_param: integration_override_yaml } |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 184 | __integration_gerrit_branch__: { get_param: integration_gerrit_branch } |
| 185 | __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec } |
| 186 | __oom_gerrit_branch__: { get_param: oom_gerrit_branch } |
| 187 | __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec } |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 188 | __docker_manifest__: { get_param: docker_manifest } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 189 | __docker_version__: { get_param: docker_version } |
| 190 | __rancher_version__: { get_param: rancher_version } |
| 191 | __rancher_agent_version__: { get_param: rancher_agent_version } |
| 192 | __kubectl_version__: { get_param: kubectl_version } |
| 193 | __helm_version__: { get_param: helm_version } |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 194 | __public_net_id__: { get_param: public_net_id } |
| 195 | __oam_network_cidr__: { get_param: oam_network_cidr } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 196 | __oam_network_id__: { get_resource: oam_network } |
| 197 | __oam_subnet_id__: { get_resource: oam_subnet } |
Gary Wu | 0a67162 | 2018-05-14 12:59:03 -0700 | [diff] [blame] | 198 | __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 199 | __k8s_vm_ips__: [ |
| 200 | get_attr: [k8s_1_floating_ip, floating_ip_address], |
| 201 | get_attr: [k8s_2_floating_ip, floating_ip_address], |
| 202 | get_attr: [k8s_3_floating_ip, floating_ip_address], |
| 203 | get_attr: [k8s_4_floating_ip, floating_ip_address], |
| 204 | get_attr: [k8s_5_floating_ip, floating_ip_address], |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 205 | ] |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 206 | __k8s_private_ips__: [ |
| 207 | get_attr: [k8s_1_floating_ip, fixed_ip_address], |
| 208 | get_attr: [k8s_2_floating_ip, fixed_ip_address], |
| 209 | get_attr: [k8s_3_floating_ip, fixed_ip_address], |
| 210 | get_attr: [k8s_4_floating_ip, fixed_ip_address], |
| 211 | get_attr: [k8s_5_floating_ip, fixed_ip_address], |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 212 | ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 213 | k8s_1_private_port: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 214 | type: OS::Neutron::Port |
| 215 | properties: |
| 216 | network: { get_resource: oam_network } |
| 217 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 218 | security_groups: |
| 219 | - { get_resource: onap_sg } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 220 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 221 | k8s_1_floating_ip: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 222 | type: OS::Neutron::FloatingIP |
| 223 | properties: |
| 224 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 225 | port_id: { get_resource: k8s_1_private_port } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 226 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 227 | k8s_1_vm: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 228 | type: OS::Nova::Server |
| 229 | properties: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 230 | name: k8s_1 |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 231 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 232 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 233 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 234 | networks: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 235 | - port: { get_resource: k8s_1_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 236 | user_data_format: RAW |
| 237 | user_data: |
| 238 | str_replace: |
| 239 | params: |
| 240 | __docker_proxy__: { get_param: docker_proxy } |
| 241 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 242 | __docker_version__: { get_param: docker_version } |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 243 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 244 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 245 | template: |
| 246 | get_file: k8s_vm_entrypoint.sh |
| 247 | |
| 248 | k8s_2_private_port: |
| 249 | type: OS::Neutron::Port |
| 250 | properties: |
| 251 | network: { get_resource: oam_network } |
| 252 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 253 | security_groups: |
| 254 | - { get_resource: onap_sg } |
| 255 | |
| 256 | k8s_2_floating_ip: |
| 257 | type: OS::Neutron::FloatingIP |
| 258 | properties: |
| 259 | floating_network_id: { get_param: public_net_id } |
| 260 | port_id: { get_resource: k8s_2_private_port } |
| 261 | |
| 262 | k8s_2_vm: |
| 263 | type: OS::Nova::Server |
| 264 | properties: |
| 265 | name: k8s_2 |
| 266 | image: { get_param: ubuntu_1604_image } |
| 267 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 268 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 269 | networks: |
| 270 | - port: { get_resource: k8s_2_private_port } |
| 271 | user_data_format: RAW |
| 272 | user_data: |
| 273 | str_replace: |
| 274 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 275 | __docker_proxy__: { get_param: docker_proxy } |
| 276 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 277 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 278 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 279 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 280 | template: |
| 281 | get_file: k8s_vm_entrypoint.sh |
| 282 | |
| 283 | k8s_3_private_port: |
| 284 | type: OS::Neutron::Port |
| 285 | properties: |
| 286 | network: { get_resource: oam_network } |
| 287 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 288 | security_groups: |
| 289 | - { get_resource: onap_sg } |
| 290 | |
| 291 | k8s_3_floating_ip: |
| 292 | type: OS::Neutron::FloatingIP |
| 293 | properties: |
| 294 | floating_network_id: { get_param: public_net_id } |
| 295 | port_id: { get_resource: k8s_3_private_port } |
| 296 | |
| 297 | k8s_3_vm: |
| 298 | type: OS::Nova::Server |
| 299 | properties: |
| 300 | name: k8s_3 |
| 301 | image: { get_param: ubuntu_1604_image } |
| 302 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 303 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 304 | networks: |
| 305 | - port: { get_resource: k8s_3_private_port } |
| 306 | user_data_format: RAW |
| 307 | user_data: |
| 308 | str_replace: |
| 309 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 310 | __docker_proxy__: { get_param: docker_proxy } |
| 311 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 312 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 313 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 314 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 315 | template: |
| 316 | get_file: k8s_vm_entrypoint.sh |
| 317 | |
| 318 | k8s_4_private_port: |
| 319 | type: OS::Neutron::Port |
| 320 | properties: |
| 321 | network: { get_resource: oam_network } |
| 322 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 323 | security_groups: |
| 324 | - { get_resource: onap_sg } |
| 325 | |
| 326 | k8s_4_floating_ip: |
| 327 | type: OS::Neutron::FloatingIP |
| 328 | properties: |
| 329 | floating_network_id: { get_param: public_net_id } |
| 330 | port_id: { get_resource: k8s_4_private_port } |
| 331 | |
| 332 | k8s_4_vm: |
| 333 | type: OS::Nova::Server |
| 334 | properties: |
| 335 | name: k8s_4 |
| 336 | image: { get_param: ubuntu_1604_image } |
| 337 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 338 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 339 | networks: |
| 340 | - port: { get_resource: k8s_4_private_port } |
| 341 | user_data_format: RAW |
| 342 | user_data: |
| 343 | str_replace: |
| 344 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 345 | __docker_proxy__: { get_param: docker_proxy } |
| 346 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 347 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 348 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 349 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 350 | template: |
| 351 | get_file: k8s_vm_entrypoint.sh |
| 352 | |
| 353 | k8s_5_private_port: |
| 354 | type: OS::Neutron::Port |
| 355 | properties: |
| 356 | network: { get_resource: oam_network } |
| 357 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 358 | security_groups: |
| 359 | - { get_resource: onap_sg } |
| 360 | |
| 361 | k8s_5_floating_ip: |
| 362 | type: OS::Neutron::FloatingIP |
| 363 | properties: |
| 364 | floating_network_id: { get_param: public_net_id } |
| 365 | port_id: { get_resource: k8s_5_private_port } |
| 366 | |
| 367 | k8s_5_vm: |
| 368 | type: OS::Nova::Server |
| 369 | properties: |
| 370 | name: k8s_5 |
| 371 | image: { get_param: ubuntu_1604_image } |
| 372 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 373 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 374 | networks: |
| 375 | - port: { get_resource: k8s_5_private_port } |
| 376 | user_data_format: RAW |
| 377 | user_data: |
| 378 | str_replace: |
| 379 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 380 | __docker_proxy__: { get_param: docker_proxy } |
| 381 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 382 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 383 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 384 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 385 | template: |
| 386 | get_file: k8s_vm_entrypoint.sh |
| 387 | |
Gary Wu | 14ee41d | 2018-01-19 15:03:59 -0800 | [diff] [blame] | 388 | outputs: |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 389 | rancher_vm_ip: |
| 390 | description: The IP address of the rancher instance |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 391 | value: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 392 | |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 393 | k8s_1_vm_ip: |
| 394 | description: The IP address of the k8s_1 instance |
| 395 | value: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
| 396 | |
| 397 | k8s_2_vm_ip: |
| 398 | description: The IP address of the k8s_2 instance |
| 399 | value: { get_attr: [k8s_2_floating_ip, floating_ip_address] } |
| 400 | |
| 401 | k8s_3_vm_ip: |
| 402 | description: The IP address of the k8s_3 instance |
| 403 | value: { get_attr: [k8s_3_floating_ip, floating_ip_address] } |
| 404 | |
| 405 | k8s_4_vm_ip: |
| 406 | description: The IP address of the k8s_4 instance |
| 407 | value: { get_attr: [k8s_4_floating_ip, floating_ip_address] } |
| 408 | |
| 409 | k8s_5_vm_ip: |
| 410 | description: The IP address of the k8s_5 instance |
| 411 | value: { get_attr: [k8s_5_floating_ip, floating_ip_address] } |
| 412 | |