/
values.yaml
244 lines (233 loc) · 6.69 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
namespace: metis
global:
dbUser: "metis"
#dbPassword: <defined-in-secrets>
linkerd_requested: false
alerts:
prometheus: "infra-collector"
supportGroup: "observability"
owner-info:
support-group: observability
service: metis
maintainers:
- "Ivo Gosemann"
helm-chart-url: "https://github.com/sapcc/helm-charts/tree/master/system/metis"
prometheus-monitors:
podMonitor:
enabled: true
prometheus: "infra-collector"
matchExpressions:
- key: "app.kubernetes.io/name"
operator: "In"
values:
- "mariadb-sync"
- "metis"
mariadb:
name: metisdb
enabled: true
dbName: metis
initdb_configmap: metis-initdb
ronly_user: ronly
ronly_password: DEFINED-IN-REGION
long_query_time: 10
livenessProbe:
enabled: false
readinessProbe:
enabled: false
readiness:
useSidecar: false
image_version: "20220404160600-test"
metrics:
enabled: true
priority_class: ""
users:
ronly:
name: ronly
limits:
max_user_connections: 30
grafana:
name: grafana
limits:
max_user_connections: 10
databases:
- "metis"
- "replication"
persistence_claim:
name: metis-pvclaim
enabled: true
autoprovision: true
resources:
requests:
memory: 2048Mi
cpu: 100m
limits:
memory: 8192Mi
cpu: 2000m
extraConfigFiles:
metisdb.cnf: |+
[mysqld]
relay_log = mysql-relay-bin
[mariadb]
plugin_load_add = metadata_lock_info
alerts:
enabled: true
service: "metis"
prometheus: "infra-collector"
alert_db_not_ready: false
support_group: "observability"
vpa:
set_main_container: true
ingress:
disco: true
backup_v2:
enabled: false
backup_dir: "./backup"
full_backup_cron_schedule: "0 4 1 */6 *"
incremental_backup_in_minutes: "-1"
binlog_max_reconnect_attempts: 60
dump_filter_buffer_size_mb: 2
image: maria-back-me-up
image_version: "20220518122712"
enable_init_restore: false
metrics:
enabled: true
alerts:
enabled: false
supportGroup: "observability"
resources:
requests:
memory: 30Mi
cpu: 50m
limits:
memory: 2Gi
cpu: 500m
backups:
[]
# - name: // service name
# root_password:
# namespace: //k8s namespace
# parse_schema: // bool flag
# databases: // list of schemas to replicate
# - "<schemaName>"
metisSync:
image: go-maria-sync
imageVersion: "20230425160817"
alerts:
enabled: false
prometheus: "infra-collector"
supportGroup: "observability"
metis:
enabled: false
metrics:
path: "/metrics"
port: "9100"
image: "metis"
imageTag: DEFINED-IN-PIPELINE
vcenter:
enabled: false
prometheus:
enabled: false
releaseLocks: false
migration_version: 8
requiredDatabases:
- "keystone"
- "nova"
- "nova_cell0"
- "nova_api"
- "neutron"
- "glance"
- "designate"
- "ironic"
requiredTables:
- "metis.cc_billing"
views_enabled: false
views:
- name: openstack_ips
definition: "create or replace view metis.openstack_ips
as select
ip.ip_address as ip_address,
nf.id as floating_ip_id,
kp.name as project,
kp.id as project_id,
kd.name as domain,
kd.id as domain_id,
nn.name AS network,
nn.id AS network_id,
ns.name AS subnet,
ns.id AS subnet_id,
nsp.name AS subnetpool,
nsp.id AS subnetpool_id,
nr.name as router,
nr.id as router_id,
np.id as port_id,
nfp.device_id as instance_id,
nfp.device_owner as owner,
b.cost_object_name as cost_object,
b.cost_object_type as cost_object_type,
b.primary_contact_user_id as primary_contact,
b.primary_contact_email as primary_contact_email,
b.business_criticality as business_criticality,
b.number_of_endusers as number_of_endusers
from neutron.ipallocations as ip
inner join neutron.ports np on np.id = ip.port_id and np.device_owner = 'network:floatingip'
inner join neutron.floatingips nf on nf.id = np.device_id
left join keystone.project kp on kp.id = nf.project_id
inner join keystone.project kd on kd.id = kp.domain_id
left join neutron.routers nr on nr.id = nf.router_id
left join neutron.networks nn on nn.id = nf.floating_network_id
inner join neutron.subnets ns on ns.id = ip.subnet_id
inner join neutron.subnetpools nsp on nsp.id = ns.subnetpool_id
inner join neutron.ports nfp on nfp.id = nf.floating_port_id
left join metis.cc_billing b on b.project_id = nf.project_id
union all
select
ni.ip_address as ip_address,
NULL as floating_ip_id,
kp.name as project,
kp.id as project_id,
kd.name as domain,
kd.id as domain_id,
nn.name AS network,
nn.id AS network_id,
ns.name AS subnet,
ns.id AS subnet_id,
nsp.name AS subnetpool,
nsp.id AS subnetpool_id,
nr.name as router,
nr.id as router_id,
np.id as port_id,
NULL as instance_id,
np.device_owner as owner,
b.cost_object_name as cost_object,
b.cost_object_type as cost_object_type,
b.primary_contact_user_id as primary_contact,
b.primary_contact_email as primary_contact_email,
b.business_criticality as business_criticality,
b.number_of_endusers as number_of_endusers
from neutron.ipallocations as ni
inner join neutron.ports as np on np.id = ni.port_id and np.device_owner = 'network:router_gateway'
inner join neutron.routers nr on nr.id = np.device_id
left join keystone.project kp on kp.id = nr.project_id
inner join keystone.project kd on kd.id = kp.domain_id
left join neutron.networks nn on nn.id = ni.network_id
left join neutron.subnets ns on ns.id = ni.subnet_id
left join neutron.subnetpools nsp on nsp.id = ns.subnetpool_id
left join metis.cc_billing b on b.project_id = nr.project_id;"
- name: glance_images
definition: "create or replace view metis.glance_images
as
select g.id AS id,
g.name AS name,
g.visibility AS visibility,
n.display_name as instance_name,
n.uuid as instance_id,
p.id as project_id,
p.name as project_name,
d.id as domain_id,
d.name as domain_name,
n.created_at as created_at,
n.image_ref as image_ref
from glance.images g
left join metis.nova_instances n on n.image_ref = g.id
left join keystone.project p on p.id = n.project_id
left join keystone.project d on d.id = p.domain_id where n.uuid is not null;"