1 # Copyright 2021 Canonical Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
26 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
29 image: %(docker_image)s
34 initialDelaySeconds: 10
41 command: ["bash", "-c", "mysql -uroot -p\"${MYSQL_ROOT_PASSWORD}\" -e 'show databases;'"]
42 initialDelaySeconds: 120
48 - containerPort: %(mysql_port)s
58 MYSQL_ROOT_PASSWORD: %(root_password)s
59 APPLICATION_NAME: %(application_name)s
61 MYSQL_PASSWORD: %(password)s
62 MYSQL_DATABASE: %(database)s
64 - name: configurations
65 mountPath: /etc/mysqlconfiguration
70 bind-address = 0.0.0.0
72 default_storage_engine = InnoDB
74 innodb_autoinc_lock_mode = 2
75 innodb_flush_log_at_trx_commit = 0
80 # MariaDB Galera settings
82 wsrep_provider=/usr/lib/galera/libgalera_smm.so
83 wsrep_sst_method=rsync
85 # Cluster settings (automatically updated)
86 wsrep_cluster_address=gcomm://
87 wsrep_cluster_name=vimdb_cluser
88 wsrep_node_address=127.0.0.1
91 default-character-set = utf8
93 character-set-server = utf8
94 collation-server = utf8_general_ci
95 plugin_load_add = feedbackx#
97 innodb_log_file_size = 50M