Major improvement in OSM charms
[osm/devops.git] / installers / charm / bundles / osm-ha / bundle.yaml
1 # 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.
14 description: A high-available OSM cluster.
15 bundle: kubernetes
16 applications:
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       zookeeper-units: 3
26     annotations:
27       gui-x: 0
28       gui-y: 550
29   mariadb-k8s:
30     charm: "cs:~charmed-osm/mariadb-k8s"
31     channel: "stable"
32     scale: 3
33     series: kubernetes
34     storage:
35       database: 300M
36     options:
37       password: manopw
38       root_password: osm4u
39       user: mano
40       ha-mode: true
41     annotations:
42       gui-x: -250
43       gui-y: -200
44   kafka-k8s:
45     charm: "cs:~charmed-osm/kafka-k8s"
46     channel: "stable"
47     scale: 3
48     series: kubernetes
49     storage:
50       database: 100M
51     options:
52       zookeeper-units: 3
53       kafka-units: 3
54     annotations:
55       gui-x: 0
56       gui-y: 300
57   mongodb-k8s:
58     charm: "cs:~charmed-osm/mongodb-k8s"
59     channel: "stable"
60     scale: 3
61     series: kubernetes
62     storage:
63       database: 50M
64     options:
65       replica-set: rs0
66       namespace: osm
67       enable-sidecar: true
68     annotations:
69       gui-x: 0
70       gui-y: 50
71   nbi:
72     charm: "cs:~charmed-osm/nbi-5"
73     scale: 3
74     series: kubernetes
75     options:
76       database_commonkey: osm
77       auth_backend: keystone
78       log_level: DEBUG
79     annotations:
80       gui-x: 0
81       gui-y: -200
82   ro:
83     charm: "cs:~charmed-osm/ro-0"
84     scale: 3
85     series: kubernetes
86     options:
87       log_level: DEBUG
88     annotations:
89       gui-x: -250
90       gui-y: 300
91   ng-ui:
92     charm: "cs:~charmed-osm/ng-ui-16"
93     scale: 3
94     series: kubernetes
95     annotations:
96       gui-x: 500
97       gui-y: 100
98   lcm:
99     charm: "cs:~charmed-osm/lcm-0"
100     scale: 3
101     series: kubernetes
102     options:
103       database_commonkey: osm
104       log_level: DEBUG
105     annotations:
106       gui-x: -250
107       gui-y: 50
108   mon:
109     charm: "cs:~charmed-osm/mon-0"
110     scale: 1
111     series: kubernetes
112     options:
113       database_commonkey: osm
114       log_level: DEBUG
115     annotations:
116       gui-x: 250
117       gui-y: 50
118   pol:
119     charm: "cs:~charmed-osm/pol-0"
120     scale: 3
121     series: kubernetes
122     options:
123       log_level: DEBUG
124     annotations:
125       gui-x: -250
126       gui-y: 550
127   pla:
128     charm: "cs:~charmed-osm/pla-6"
129     scale: 3
130     series: kubernetes
131     options:
132       log_level: DEBUG
133     annotations:
134       gui-x: 500
135       gui-y: -200
136   prometheus:
137     charm: "cs:~charmed-osm/prometheus-0"
138     scale: 1
139     series: kubernetes
140     storage:
141       data: 50M
142     options:
143       default-target: "mon:8000"
144     annotations:
145       gui-x: 250
146       gui-y: 300
147   grafana:
148     charm: "cs:~charmed-osm/grafana-0"
149     scale: 3
150     series: kubernetes
151     annotations:
152       gui-x: 250
153       gui-y: 550
154   keystone:
155     charm: "cs:~charmed-osm/keystone-4"
156     scale: 1
157     series: kubernetes
158     annotations:
159       gui-x: -250
160       gui-y: 550
161 relations:
162   - - grafana:prometheus
163     - prometheus:prometheus
164   - - kafka-k8s:zookeeper
165     - zookeeper-k8s:zookeeper
166   - - keystone:db
167     - mariadb-k8s:mysql
168   - - lcm:kafka
169     - kafka-k8s:kafka
170   - - lcm:mongodb
171     - mongodb-k8s:mongo
172   - - ro:ro
173     - lcm:ro
174   - - ro:kafka
175     - kafka-k8s:kafka
176   - - ro:mongodb
177     - mongodb-k8s:mongo
178   - - pol:kafka
179     - kafka-k8s:kafka
180   - - pol:mongodb
181     - mongodb-k8s:mongo
182   - - mon:mongodb
183     - mongodb-k8s:mongo
184   - - mon:kafka
185     - kafka-k8s:kafka
186   - - pla:kafka
187     - kafka-k8s:kafka
188   - - pla:mongodb
189     - mongodb-k8s:mongo
190   - - nbi:mongodb
191     - mongodb-k8s:mongo
192   - - nbi:kafka
193     - kafka-k8s:kafka
194   - - nbi:prometheus
195     - prometheus:prometheus
196   - - nbi:keystone
197     - keystone:keystone
198   - - mon:prometheus
199     - prometheus:prometheus
200   - - ng-ui:nbi
201     - nbi:nbi