blob: 0e0cb0fcde81f671d4c7cc299191ed30db9b60a2 [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
7
8 apt_proxy:
9 type: string
10
11 public_net_id:
12 type: string
13 description: The ID of the Public network for floating IP address allocation
14
15 oam_network_cidr:
16 type: string
17 description: CIDR of the OAM ONAP network
18
Gary Wucad70692019-04-24 10:45:56 -070019 oam_ext_network_cidr:
20 type: string
21 description: CIDR of the onap_oam_ext network
22
Gary Wu950a3232019-03-26 13:08:29 -070023 ubuntu_1804_image:
24 type: string
25 description: Name of the Ubuntu 18.04 image
26
27 rancher_vm_flavor:
28 type: string
29 description: VM flavor for Rancher
30
31 k8s_vm_flavor:
32 type: string
33 description: VM flavor for k8s hosts
34
35 etcd_vm_flavor:
36 type: string
37 description: VM flavor for etcd hosts
38
39 orch_vm_flavor:
40 type: string
41 description: VM flavor for orch hosts
42
43 integration_override_yaml:
44 type: string
45 description: Content for integration_override.yaml
46
47 integration_gerrit_branch:
48 type: string
49 default: "master"
50
51 integration_gerrit_refspec:
52 type: string
53 default: ""
54
55 oom_gerrit_branch:
56 type: string
57 default: "master"
58
59 oom_gerrit_refspec:
60 type: string
61 default: ""
62
63 docker_manifest:
64 type: string
65 default: ""
66
67 key_name:
68 type: string
69 default: "onap_key"
70
71 docker_version:
72 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070073 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070074
Gary Wu950a3232019-03-26 13:08:29 -070075 kubectl_version:
76 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070077 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070078
79 helm_version:
80 type: string
Gary Wuceff3472019-04-24 10:33:38 -070081 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070082
83 helm_deploy_delay:
84 type: string
85 default: "3m"
86
87 use_ramdisk:
88 type: string
89 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
90 default: "false"
91
92 mtu:
93 type: number
94 default: 1500
95
96 portal_hostname:
97 type: string
98 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
99 default: "portal.api.simpledemo.onap.org"
100
101resources:
102 random-str:
103 type: OS::Heat::RandomString
104 properties:
105 length: 4
106
107 # ONAP security group
108 onap_sg:
109 type: OS::Neutron::SecurityGroup
110 properties:
111 name:
112 str_replace:
113 template: base_rand
114 params:
115 base: onap_sg
116 rand: { get_resource: random-str }
117 description: security group used by ONAP
118 rules:
119 # All egress traffic
120 - direction: egress
121 ethertype: IPv4
122 - direction: egress
123 ethertype: IPv6
124 # ingress traffic
125 # ICMP
126 - protocol: icmp
127 - protocol: udp
128 port_range_min: 1
129 port_range_max: 65535
130 - protocol: tcp
131 port_range_min: 1
132 port_range_max: 65535
133 # Protocols used for vLB/vDNS use case
134 - protocol: 47
135 - protocol: 53
136 - protocol: 132
137
Gary Wucad70692019-04-24 10:45:56 -0700138 router:
139 type: OS::Neutron::Router
140 properties:
141 name:
142 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
143 external_gateway_info:
144 network: { get_param: public_net_id }
Gary Wu950a3232019-03-26 13:08:29 -0700145
146 # ONAP management private network
147 oam_network:
148 type: OS::Neutron::Net
149 properties:
150 name:
151 str_replace:
152 template: oam_network_rand
153 params:
154 rand: { get_resource: random-str }
155
156 oam_subnet:
157 type: OS::Neutron::Subnet
158 properties:
159 name:
160 str_replace:
161 template: oam_network_rand
162 params:
163 rand: { get_resource: random-str }
164 network_id: { get_resource: oam_network }
165 cidr: { get_param: oam_network_cidr }
166 dns_nameservers: [ "8.8.8.8" ]
167
Gary Wucad70692019-04-24 10:45:56 -0700168 oam_router_interface:
Gary Wu950a3232019-03-26 13:08:29 -0700169 type: OS::Neutron::RouterInterface
170 properties:
171 router_id: { get_resource: router }
172 subnet_id: { get_resource: oam_subnet }
173
Gary Wucad70692019-04-24 10:45:56 -0700174 oam_ext_network:
175 type: OS::Neutron::Net
176 properties:
177 name: onap_oam_ext
178
179 oam_ext_subnet:
180 type: OS::Neutron::Subnet
181 properties:
182 name: onap_oam_ext
183 network_id: { get_resource: oam_ext_network }
184 cidr: { get_param: oam_ext_network_cidr }
Gary Wu7dbaaa62019-04-26 10:16:19 -0700185 enable_dhcp: false
Gary Wucad70692019-04-24 10:45:56 -0700186 dns_nameservers: [ "8.8.8.8" ]
187
188 oam_ext_router_interface:
189 type: OS::Neutron::RouterInterface
190 properties:
191 router_id: { get_resource: router }
192 subnet_id: { get_resource: oam_ext_subnet }
193
Gary Wu950a3232019-03-26 13:08:29 -0700194 rancher_private_port:
195 type: OS::Neutron::Port
196 properties:
197 network: { get_resource: oam_network }
198 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
199 security_groups:
200 - { get_resource: onap_sg }
201
202 rancher_floating_ip:
203 type: OS::Neutron::FloatingIP
204 properties:
205 floating_network_id: { get_param: public_net_id }
206 port_id: { get_resource: rancher_private_port }
207