adding apache-lic header for mariadb
This commit is contained in:
parent
bdc5564542
commit
a5c2e9d489
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: A helm chart for mariadb
|
description: A helm chart for mariadb
|
||||||
name: mariadb
|
name: mariadb
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: http://localhost:8879/charts
|
repository: http://localhost:8879/charts
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
@ -1,4 +1,18 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import urllib2
|
import urllib2
|
||||||
@ -88,4 +102,3 @@ def main():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
@ -1,4 +1,18 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
@ -1,4 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
@ -24,7 +38,7 @@ fi
|
|||||||
|
|
||||||
if [ "$REPLICAS" -eq 1 ] ; then
|
if [ "$REPLICAS" -eq 1 ] ; then
|
||||||
if [[ ! -f ${INIT_MARKER} ]]; then
|
if [[ ! -f ${INIT_MARKER} ]]; then
|
||||||
cd /var/lib/mysql
|
cd /var/lib/mysql
|
||||||
echo "Creating one-instance MariaDB."
|
echo "Creating one-instance MariaDB."
|
||||||
bash /tmp/bootstrap-db.sh
|
bash /tmp/bootstrap-db.sh
|
||||||
touch ${INIT_MARKER}
|
touch ${INIT_MARKER}
|
||||||
|
@ -1,15 +1,29 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-bin
|
name: mariadb-bin
|
||||||
data:
|
data:
|
||||||
start.sh: |
|
start.sh: |
|
||||||
{{ tuple "bin/_start.sh.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_start.sh.tpl" . | include "template" | indent 4 }}
|
||||||
peer-finder.py: |
|
peer-finder.py: |
|
||||||
{{ tuple "bin/_peer-finder.py.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_peer-finder.py.tpl" . | include "template" | indent 4 }}
|
||||||
readiness.py: |
|
readiness.py: |
|
||||||
{{ tuple "bin/_readiness.py.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_readiness.py.tpl" . | include "template" | indent 4 }}
|
||||||
bootstrap-db.sh: |
|
bootstrap-db.sh: |
|
||||||
{{ tuple "bin/_bootstrap-db.sh.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_bootstrap-db.sh.tpl" . | include "template" | indent 4 }}
|
||||||
seed.sh: |
|
seed.sh: |
|
||||||
{{ tuple "bin/_seed.sh.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_seed.sh.tpl" . | include "template" | indent 4 }}
|
||||||
|
@ -1,21 +1,35 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-etc
|
name: mariadb-etc
|
||||||
data:
|
data:
|
||||||
charsets.cnf: |
|
charsets.cnf: |
|
||||||
{{ tuple "etc/_charsets.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_charsets.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
engine.cnf: |
|
engine.cnf: |
|
||||||
{{ tuple "etc/_engine.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_engine.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
my.cnf: |
|
my.cnf: |
|
||||||
{{ tuple "etc/_galera-my.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_galera-my.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
log.cnf: |
|
log.cnf: |
|
||||||
{{ tuple "etc/_log.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_log.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
pid.cnf: |
|
pid.cnf: |
|
||||||
{{ tuple "etc/_pid.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_pid.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
tuning.cnf: |
|
tuning.cnf: |
|
||||||
{{ tuple "etc/_tuning.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_tuning.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
networking.cnf: |
|
networking.cnf: |
|
||||||
{{ tuple "etc/_networking.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_networking.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
wsrep.cnf: |
|
wsrep.cnf: |
|
||||||
{{ tuple "etc/_wsrep.cnf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_wsrep.cnf.tpl" . | include "template" | indent 4 }}
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
@ -99,19 +113,19 @@ spec:
|
|||||||
mountPath: /mariadb-readiness.py
|
mountPath: /mariadb-readiness.py
|
||||||
subPath: readiness.py
|
subPath: readiness.py
|
||||||
- name: charsets
|
- name: charsets
|
||||||
mountPath: /etc/my.cnf.d/charsets.cnf
|
mountPath: /etc/my.cnf.d/charsets.cnf
|
||||||
subPath: charsets.cnf
|
subPath: charsets.cnf
|
||||||
- name: engine
|
- name: engine
|
||||||
mountPath: /etc/my.cnf.d/engine.cnf
|
mountPath: /etc/my.cnf.d/engine.cnf
|
||||||
subPath: engine.cnf
|
subPath: engine.cnf
|
||||||
- name: log
|
- name: log
|
||||||
mountPath: /etc/my.cnf.d/log.cnf
|
mountPath: /etc/my.cnf.d/log.cnf
|
||||||
subPath: log.cnf
|
subPath: log.cnf
|
||||||
- name: mycnf
|
- name: mycnf
|
||||||
mountPath: /etc/my.cnf
|
mountPath: /etc/my.cnf
|
||||||
subPath: my.cnf
|
subPath: my.cnf
|
||||||
- name: networking
|
- name: networking
|
||||||
mountPath: /etc/my.cnf.d/networking.cnf
|
mountPath: /etc/my.cnf.d/networking.cnf
|
||||||
subPath: networking.cnf
|
subPath: networking.cnf
|
||||||
- name: pid
|
- name: pid
|
||||||
mountPath: /etc/my.cnf.d/pid.cnf
|
mountPath: /etc/my.cnf.d/pid.cnf
|
||||||
@ -123,7 +137,7 @@ spec:
|
|||||||
mountPath: /etc/my.cnf.d/wsrep.cnf
|
mountPath: /etc/my.cnf.d/wsrep.cnf
|
||||||
subPath: wsrep.cnf
|
subPath: wsrep.cnf
|
||||||
- name: mysql-data
|
- name: mysql-data
|
||||||
mountPath: /var/lib/mysql
|
mountPath: /var/lib/mysql
|
||||||
volumes:
|
volumes:
|
||||||
- name: mycnfd
|
- name: mycnfd
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
character_set_server=utf8
|
character_set_server=utf8
|
||||||
collation_server=utf8_unicode_ci
|
collation_server=utf8_unicode_ci
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
default-storage-engine=InnoDB
|
default-storage-engine=InnoDB
|
||||||
innodb=FORCE
|
innodb=FORCE
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
datadir=/var/lib/mysql
|
datadir=/var/lib/mysql
|
||||||
basedir=/usr
|
basedir=/usr
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
slow_query_log=off
|
slow_query_log=off
|
||||||
slow_query_log_file=/var/log/mysql/mariadb-slow.log
|
slow_query_log_file=/var/log/mysql/mariadb-slow.log
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
bind_address=0.0.0.0
|
bind_address=0.0.0.0
|
||||||
port={{ .Values.network.port.mariadb }}
|
port={{ .Values.network.port.mariadb }}
|
||||||
|
@ -1,2 +1,16 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
pid_file=/var/lib/mysql/mariadb.pid
|
pid_file=/var/lib/mysql/mariadb.pid
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
user=mysql
|
user=mysql
|
||||||
max_allowed_packet=256M
|
max_allowed_packet=256M
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
wsrep_cluster_name="{{ .Values.database.cluster_name }}"
|
wsrep_cluster_name="{{ .Values.database.cluster_name }}"
|
||||||
wsrep_provider=/usr/lib/galera/libgalera_smm.so
|
wsrep_provider=/usr/lib/galera/libgalera_smm.so
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
@ -35,7 +49,7 @@ spec:
|
|||||||
- name: POD_IP
|
- name: POD_IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: status.podIP
|
fieldPath: status.podIP
|
||||||
- name: NAMESPACE
|
- name: NAMESPACE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@ -91,7 +105,7 @@ spec:
|
|||||||
- name: bootstrapdb
|
- name: bootstrapdb
|
||||||
configMap:
|
configMap:
|
||||||
name: mariadb-bin
|
name: mariadb-bin
|
||||||
- name: peerfinder
|
- name: peerfinder
|
||||||
configMap:
|
configMap:
|
||||||
name: mariadb-bin
|
name: mariadb-bin
|
||||||
- name: charsets
|
- name: charsets
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
# Default values for mariadb.
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
# This is a YAML-formatted file.
|
#
|
||||||
# Declare name/value pairs to be passed into your templates.
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# name: value
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
# note that you need to update the gcomm member list
|
# note that you need to update the gcomm member list
|
||||||
# below when changing this value
|
# below when changing this value
|
||||||
@ -57,12 +66,12 @@ labels:
|
|||||||
|
|
||||||
network:
|
network:
|
||||||
port:
|
port:
|
||||||
wsrep: 4567
|
wsrep: 4567
|
||||||
mariadb: 3306
|
mariadb: 3306
|
||||||
ist: 4444
|
ist: 4444
|
||||||
dns:
|
dns:
|
||||||
kubernetes_domain: cluster.local
|
kubernetes_domain: cluster.local
|
||||||
|
|
||||||
database:
|
database:
|
||||||
root_password: password
|
root_password: password
|
||||||
cluster_name: mariadb
|
cluster_name: mariadb
|
||||||
|
Loading…
Reference in New Issue
Block a user