-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmain.yml
90 lines (84 loc) · 2.4 KB
/
main.yml
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
_percona_xtradb_cluster_spec:
crVersion: "1.13.0"
secretsName: percona-xtradb
pxc:
size: 3
image: "{{ atmosphere_images['percona_xtradb_cluster'] | vexxhost.kubernetes.docker_image('ref') }}"
autoRecovery: true
configuration: |
[mysqld]
max_connections=8192
innodb_buffer_pool_size=4096M
max_allowed_packet=16M
# Skip reverse DNS lookup of clients
skip-name-resolve
sidecars:
- name: exporter
image: "{{ atmosphere_images['prometheus_mysqld_exporter'] | vexxhost.kubernetes.docker_image('ref') }}"
args:
- --mysqld.username=monitor
env:
- name: MYSQLD_EXPORTER_PASSWORD
valueFrom:
secretKeyRef:
name: percona-xtradb
key: monitor
ports:
- name: metrics
containerPort: 9104
livenessProbe:
httpGet:
port: metrics
path: /
nodeSelector:
openstack-control-plane: enabled
volumeSpec:
persistentVolumeClaim:
resources:
requests:
storage: 160Gi
haproxy:
enabled: true
size: 3
image: "{{ atmosphere_images['percona_xtradb_cluster_haproxy'] | vexxhost.kubernetes.docker_image('ref') }}"
nodeSelector:
openstack-control-plane: enabled
configuration: |
global
maxconn 8192
external-check
insecure-fork-wanted
stats socket /etc/haproxy/pxc/haproxy.sock mode 600 expose-fd listeners level admin
defaults
default-server init-addr last,libc,none
log global
mode tcp
retries 10
timeout client 28800s
timeout connect 100500
timeout server 28800s
frontend galera-in
bind *:3309 accept-proxy
bind *:3306
mode tcp
option clitcpka
default_backend galera-nodes
frontend galera-admin-in
bind *:33062
mode tcp
option clitcpka
default_backend galera-admin-nodes
frontend galera-replica-in
bind *:3307
mode tcp
option clitcpka
default_backend galera-replica-nodes
frontend galera-mysqlx-in
bind *:33060
mode tcp
option clitcpka
default_backend galera-mysqlx-nodes
frontend stats
bind *:8404
mode http
http-request use-service prometheus-exporter if { path /metrics }