cb361aeb312959e16c0452f3e18ee427565375b5
[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       keystone_enabled: true
116     annotations:
117       gui-x: 250
118       gui-y: 50
119   pol:
120     charm: "cs:~charmed-osm/pol-0"
121     scale: 3
122     series: kubernetes
123     options:
124       log_level: DEBUG
125     annotations:
126       gui-x: -250
127       gui-y: 550
128   pla:
129     charm: "cs:~charmed-osm/pla-6"
130     scale: 3
131     series: kubernetes
132     options:
133       log_level: DEBUG
134     annotations:
135       gui-x: 500
136       gui-y: -200
137   prometheus:
138     charm: "cs:~charmed-osm/prometheus-0"
139     scale: 1
140     series: kubernetes
141     storage:
142       data: 50M
143     options:
144       default-target: "mon:8000"
145     annotations:
146       gui-x: 250
147       gui-y: 300
148   grafana:
149     charm: "cs:~charmed-osm/grafana-0"
150     scale: 3
151     series: kubernetes
152     annotations:
153       gui-x: 250
154       gui-y: 550
155   keystone:
156     charm: "cs:~charmed-osm/keystone-4"
157     scale: 1
158     series: kubernetes
159     annotations:
160       gui-x: -250
161       gui-y: 550
162 relations:
163   - - grafana:prometheus
164     - prometheus:prometheus
165   - - kafka-k8s:zookeeper
166     - zookeeper-k8s:zookeeper
167   - - keystone:db
168     - mariadb-k8s:mysql
169   - - lcm:kafka
170     - kafka-k8s:kafka
171   - - lcm:mongodb
172     - mongodb-k8s:mongo
173   - - ro:ro
174     - lcm:ro
175   - - ro:kafka
176     - kafka-k8s:kafka
177   - - ro:mongodb
178     - mongodb-k8s:mongo
179   - - pol:kafka
180     - kafka-k8s:kafka
181   - - pol:mongodb
182     - mongodb-k8s:mongo
183   - - mon:mongodb
184     - mongodb-k8s:mongo
185   - - mon:kafka
186     - kafka-k8s:kafka
187   - - pla:kafka
188     - kafka-k8s:kafka
189   - - pla:mongodb
190     - mongodb-k8s:mongo
191   - - nbi:mongodb
192     - mongodb-k8s:mongo
193   - - nbi:kafka
194     - kafka-k8s:kafka
195   - - nbi:prometheus
196     - prometheus:prometheus
197   - - nbi:keystone
198     - keystone:keystone
199   - - mon:prometheus
200     - prometheus:prometheus
201   - - ng-ui:nbi
202     - nbi:nbi
203   - - mon:keystone
204     - keystone:keystone