blob: a8ed24a18a29bb7934cbc83e55cc14c1d5e95cc2 [file] [log] [blame]
Gary Wu14a6b302018-05-01 15:59:28 -07001heat_template_version: 2015-10-15
2description: ONAP on Kubernetes using OOM
3
4parameters:
Gary Wu14a6b302018-05-01 15:59:28 -07005 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
Gary Wu14a6b302018-05-01 15:59:28 -070015 oam_network_cidr:
16 type: string
17 description: CIDR of the OAM ONAP network
18
Gary Wu14a6b302018-05-01 15:59:28 -070019 ubuntu_1604_image:
20 type: string
21 description: Name of the Ubuntu 16.04 image
22
23 rancher_vm_flavor:
24 type: string
Gary Wu11c98742018-05-02 16:19:04 -070025 description: VM flavor for Rancher
Gary Wu14a6b302018-05-01 15:59:28 -070026
27 k8s_vm_flavor:
28 type: string
Gary Wu11c98742018-05-02 16:19:04 -070029 description: VM flavor for k8s hosts
30
Gary Wu3fd6c2a2018-10-28 21:44:00 -070031 etcd_vm_flavor:
32 type: string
33 description: VM flavor for etcd hosts
34
35 orch_vm_flavor:
36 type: string
37 description: VM flavor for orch hosts
38
Gary Wu11c98742018-05-02 16:19:04 -070039 integration_override_yaml:
40 type: string
41 description: Content for integration_override.yaml
Gary Wu14a6b302018-05-01 15:59:28 -070042
Gary Wu87aa8b52018-08-09 08:10:24 -070043 integration_gerrit_branch:
Gary Wuc4749702018-06-26 14:27:41 -070044 type: string
45 default: "master"
46
Gary Wu87aa8b52018-08-09 08:10:24 -070047 integration_gerrit_refspec:
48 type: string
Gary Wu6842fa32018-11-20 10:29:22 -080049 default: ""
Gary Wu87aa8b52018-08-09 08:10:24 -070050
51 oom_gerrit_branch:
52 type: string
53 default: "master"
54
55 oom_gerrit_refspec:
Gary Wuc4749702018-06-26 14:27:41 -070056 type: string
Gary Wu6842fa32018-11-20 10:29:22 -080057 default: ""
Gary Wuc4749702018-06-26 14:27:41 -070058
59 docker_manifest:
60 type: string
Gary Wu87aa8b52018-08-09 08:10:24 -070061 default: ""
Gary Wuc4749702018-06-26 14:27:41 -070062
gwu10db4622018-07-17 22:11:39 -070063 key_name:
64 type: string
65 default: "onap_key"
66
Gary Wu7a04b3d2018-08-15 12:31:46 -070067 docker_version:
68 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070069 default: "17.03.2"
Gary Wu7a04b3d2018-08-15 12:31:46 -070070
71 rancher_version:
72 type: string
Gary Wu37699b52019-03-22 10:59:03 -070073 default: "1.6.26"
Gary Wu7a04b3d2018-08-15 12:31:46 -070074
75 rancher_agent_version:
76 type: string
Gary Wu3fd6c2a2018-10-28 21:44:00 -070077 default: "1.2.11"
Gary Wu7a04b3d2018-08-15 12:31:46 -070078
79 kubectl_version:
80 type: string
Gary Wud1edb202019-03-22 13:09:59 -070081 default: "1.11.8"
Gary Wu7a04b3d2018-08-15 12:31:46 -070082
83 helm_version:
84 type: string
85 default: "2.9.1"
86
Gary Wu48a32942018-11-08 07:34:49 -080087 helm_deploy_delay:
88 type: string
89 default: "2m"
90
91 use_ramdisk:
92 type: string
93 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
94 default: "false"
95
Gary Wub8be70a2018-11-17 17:14:38 -080096 mtu:
97 type: number
98 default: 1500
99
Gary Wu4a69d512018-12-10 11:31:24 -0800100 portal_hostname:
101 type: string
102 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
103 default: "portal.api.simpledemo.onap.org"
104
Gary Wu14a6b302018-05-01 15:59:28 -0700105resources:
106 random-str:
107 type: OS::Heat::RandomString
108 properties:
109 length: 4
110
111 # ONAP security group
112 onap_sg:
113 type: OS::Neutron::SecurityGroup
114 properties:
115 name:
116 str_replace:
117 template: base_rand
118 params:
119 base: onap_sg
120 rand: { get_resource: random-str }
121 description: security group used by ONAP
122 rules:
123 # All egress traffic
124 - direction: egress
125 ethertype: IPv4
126 - direction: egress
127 ethertype: IPv6
128 # ingress traffic
129 # ICMP
130 - protocol: icmp
131 - protocol: udp
132 port_range_min: 1
133 port_range_max: 65535
134 - protocol: tcp
135 port_range_min: 1
136 port_range_max: 65535
Marco Platania2a6faaa2018-11-12 15:00:08 -0500137 # Protocols used for vLB/vDNS use case
138 - protocol: 47
139 - protocol: 53
140 - protocol: 132
Gary Wu14a6b302018-05-01 15:59:28 -0700141
142
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
165 router:
166 type: OS::Neutron::Router
167 properties:
eHanan97b7a9c2018-09-05 14:09:19 +0100168 name:
169 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
Gary Wu14a6b302018-05-01 15:59:28 -0700170 external_gateway_info:
171 network: { get_param: public_net_id }
172
173 router_interface:
174 type: OS::Neutron::RouterInterface
175 properties:
176 router_id: { get_resource: router }
177 subnet_id: { get_resource: oam_subnet }
178
179 rancher_private_port:
180 type: OS::Neutron::Port
181 properties:
182 network: { get_resource: oam_network }
183 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
184 security_groups:
185 - { get_resource: onap_sg }
186
187 rancher_floating_ip:
188 type: OS::Neutron::FloatingIP
189 properties:
190 floating_network_id: { get_param: public_net_id }
191 port_id: { get_resource: rancher_private_port }
192