blob: a00ffe63e44ade81cef7f6e65c35eeb2d47ca564 [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
19 ubuntu_1804_image:
20 type: string
21 description: Name of the Ubuntu 18.04 image
22
23 rancher_vm_flavor:
24 type: string
25 description: VM flavor for Rancher
26
27 k8s_vm_flavor:
28 type: string
29 description: VM flavor for k8s hosts
30
31 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
39 integration_override_yaml:
40 type: string
41 description: Content for integration_override.yaml
42
43 integration_gerrit_branch:
44 type: string
45 default: "master"
46
47 integration_gerrit_refspec:
48 type: string
49 default: ""
50
51 oom_gerrit_branch:
52 type: string
53 default: "master"
54
55 oom_gerrit_refspec:
56 type: string
57 default: ""
58
59 docker_manifest:
60 type: string
61 default: ""
62
63 key_name:
64 type: string
65 default: "onap_key"
66
67 docker_version:
68 type: string
Gary Wu7ff8c6f2019-04-24 07:50:11 -070069 default: "18.09.5"
Gary Wu950a3232019-03-26 13:08:29 -070070
Gary Wu950a3232019-03-26 13:08:29 -070071 kubectl_version:
72 type: string
Gary Wuc76dadc2019-04-24 09:22:14 -070073 default: "1.13.5"
Gary Wu950a3232019-03-26 13:08:29 -070074
75 helm_version:
76 type: string
Gary Wuceff3472019-04-24 10:33:38 -070077 default: "2.12.3"
Gary Wu950a3232019-03-26 13:08:29 -070078
79 helm_deploy_delay:
80 type: string
81 default: "3m"
82
83 use_ramdisk:
84 type: string
85 description: Set to "true" if you want to use a RAM disk for /dockerdata-nfs/.
86 default: "false"
87
88 mtu:
89 type: number
90 default: 1500
91
92 portal_hostname:
93 type: string
94 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
95 default: "portal.api.simpledemo.onap.org"
96
97resources:
98 random-str:
99 type: OS::Heat::RandomString
100 properties:
101 length: 4
102
103 # ONAP security group
104 onap_sg:
105 type: OS::Neutron::SecurityGroup
106 properties:
107 name:
108 str_replace:
109 template: base_rand
110 params:
111 base: onap_sg
112 rand: { get_resource: random-str }
113 description: security group used by ONAP
114 rules:
115 # All egress traffic
116 - direction: egress
117 ethertype: IPv4
118 - direction: egress
119 ethertype: IPv6
120 # ingress traffic
121 # ICMP
122 - protocol: icmp
123 - protocol: udp
124 port_range_min: 1
125 port_range_max: 65535
126 - protocol: tcp
127 port_range_min: 1
128 port_range_max: 65535
129 # Protocols used for vLB/vDNS use case
130 - protocol: 47
131 - protocol: 53
132 - protocol: 132
133
134
135 # ONAP management private network
136 oam_network:
137 type: OS::Neutron::Net
138 properties:
139 name:
140 str_replace:
141 template: oam_network_rand
142 params:
143 rand: { get_resource: random-str }
144
145 oam_subnet:
146 type: OS::Neutron::Subnet
147 properties:
148 name:
149 str_replace:
150 template: oam_network_rand
151 params:
152 rand: { get_resource: random-str }
153 network_id: { get_resource: oam_network }
154 cidr: { get_param: oam_network_cidr }
155 dns_nameservers: [ "8.8.8.8" ]
156
157 router:
158 type: OS::Neutron::Router
159 properties:
160 name:
161 list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
162 external_gateway_info:
163 network: { get_param: public_net_id }
164
165 router_interface:
166 type: OS::Neutron::RouterInterface
167 properties:
168 router_id: { get_resource: router }
169 subnet_id: { get_resource: oam_subnet }
170
171 rancher_private_port:
172 type: OS::Neutron::Port
173 properties:
174 network: { get_resource: oam_network }
175 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
176 security_groups:
177 - { get_resource: onap_sg }
178
179 rancher_floating_ip:
180 type: OS::Neutron::FloatingIP
181 properties:
182 floating_network_id: { get_param: public_net_id }
183 port_id: { get_resource: rancher_private_port }
184