blob: ea3cc06c9d493038f4dafb7258b2175fcd42fddb [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 Wue21a3c62019-07-10 17:17:06 -070023 oam_ext_network_host_route:
24 type: json
25 description: >
26 host routes
27 "destination": '10.12.0.0/16'
28 "nexthop": '10.100.0.1'
29 default:
30 "destination": '10.12.0.0/16'
31 "nexthop": '10.100.0.1'
32
Gary Wu950a3232019-03-26 13:08:29 -070033 ubuntu_1804_image:
34 type: string
35 description: Name of the Ubuntu 18.04 image
36
Gary Wud95bf2b2019-06-21 15:35:18 -070037 nfs_vm_flavor:
Gary Wu950a3232019-03-26 13:08:29 -070038 type: string
Gary Wud95bf2b2019-06-21 15:35:18 -070039 description: VM flavor for Nfs
Gary Wu950a3232019-03-26 13:08:29 -070040
41 k8s_vm_flavor:
42 type: string
43 description: VM flavor for k8s hosts
44
Gary Wu950a3232019-03-26 13:08:29 -070045 orch_vm_flavor:
46 type: string
47 description: VM flavor for orch hosts
48
49 integration_override_yaml:
50 type: string
51 description: Content for integration_override.yaml
52
53 integration_gerrit_branch:
54 type: string
55 default: "master"
56
57 integration_gerrit_refspec:
58 type: string
59 default: ""
60
61 oom_gerrit_branch:
62 type: string
63 default: "master"
64
65 oom_gerrit_refspec:
66 type: string
67 default: ""
68
Gary Wu950a3232019-03-26 13:08:29 -070069 key_name:
70 type: string
71 default: "onap_key"
72
73 docker_version:
74 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070075 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070076
Gary Wu950a3232019-03-26 13:08:29 -070077 kubectl_version:
78 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070079 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070080
81 helm_version:
82 type: string
Gary Wuceff3472019-04-24 10:33:38 -070083 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070084
85 helm_deploy_delay:
86 type: string
87 default: "3m"
88
Gary Wu950a3232019-03-26 13:08:29 -070089 mtu:
90 type: number
91 default: 1500
92
93 portal_hostname:
94 type: string
95 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
96 default: "portal.api.simpledemo.onap.org"
97
98resources:
99 random-str:
100 type: OS::Heat::RandomString
101 properties:
102 length: 4
103
104 # ONAP security group
105 onap_sg:
106 type: OS::Neutron::SecurityGroup
107 properties:
108 name:
109 str_replace:
110 template: base_rand
111 params:
112 base: onap_sg
113 rand: { get_resource: random-str }
114 description: security group used by ONAP
115 rules:
116 # All egress traffic
117 - direction: egress
118 ethertype: IPv4
119 - direction: egress
120 ethertype: IPv6
121 # ingress traffic
122 # ICMP
123 - protocol: icmp
124 - protocol: udp
125 port_range_min: 1
126 port_range_max: 65535
127 - protocol: tcp
128 port_range_min: 1
129 port_range_max: 65535
130 # Protocols used for vLB/vDNS use case
131 - protocol: 47
132 - protocol: 53
133 - protocol: 132
134
Gary Wucad70692019-04-24 10:45:56 -0700135 router:
136 type: OS::Neutron::Router
137 properties:
138 name:
139 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
140 external_gateway_info:
141 network: { get_param: public_net_id }
Gary Wu950a3232019-03-26 13:08:29 -0700142
143 # ONAP management private network
144 oam_network:
145 type: OS::Neutron::Net
146 properties:
147 name:
148 str_replace:
149 template: oam_network_rand
150 params:
151 rand: { get_resource: random-str }
152
153 oam_subnet:
154 type: OS::Neutron::Subnet
155 properties:
156 name:
157 str_replace:
158 template: oam_network_rand
159 params:
160 rand: { get_resource: random-str }
161 network_id: { get_resource: oam_network }
162 cidr: { get_param: oam_network_cidr }
163 dns_nameservers: [ "8.8.8.8" ]
164
Gary Wucad70692019-04-24 10:45:56 -0700165 oam_router_interface:
Gary Wu950a3232019-03-26 13:08:29 -0700166 type: OS::Neutron::RouterInterface
167 properties:
168 router_id: { get_resource: router }
169 subnet_id: { get_resource: oam_subnet }
170
Gary Wucad70692019-04-24 10:45:56 -0700171 oam_ext_network:
172 type: OS::Neutron::Net
173 properties:
174 name: onap_oam_ext
175
176 oam_ext_subnet:
177 type: OS::Neutron::Subnet
178 properties:
179 name: onap_oam_ext
180 network_id: { get_resource: oam_ext_network }
181 cidr: { get_param: oam_ext_network_cidr }
Gary Wue21a3c62019-07-10 17:17:06 -0700182 enable_dhcp: true
183 host_routes:
184 - { get_param: oam_ext_network_host_route }
Gary Wucad70692019-04-24 10:45:56 -0700185 dns_nameservers: [ "8.8.8.8" ]
186
187 oam_ext_router_interface:
188 type: OS::Neutron::RouterInterface
189 properties:
190 router_id: { get_resource: router }
191 subnet_id: { get_resource: oam_ext_subnet }
192
Gary Wud95bf2b2019-06-21 15:35:18 -0700193 nfs_private_port:
Gary Wu950a3232019-03-26 13:08:29 -0700194 type: OS::Neutron::Port
195 properties:
196 network: { get_resource: oam_network }
197 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
198 security_groups:
199 - { get_resource: onap_sg }
200
Gary Wud95bf2b2019-06-21 15:35:18 -0700201 nfs_floating_ip:
Gary Wu950a3232019-03-26 13:08:29 -0700202 type: OS::Neutron::FloatingIP
203 properties:
204 floating_network_id: { get_param: public_net_id }
Gary Wud95bf2b2019-06-21 15:35:18 -0700205 port_id: { get_resource: nfs_private_port }