blob: ea3d7a14b22fd8000eef6e4a525978813061429d [file] [log] [blame]
David Garcia82c5ffa2020-03-09 08:38:17 +01001# Copyright 2020 Canonical Ltd.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14description: A high-available OSM cluster.
15bundle: kubernetes
16applications:
17 zookeeper-k8s:
18 charm: "cs:~charmed-osm/zookeeper-k8s"
19 channel: "stable"
20 scale: 3
21 series: kubernetes
22 storage:
23 database: 100M
24 options:
25 # client-port: 2181
26 server-port: 2888
27 leader-election-port: 3888
28 zookeeper-units: 3
29 annotations:
30 gui-x: 0
David Garcia5863d3e2020-07-09 13:14:13 +020031 gui-y: 550
David Garcia82c5ffa2020-03-09 08:38:17 +010032 mariadb-k8s:
33 charm: "cs:~charmed-osm/mariadb-k8s"
34 channel: "stable"
35 scale: 3
36 series: kubernetes
37 storage:
38 database: 300M
39 options:
40 password: manopw
41 root_password: osm4u
42 user: mano
43 database: database
44 mysql_port: "3306"
45 query-cache-type: "OFF"
46 query-cache-size: 0
47 ha-mode: true
48 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +020049 gui-x: -250
50 gui-y: -200
David Garcia82c5ffa2020-03-09 08:38:17 +010051 kafka-k8s:
52 charm: "cs:~charmed-osm/kafka-k8s"
53 channel: "stable"
54 scale: 3
55 series: kubernetes
56 storage:
57 database: 200M
58 options:
59 advertised-hostname: "kafka-k8s"
60 advertised-port: 9092
61 kafka-units: 3
62 zookeeper-units: 3
63 zookeeper-service-name: zookeeper-k8s-endpoints
64 annotations:
65 gui-x: 0
David Garcia5863d3e2020-07-09 13:14:13 +020066 gui-y: 300
David Garcia82c5ffa2020-03-09 08:38:17 +010067 mongodb-k8s:
68 charm: "cs:~charmed-osm/mongodb-k8s"
69 channel: "stable"
70 scale: 3
71 series: kubernetes
72 storage:
73 database: 300M
74 options:
75 advertised-port: 27017
76 replica-set: rs0
77 namespace: osm
78 service-name: mongodb-k8s-endpoints
79 cluster-domain: cluster.local
80 enable-sidecar: true
81 annotations:
82 gui-x: 0
David Garcia5863d3e2020-07-09 13:14:13 +020083 gui-y: 50
David Garcia82c5ffa2020-03-09 08:38:17 +010084 nbi-k8s:
85 charm: "cs:~charmed-osm/nbi-k8s"
86 channel: "%(channel)s"
87 scale: 3
88 series: kubernetes
89 storage:
90 packages: 100M
91 options:
92 log_level: "INFO"
93 DATABASE_COMMONKEY: osm
94 annotations:
95 gui-x: 0
David Garcia5863d3e2020-07-09 13:14:13 +020096 gui-y: -200
David Garcia82c5ffa2020-03-09 08:38:17 +010097 ro-k8s:
98 charm: "cs:~charmed-osm/ro-k8s"
99 channel: "%(channel)s"
100 scale: 3
101 series: kubernetes
102 storage:
103 log: 50M
104 options:
105 vim_database: "mano_vim_db"
106 ro_database: "mano_db"
107 OPENMANO_TENANT: "osm"
108 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200109 gui-x: -250
110 gui-y: 300
David Garcia82c5ffa2020-03-09 08:38:17 +0100111 ui-k8s:
112 charm: "cs:~charmed-osm/ui-k8s"
113 channel: "%(channel)s"
114 scale: 3
115 series: kubernetes
116 options:
117 mysql_database: lwui
118 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200119 gui-x: 250
120 gui-y: -200
David Garciafa55bd72020-07-07 11:14:19 +0200121 ng-ui:
122 charm: "%(prefix)s/ng-ui%(suffix)s"
123 channel: "%(channel)s"
David Garciade4c9292020-07-21 09:35:44 +0200124 scale: 3
David Garciafa55bd72020-07-07 11:14:19 +0200125 series: kubernetes
126 options:
127 port: 80
128 https_port: 443
129 server_name: localhost
130 client_max_body_size: 15M
131 annotations:
132 gui-x: 500
133 gui-y: 100
David Garcia82c5ffa2020-03-09 08:38:17 +0100134 lcm-k8s:
135 charm: "cs:~charmed-osm/lcm-k8s"
136 channel: "%(channel)s"
137 scale: 3
138 series: kubernetes
139 storage:
140 packages: 100M
141 options:
142 vca_host: vca
143 vca_port: 17070
144 vca_user: admin
145 vca_password: secret
146 vca_pubkey: pubkey
147 vca_cacert: cacert
David Garcia82c5ffa2020-03-09 08:38:17 +0100148 use_external_vca: true
149 DATABASE_COMMONKEY: osm
150 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200151 gui-x: -250
152 gui-y: 50
David Garcia82c5ffa2020-03-09 08:38:17 +0100153 mon-k8s:
154 charm: "cs:~charmed-osm/mon-k8s"
155 channel: "%(channel)s"
156 scale: 3
157 series: kubernetes
158 storage:
159 database: 100M
160 options:
161 OSMMON_OPENSTACK_DEFAULT_GRANULARITY: 300
162 OSMMON_GLOBAL_REQUEST_TIMEOUT: 10
163 OSMMON_GLOBAL_LOGLEVEL: INFO
164 OSMMON_DATABASE_COMMONKEY: osm
165 OSMMON_COLLECTOR_INTERVAL: 30
166 OSMMON_EVALUATOR_INTERVAL: 30
167 vca_host: vca
168 vca_user: admin
169 vca_password: secret
170 vca_cacert: cacert
171 use_external_vca: true
172 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200173 gui-x: 250
174 gui-y: 50
David Garcia82c5ffa2020-03-09 08:38:17 +0100175 pol-k8s:
176 charm: "cs:~charmed-osm/pol-k8s"
177 channel: "%(channel)s"
178 scale: 3
179 series: kubernetes
180 storage:
181 database: 100M
182 options:
183 log_level: INFO
184 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200185 gui-x: -250
186 gui-y: 550
David Garciade4c9292020-07-21 09:35:44 +0200187 pla:
David Garcia5863d3e2020-07-09 13:14:13 +0200188 charm: "%(prefix)s/pla%(suffix)s"
189 channel: "%(channel)s"
190 scale: 3
191 series: kubernetes
192 annotations:
193 gui-x: 500
194 gui-y: -200
David Garcia82c5ffa2020-03-09 08:38:17 +0100195 prometheus-k8s:
196 charm: "cs:~charmed-osm/prometheus-k8s"
197 channel: "stable"
198 scale: 3
199 series: kubernetes
200 storage:
201 database: 100M
202 options:
203 advertised-port: 9090
204 web-subpath: /
205 default-target: "mon-k8s:8000"
206 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200207 gui-x: 250
208 gui-y: 300
David Garcia82c5ffa2020-03-09 08:38:17 +0100209 grafana-k8s:
210 charm: "cs:~charmed-osm/grafana-k8s"
211 channel: "stable"
212 scale: 3
213 series: kubernetes
214 annotations:
David Garcia5863d3e2020-07-09 13:14:13 +0200215 gui-x: 250
216 gui-y: 550
David Garcia82c5ffa2020-03-09 08:38:17 +0100217
218relations:
219 - - "kafka-k8s:zookeeper"
220 - "zookeeper-k8s:zookeeper"
221 - - "ro-k8s:mysql"
222 - "mariadb-k8s:mysql"
223 - - "nbi-k8s:mongo"
224 - "mongodb-k8s:mongo"
225 - - "nbi-k8s:kafka"
226 - "kafka-k8s:kafka"
227 - - "lcm-k8s:kafka"
228 - "kafka-k8s:kafka"
229 - - "lcm-k8s:mongo"
230 - "mongodb-k8s:mongo"
231 - - "mon-k8s:kafka"
232 - "kafka-k8s:kafka"
233 - - "mon-k8s:mongo"
234 - "mongodb-k8s:mongo"
235 - - "pol-k8s:kafka"
236 - "kafka-k8s:kafka"
237 - - "pol-k8s:mongo"
238 - "mongodb-k8s:mongo"
239 - - "lcm-k8s:ro"
240 - "ro-k8s:ro"
241 - - "prometheus-k8s:prometheus"
242 - "mon-k8s:prometheus"
243 - - "grafana-k8s:prometheus"
244 - "prometheus-k8s:prometheus"
245 - - "ui-k8s:mysql"
246 - "mariadb-k8s:mysql"
247 - - "ui-k8s:nbi"
248 - "nbi-k8s:nbi"
249 - - "prometheus-k8s:prometheus"
250 - "nbi-k8s:prometheus"
David Garcia5863d3e2020-07-09 13:14:13 +0200251 - - "pla:kafka"
252 - "kafka-k8s:kafka"
253 - - "pla:mongo"
254 - "mongodb-k8s:mongo"
David Garciafa55bd72020-07-07 11:14:19 +0200255 - - 'ng-ui:nbi'
256 - 'nbi-k8s:nbi'