aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat
diff options
context:
space:
mode:
authorGary Wu <gary.wu@futurewei.com>2019-07-10 16:29:18 -0700
committerGary Wu <gary.wu@futurewei.com>2019-07-10 16:29:18 -0700
commit8ec5130ce28bc3dd731c2eb10d54e58b8e155190 (patch)
tree36d8faecbdc2543dd2498c43288f86a7db1a6fde /deployment/heat
parent3adfd35f7946e0ff31870fe69ab7f43d127303b2 (diff)
Reduce ONAP VM footprint
Reduce size of NFS and orch VMs to m1.medium Reduce default number of worker VMs to 9 Issue-ID: INT-1117 Signed-off-by: Gary Wu <gary.wu@futurewei.com> Change-Id: I53dc47ccd3d8bad03bcbc109a68b23b75314dbaa
Diffstat (limited to 'deployment/heat')
-rw-r--r--deployment/heat/onap-rke/env/windriver/onap-oom.env4
-rw-r--r--deployment/heat/onap-rke/onap-oom.yaml237
2 files changed, 2 insertions, 239 deletions
diff --git a/deployment/heat/onap-rke/env/windriver/onap-oom.env b/deployment/heat/onap-rke/env/windriver/onap-oom.env
index 480394bd1..18ed28721 100644
--- a/deployment/heat/onap-rke/env/windriver/onap-oom.env
+++ b/deployment/heat/onap-rke/env/windriver/onap-oom.env
@@ -5,9 +5,9 @@ parameters:
apt_proxy: 10.12.5.2:8000
docker_proxy: 10.12.5.2:5000
- nfs_vm_flavor: m1.large
+ nfs_vm_flavor: m1.medium
k8s_vm_flavor: m1.xlarge
- orch_vm_flavor: m1.large
+ orch_vm_flavor: m1.medium
public_net_id: 971040b2-7059-49dc-b220-4fab50cb2ad4
diff --git a/deployment/heat/onap-rke/onap-oom.yaml b/deployment/heat/onap-rke/onap-oom.yaml
index 0044cf7f2..01398bf6d 100644
--- a/deployment/heat/onap-rke/onap-oom.yaml
+++ b/deployment/heat/onap-rke/onap-oom.yaml
@@ -253,9 +253,6 @@ resources:
get_attr: [k8s_07_floating_ip, floating_ip_address],
get_attr: [k8s_08_floating_ip, floating_ip_address],
get_attr: [k8s_09_floating_ip, floating_ip_address],
- get_attr: [k8s_10_floating_ip, floating_ip_address],
- get_attr: [k8s_11_floating_ip, floating_ip_address],
- get_attr: [k8s_12_floating_ip, floating_ip_address],
]
__k8s_private_ips__: [
get_attr: [k8s_01_floating_ip, fixed_ip_address],
@@ -267,9 +264,6 @@ resources:
get_attr: [k8s_07_floating_ip, fixed_ip_address],
get_attr: [k8s_08_floating_ip, fixed_ip_address],
get_attr: [k8s_09_floating_ip, fixed_ip_address],
- get_attr: [k8s_10_floating_ip, fixed_ip_address],
- get_attr: [k8s_11_floating_ip, fixed_ip_address],
- get_attr: [k8s_12_floating_ip, fixed_ip_address],
]
k8s_01_private_port:
type: OS::Neutron::Port
@@ -892,213 +886,6 @@ resources:
- port: { get_resource: k8s_09_private_port }
user_data_format: SOFTWARE_CONFIG
user_data: { get_resource: k8s_09_vm_config }
- k8s_10_private_port:
- type: OS::Neutron::Port
- properties:
- network: { get_resource: oam_network }
- fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
- security_groups:
- - { get_resource: onap_sg }
-
- k8s_10_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: k8s_10_private_port }
-
- k8s_10_vm_scripts:
- type: OS::Heat::CloudConfig
- properties:
- cloud_config:
- power_state:
- mode: reboot
- runcmd:
- - [ /opt/k8s_vm_install.sh ]
- write_files:
- - path: /opt/k8s_vm_install.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __docker_proxy__: { get_param: docker_proxy }
- __apt_proxy__: { get_param: apt_proxy }
- __docker_version__: { get_param: docker_version }
- __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
- __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
- __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
- __mtu__: { get_param: mtu }
- template:
- get_file: k8s_vm_install.sh
- - path: /opt/k8s_vm_init.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __host_private_ip_addr__: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
- __host_label__: 'compute'
- template:
- get_file: k8s_vm_init.sh
- - path: /etc/init.d/k8s_vm_init_serv
- permissions: '0755'
- content:
- get_file: k8s_vm_init_serv.sh
-
- k8s_10_vm_config:
- type: OS::Heat::MultipartMime
- properties:
- parts:
- - config: { get_resource: k8s_10_vm_scripts }
-
- k8s_10_vm:
- type: OS::Nova::Server
- properties:
- name:
- list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ]
- image: { get_param: ubuntu_1804_image }
- flavor: { get_param: k8s_vm_flavor }
- key_name: { get_param: key_name }
- networks:
- - port: { get_resource: k8s_10_private_port }
- user_data_format: SOFTWARE_CONFIG
- user_data: { get_resource: k8s_10_vm_config }
- k8s_11_private_port:
- type: OS::Neutron::Port
- properties:
- network: { get_resource: oam_network }
- fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
- security_groups:
- - { get_resource: onap_sg }
-
- k8s_11_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: k8s_11_private_port }
-
- k8s_11_vm_scripts:
- type: OS::Heat::CloudConfig
- properties:
- cloud_config:
- power_state:
- mode: reboot
- runcmd:
- - [ /opt/k8s_vm_install.sh ]
- write_files:
- - path: /opt/k8s_vm_install.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __docker_proxy__: { get_param: docker_proxy }
- __apt_proxy__: { get_param: apt_proxy }
- __docker_version__: { get_param: docker_version }
- __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
- __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
- __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
- __mtu__: { get_param: mtu }
- template:
- get_file: k8s_vm_install.sh
- - path: /opt/k8s_vm_init.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __host_private_ip_addr__: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
- __host_label__: 'compute'
- template:
- get_file: k8s_vm_init.sh
- - path: /etc/init.d/k8s_vm_init_serv
- permissions: '0755'
- content:
- get_file: k8s_vm_init_serv.sh
-
- k8s_11_vm_config:
- type: OS::Heat::MultipartMime
- properties:
- parts:
- - config: { get_resource: k8s_11_vm_scripts }
-
- k8s_11_vm:
- type: OS::Nova::Server
- properties:
- name:
- list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '11' ] ]
- image: { get_param: ubuntu_1804_image }
- flavor: { get_param: k8s_vm_flavor }
- key_name: { get_param: key_name }
- networks:
- - port: { get_resource: k8s_11_private_port }
- user_data_format: SOFTWARE_CONFIG
- user_data: { get_resource: k8s_11_vm_config }
- k8s_12_private_port:
- type: OS::Neutron::Port
- properties:
- network: { get_resource: oam_network }
- fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
- security_groups:
- - { get_resource: onap_sg }
-
- k8s_12_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: k8s_12_private_port }
-
- k8s_12_vm_scripts:
- type: OS::Heat::CloudConfig
- properties:
- cloud_config:
- power_state:
- mode: reboot
- runcmd:
- - [ /opt/k8s_vm_install.sh ]
- write_files:
- - path: /opt/k8s_vm_install.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __docker_proxy__: { get_param: docker_proxy }
- __apt_proxy__: { get_param: apt_proxy }
- __docker_version__: { get_param: docker_version }
- __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }
- __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] }
- __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
- __mtu__: { get_param: mtu }
- template:
- get_file: k8s_vm_install.sh
- - path: /opt/k8s_vm_init.sh
- permissions: '0755'
- content:
- str_replace:
- params:
- __host_private_ip_addr__: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
- __host_label__: 'compute'
- template:
- get_file: k8s_vm_init.sh
- - path: /etc/init.d/k8s_vm_init_serv
- permissions: '0755'
- content:
- get_file: k8s_vm_init_serv.sh
-
- k8s_12_vm_config:
- type: OS::Heat::MultipartMime
- properties:
- parts:
- - config: { get_resource: k8s_12_vm_scripts }
-
- k8s_12_vm:
- type: OS::Nova::Server
- properties:
- name:
- list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '12' ] ]
- image: { get_param: ubuntu_1804_image }
- flavor: { get_param: k8s_vm_flavor }
- key_name: { get_param: key_name }
- networks:
- - port: { get_resource: k8s_12_private_port }
- user_data_format: SOFTWARE_CONFIG
- user_data: { get_resource: k8s_12_vm_config }
orch_1_private_port:
type: OS::Neutron::Port
properties:
@@ -1390,30 +1177,6 @@ outputs:
description: The private IP address of the k8s_09 instance
value: { get_attr: [k8s_09_floating_ip, fixed_ip_address] }
- k8s_10_vm_ip:
- description: The IP address of the k8s_10 instance
- value: { get_attr: [k8s_10_floating_ip, floating_ip_address] }
-
- k8s_10_vm_private_ip:
- description: The private IP address of the k8s_10 instance
- value: { get_attr: [k8s_10_floating_ip, fixed_ip_address] }
-
- k8s_11_vm_ip:
- description: The IP address of the k8s_11 instance
- value: { get_attr: [k8s_11_floating_ip, floating_ip_address] }
-
- k8s_11_vm_private_ip:
- description: The private IP address of the k8s_11 instance
- value: { get_attr: [k8s_11_floating_ip, fixed_ip_address] }
-
- k8s_12_vm_ip:
- description: The IP address of the k8s_12 instance
- value: { get_attr: [k8s_12_floating_ip, floating_ip_address] }
-
- k8s_12_vm_private_ip:
- description: The private IP address of the k8s_12 instance
- value: { get_attr: [k8s_12_floating_ip, fixed_ip_address] }
-
orch_1_vm_ip:
description: The IP address of the orch_1 instance
value: { get_attr: [orch_1_floating_ip, floating_ip_address] }