216718dece16bcd9e162564856489aeeba695b64
[osm/devops.git] / installers / charm / local_osm_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: Single instance OSM bundle
15 bundle: kubernetes
16 applications:
17   zookeeper:
18     charm: "./zookeeper/zookeeper.charm"
19     scale: 1
20     series: kubernetes
21     storage:
22       database: 100M
23     resources:
24       image: rocks.canonical.com:443/k8s.gcr.io/kubernetes-zookeeper:1.0-3.4.10
25     annotations:
26       gui-x: 0
27       gui-y: 550
28   mariadb-k8s:
29     charm: "cs:~charmed-osm/mariadb-k8s"
30     channel: "stable"
31     scale: 1
32     series: kubernetes
33     storage:
34       database: 50M
35     options:
36       password: manopw
37       root_password: osm4u
38       user: mano
39     annotations:
40       gui-x: -250
41       gui-y: -200
42   kafka:
43     charm: "./kafka/kafka.charm"
44     scale: 1
45     series: kubernetes
46     storage:
47       database: 100M
48     resources:
49       image: rocks.canonical.com:443/wurstmeister/kafka:2.12-2.2.1
50     annotations:
51       gui-x: 0
52       gui-y: 300
53   mongodb:
54     charm: ch:mongodb-k8s
55     scale: 1
56     series: kubernetes
57     storage:
58       db: 50M
59     annotations:
60       gui-x: 0
61       gui-y: 0
62   nbi:
63     charm: "./nbi/nbi.charm"
64     scale: 1
65     series: kubernetes
66     options:
67       database_commonkey: osm
68       auth_backend: keystone
69     resources:
70       image: opensourcemano/nbi:testing-daily
71     annotations:
72       gui-x: 0
73       gui-y: -200
74   ro:
75     charm: "./ro/ro.charm"
76     scale: 1
77     series: kubernetes
78     resources:
79       image: opensourcemano/ro:testing-daily
80     annotations:
81       gui-x: -250
82       gui-y: 300
83   ng-ui:
84     charm: "./ng-ui/ng-ui.charm"
85     scale: 1
86     series: kubernetes
87     resources:
88       image: opensourcemano/ng-ui:testing-daily
89     annotations:
90       gui-x: 500
91       gui-y: 100
92   lcm:
93     charm: "./lcm/lcm.charm"
94     scale: 1
95     series: kubernetes
96     options:
97       database_commonkey: osm
98     resources:
99       image: opensourcemano/lcm:testing-daily
100     annotations:
101       gui-x: -250
102       gui-y: 50
103   mon:
104     charm: "./mon/mon.charm"
105     scale: 1
106     series: kubernetes
107     options:
108       database_commonkey: osm
109     resources:
110       image: opensourcemano/mon:testing-daily
111     annotations:
112       gui-x: 250
113       gui-y: 50
114   pol:
115     charm: "./pol/pol.charm"
116     scale: 1
117     series: kubernetes
118     resources:
119       image: opensourcemano/pol:testing-daily
120     annotations:
121       gui-x: -250
122       gui-y: 550
123   pla:
124     charm: "./pla/pla.charm"
125     scale: 1
126     series: kubernetes
127     resources:
128       image: opensourcemano/pla:testing-daily
129     annotations:
130       gui-x: 500
131       gui-y: -200
132   prometheus:
133     charm: "./prometheus/prometheus.charm"
134     channel: "stable"
135     scale: 1
136     series: kubernetes
137     storage:
138       data: 50M
139     options:
140       default-target: "mon:8000"
141     resources:
142       image: ubuntu/prometheus:latest
143       backup-image: ed1000/prometheus-backup:latest
144     annotations:
145       gui-x: 250
146       gui-y: 300
147   grafana:
148     charm: "./grafana/grafana.charm"
149     channel: "stable"
150     scale: 1
151     series: kubernetes
152     resources:
153       image: ubuntu/grafana:latest
154     annotations:
155       gui-x: 250
156       gui-y: 550
157   keystone:
158     charm: "./keystone/keystone.charm"
159     resources:
160       image: opensourcemano/keystone:testing-daily
161     scale: 1
162     series: kubernetes
163     annotations:
164       gui-x: -250
165       gui-y: 550
166 relations:
167   - - grafana:prometheus
168     - prometheus:prometheus
169   - - kafka:zookeeper
170     - zookeeper:zookeeper
171   - - keystone:db
172     - mariadb-k8s:mysql
173   - - lcm:kafka
174     - kafka:kafka
175   - - lcm:mongodb
176     - mongodb:database
177   - - ro:ro
178     - lcm:ro
179   - - ro:kafka
180     - kafka:kafka
181   - - ro:mongodb
182     - mongodb:database
183   - - pol:kafka
184     - kafka:kafka
185   - - pol:mongodb
186     - mongodb:database
187   - - mon:mongodb
188     - mongodb:database
189   - - mon:kafka
190     - kafka:kafka
191   - - pla:kafka
192     - kafka:kafka
193   - - pla:mongodb
194     - mongodb:database
195   - - nbi:mongodb
196     - mongodb:database
197   - - nbi:kafka
198     - kafka:kafka
199   - - nbi:prometheus
200     - prometheus:prometheus
201   - - nbi:keystone
202     - keystone:keystone
203   - - mon:prometheus
204     - prometheus:prometheus
205   - - ng-ui:nbi
206     - nbi:nbi
207   - - mon:keystone
208     - keystone:keystone
209   - - mariadb-k8s:mysql
210     - pol:mysql
211   - - mariadb-k8s:mysql
212     - grafana:db