Decommission java and docker manifests
[integration.git] / deployment / heat / onap-rke / parts / onap-oom-1.yaml
1 heat_template_version: 2015-10-15
2 description: ONAP on RKE Kubernetes using OOM
3
4 parameters:
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   oam_ext_network_cidr:
20     type: string
21     description: CIDR of the onap_oam_ext network
22
23   ubuntu_1804_image:
24     type: string
25     description: Name of the Ubuntu 18.04 image
26
27   nfs_vm_flavor:
28     type: string
29     description: VM flavor for Nfs
30
31   k8s_vm_flavor:
32     type: string
33     description: VM flavor for k8s 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   key_name:
60     type: string
61     default: "onap_key"
62
63   docker_version:
64     type: string
65     default: "18.09.5"
66
67   kubectl_version:
68     type: string
69     default: "1.13.5"
70
71   helm_version:
72     type: string
73     default: "2.12.3"
74
75   helm_deploy_delay:
76     type: string
77     default: "3m"
78
79   mtu:
80     type: number
81     default: 1500
82
83   portal_hostname:
84     type: string
85     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
86     default: "portal.api.simpledemo.onap.org"
87
88 resources:
89   random-str:
90     type: OS::Heat::RandomString
91     properties:
92       length: 4
93
94   # ONAP security group
95   onap_sg:
96     type: OS::Neutron::SecurityGroup
97     properties:
98       name:
99         str_replace:
100           template: base_rand
101           params:
102             base: onap_sg
103             rand: { get_resource: random-str }
104       description: security group used by ONAP
105       rules:
106         # All egress traffic
107         - direction: egress
108           ethertype: IPv4
109         - direction: egress
110           ethertype: IPv6
111         # ingress traffic
112         # ICMP
113         - protocol: icmp
114         - protocol: udp
115           port_range_min: 1
116           port_range_max: 65535
117         - protocol: tcp
118           port_range_min: 1
119           port_range_max: 65535
120         # Protocols used for vLB/vDNS use case
121         - protocol: 47
122         - protocol: 53
123         - protocol: 132
124
125   router:
126     type: OS::Neutron::Router
127     properties:
128       name:
129         list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']]
130       external_gateway_info:
131         network: { get_param: public_net_id }
132
133   # ONAP management private network
134   oam_network:
135     type: OS::Neutron::Net
136     properties:
137       name:
138         str_replace:
139           template: oam_network_rand
140           params:
141             rand: { get_resource: random-str }
142
143   oam_subnet:
144     type: OS::Neutron::Subnet
145     properties:
146       name:
147         str_replace:
148           template: oam_network_rand
149           params:
150             rand: { get_resource: random-str }
151       network_id: { get_resource: oam_network }
152       cidr: { get_param: oam_network_cidr }
153       dns_nameservers: [ "8.8.8.8" ]
154
155   oam_router_interface:
156     type: OS::Neutron::RouterInterface
157     properties:
158       router_id: { get_resource: router }
159       subnet_id: { get_resource: oam_subnet }
160
161   oam_ext_network:
162     type: OS::Neutron::Net
163     properties:
164       name: onap_oam_ext
165
166   oam_ext_subnet:
167     type: OS::Neutron::Subnet
168     properties:
169       name: onap_oam_ext
170       network_id: { get_resource: oam_ext_network }
171       cidr: { get_param: oam_ext_network_cidr }
172       enable_dhcp: false
173       dns_nameservers: [ "8.8.8.8" ]
174
175   oam_ext_router_interface:
176     type: OS::Neutron::RouterInterface
177     properties:
178       router_id: { get_resource: router }
179       subnet_id: { get_resource: oam_ext_subnet }
180
181   nfs_private_port:
182     type: OS::Neutron::Port
183     properties:
184       network: { get_resource: oam_network }
185       fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
186       security_groups:
187       - { get_resource: onap_sg }
188
189   nfs_floating_ip:
190     type: OS::Neutron::FloatingIP
191     properties:
192       floating_network_id: { get_param: public_net_id }
193       port_id: { get_resource: nfs_private_port }