blob: 13888e95f3c521f323007037c7b9edbee6f48c47 [file] [log] [blame]
Gary Wu950a3232019-03-26 13:08:29 -07001heat_template_version: 2015-10-15
2description: ONAP on RKE Kubernetes using OOM
3
4parameters:
5 docker_proxy:
6 type: string
Konrad Bańkaa3990d02019-07-30 09:02:42 +02007 default: ""
Gary Wu950a3232019-03-26 13:08:29 -07008
9 apt_proxy:
10 type: string
Konrad Bańkaa3990d02019-07-30 09:02:42 +020011 default: ""
Gary Wu950a3232019-03-26 13:08:29 -070012
13 public_net_id:
14 type: string
15 description: The ID of the Public network for floating IP address allocation
16
17 oam_network_cidr:
18 type: string
19 description: CIDR of the OAM ONAP network
20
Gary Wucad70692019-04-24 10:45:56 -070021 oam_ext_network_cidr:
22 type: string
23 description: CIDR of the onap_oam_ext network
24
Gary Wue21a3c62019-07-10 17:17:06 -070025 oam_ext_network_host_route:
26 type: json
27 description: >
Bartek Grzybowski3161bfe2020-02-19 13:37:31 +010028 host routes
29 "destination": '10.12.0.0/16'
30 "nexthop": '10.100.0.1'
Gary Wue21a3c62019-07-10 17:17:06 -070031 default:
Bartek Grzybowski3161bfe2020-02-19 13:37:31 +010032 "destination": '10.12.0.0/16'
33 "nexthop": '10.100.0.1'
Gary Wue21a3c62019-07-10 17:17:06 -070034
Gary Wu950a3232019-03-26 13:08:29 -070035 ubuntu_1804_image:
36 type: string
37 description: Name of the Ubuntu 18.04 image
38
Gary Wud95bf2b2019-06-21 15:35:18 -070039 nfs_vm_flavor:
Gary Wu950a3232019-03-26 13:08:29 -070040 type: string
Gary Wud95bf2b2019-06-21 15:35:18 -070041 description: VM flavor for Nfs
Gary Wu950a3232019-03-26 13:08:29 -070042
43 k8s_vm_flavor:
44 type: string
45 description: VM flavor for k8s hosts
46
Gary Wu950a3232019-03-26 13:08:29 -070047 orch_vm_flavor:
48 type: string
49 description: VM flavor for orch hosts
50
51 integration_override_yaml:
52 type: string
53 description: Content for integration_override.yaml
54
55 integration_gerrit_branch:
56 type: string
57 default: "master"
58
59 integration_gerrit_refspec:
60 type: string
61 default: ""
62
63 oom_gerrit_branch:
64 type: string
65 default: "master"
66
67 oom_gerrit_refspec:
68 type: string
69 default: ""
70
Gary Wu950a3232019-03-26 13:08:29 -070071 key_name:
72 type: string
73 default: "onap_key"
74
75 docker_version:
76 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070077 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070078
Gary Wu950a3232019-03-26 13:08:29 -070079 kubectl_version:
80 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070081 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070082
83 helm_version:
84 type: string
Gary Wuceff3472019-04-24 10:33:38 -070085 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070086
87 helm_deploy_delay:
88 type: string
89 default: "3m"
90
Gary Wu950a3232019-03-26 13:08:29 -070091 mtu:
92 type: number
93 default: 1500
94
95 portal_hostname:
96 type: string
97 description: The FQDN of the k8s host that will be used for the Portal UI component URLs; this needs to be resolveable at the client
98 default: "portal.api.simpledemo.onap.org"
99
100resources:
101 random-str:
102 type: OS::Heat::RandomString
103 properties:
104 length: 4
105
106 # ONAP security group
107 onap_sg:
108 type: OS::Neutron::SecurityGroup
109 properties:
110 name:
111 str_replace:
112 template: base_rand
113 params:
114 base: onap_sg
115 rand: { get_resource: random-str }
116 description: security group used by ONAP
117 rules:
118 # All egress traffic
119 - direction: egress
120 ethertype: IPv4
121 - direction: egress
122 ethertype: IPv6
123 # ingress traffic
124 # ICMP
125 - protocol: icmp
126 - protocol: udp
127 port_range_min: 1
128 port_range_max: 65535
129 - protocol: tcp
130 port_range_min: 1
131 port_range_max: 65535
132 # Protocols used for vLB/vDNS use case
133 - protocol: 47
134 - protocol: 53
135 - protocol: 132
136
Gary Wucad70692019-04-24 10:45:56 -0700137 router:
138 type: OS::Neutron::Router
139 properties:
140 name:
141 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
142 external_gateway_info:
143 network: { get_param: public_net_id }
Gary Wu950a3232019-03-26 13:08:29 -0700144
145 # ONAP management private network
146 oam_network:
147 type: OS::Neutron::Net
148 properties:
149 name:
150 str_replace:
151 template: oam_network_rand
152 params:
153 rand: { get_resource: random-str }
154
155 oam_subnet:
156 type: OS::Neutron::Subnet
157 properties:
158 name:
159 str_replace:
160 template: oam_network_rand
161 params:
162 rand: { get_resource: random-str }
163 network_id: { get_resource: oam_network }
164 cidr: { get_param: oam_network_cidr }
165 dns_nameservers: [ "8.8.8.8" ]
166
Gary Wucad70692019-04-24 10:45:56 -0700167 oam_router_interface:
Gary Wu950a3232019-03-26 13:08:29 -0700168 type: OS::Neutron::RouterInterface
169 properties:
170 router_id: { get_resource: router }
171 subnet_id: { get_resource: oam_subnet }
172
Gary Wucad70692019-04-24 10:45:56 -0700173 oam_ext_network:
174 type: OS::Neutron::Net
175 properties:
176 name: onap_oam_ext
177
178 oam_ext_subnet:
179 type: OS::Neutron::Subnet
180 properties:
181 name: onap_oam_ext
182 network_id: { get_resource: oam_ext_network }
183 cidr: { get_param: oam_ext_network_cidr }
Gary Wue21a3c62019-07-10 17:17:06 -0700184 enable_dhcp: true
185 host_routes:
186 - { get_param: oam_ext_network_host_route }
Gary Wucad70692019-04-24 10:45:56 -0700187 dns_nameservers: [ "8.8.8.8" ]
188
189 oam_ext_router_interface:
190 type: OS::Neutron::RouterInterface
191 properties:
192 router_id: { get_resource: router }
193 subnet_id: { get_resource: oam_ext_subnet }
194
Gary Wud95bf2b2019-06-21 15:35:18 -0700195 nfs_private_port:
Gary Wu950a3232019-03-26 13:08:29 -0700196 type: OS::Neutron::Port
197 properties:
198 network: { get_resource: oam_network }
199 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
200 security_groups:
201 - { get_resource: onap_sg }
202
Gary Wud95bf2b2019-06-21 15:35:18 -0700203 nfs_floating_ip:
Gary Wu950a3232019-03-26 13:08:29 -0700204 type: OS::Neutron::FloatingIP
205 properties:
206 floating_network_id: { get_param: public_net_id }
Gary Wud95bf2b2019-06-21 15:35:18 -0700207 port_id: { get_resource: nfs_private_port }