blob: 212a5208df2237b8b08ff51d15ced18274128026 [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
31 gui-y: 1100
32 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:
49 gui-x: -500
50 gui-y: -400
51 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
66 gui-y: 600
67 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
83 gui-y: 100
84 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
96 gui-y: -400
97 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:
109 gui-x: -500
110 gui-y: 600
111 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:
119 gui-x: 500
120 gui-y: -400
121 lcm-k8s:
122 charm: "cs:~charmed-osm/lcm-k8s"
123 channel: "%(channel)s"
124 scale: 3
125 series: kubernetes
126 storage:
127 packages: 100M
128 options:
129 vca_host: vca
130 vca_port: 17070
131 vca_user: admin
132 vca_password: secret
133 vca_pubkey: pubkey
134 vca_cacert: cacert
135 vca_apiproxy: apiproxy
136 use_external_vca: true
137 DATABASE_COMMONKEY: osm
138 annotations:
139 gui-x: -500
140 gui-y: 100
141 mon-k8s:
142 charm: "cs:~charmed-osm/mon-k8s"
143 channel: "%(channel)s"
144 scale: 3
145 series: kubernetes
146 storage:
147 database: 100M
148 options:
149 OSMMON_OPENSTACK_DEFAULT_GRANULARITY: 300
150 OSMMON_GLOBAL_REQUEST_TIMEOUT: 10
151 OSMMON_GLOBAL_LOGLEVEL: INFO
152 OSMMON_DATABASE_COMMONKEY: osm
153 OSMMON_COLLECTOR_INTERVAL: 30
154 OSMMON_EVALUATOR_INTERVAL: 30
155 vca_host: vca
156 vca_user: admin
157 vca_password: secret
158 vca_cacert: cacert
159 use_external_vca: true
160 annotations:
161 gui-x: 500
162 gui-y: 100
163 pol-k8s:
164 charm: "cs:~charmed-osm/pol-k8s"
165 channel: "%(channel)s"
166 scale: 3
167 series: kubernetes
168 storage:
169 database: 100M
170 options:
171 log_level: INFO
172 annotations:
173 gui-x: -500
174 gui-y: 1100
175 prometheus-k8s:
176 charm: "cs:~charmed-osm/prometheus-k8s"
177 channel: "stable"
178 scale: 3
179 series: kubernetes
180 storage:
181 database: 100M
182 options:
183 advertised-port: 9090
184 web-subpath: /
185 default-target: "mon-k8s:8000"
186 annotations:
187 gui-x: 500
188 gui-y: 600
189 grafana-k8s:
190 charm: "cs:~charmed-osm/grafana-k8s"
191 channel: "stable"
192 scale: 3
193 series: kubernetes
194 annotations:
195 gui-x: 500
196 gui-y: 1100
197
198relations:
199 - - "kafka-k8s:zookeeper"
200 - "zookeeper-k8s:zookeeper"
201 - - "ro-k8s:mysql"
202 - "mariadb-k8s:mysql"
203 - - "nbi-k8s:mongo"
204 - "mongodb-k8s:mongo"
205 - - "nbi-k8s:kafka"
206 - "kafka-k8s:kafka"
207 - - "lcm-k8s:kafka"
208 - "kafka-k8s:kafka"
209 - - "lcm-k8s:mongo"
210 - "mongodb-k8s:mongo"
211 - - "mon-k8s:kafka"
212 - "kafka-k8s:kafka"
213 - - "mon-k8s:mongo"
214 - "mongodb-k8s:mongo"
215 - - "pol-k8s:kafka"
216 - "kafka-k8s:kafka"
217 - - "pol-k8s:mongo"
218 - "mongodb-k8s:mongo"
219 - - "lcm-k8s:ro"
220 - "ro-k8s:ro"
221 - - "prometheus-k8s:prometheus"
222 - "mon-k8s:prometheus"
223 - - "grafana-k8s:prometheus"
224 - "prometheus-k8s:prometheus"
225 - - "ui-k8s:mysql"
226 - "mariadb-k8s:mysql"
227 - - "ui-k8s:nbi"
228 - "nbi-k8s:nbi"
229 - - "prometheus-k8s:prometheus"
230 - "nbi-k8s:prometheus"