blob: 5a99be1f81c29d98fd2fb57ef8edf35b08b7ef56 [file] [log] [blame]
_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') }}"
env:
- name: MONITOR_PASSWORD
valueFrom:
secretKeyRef:
name: percona-xtradb
key: monitor
- name: DATA_SOURCE_NAME
value: "monitor:$(MONITOR_PASSWORD)@(localhost:3306)/"
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 }