2018-09-04 10:51:13 -05:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Default values for mariadb.
|
|
|
|
# This is a YAML-formatted file.
|
|
|
|
# Declare name/value pairs to be passed into your templates.
|
|
|
|
# name: value
|
|
|
|
|
|
|
|
release_group: null
|
|
|
|
|
|
|
|
images:
|
|
|
|
tags:
|
2018-09-22 12:18:16 -05:00
|
|
|
mariadb: docker.io/openstackhelm/mariadb:10.2.18
|
2018-09-04 10:51:13 -05:00
|
|
|
ingress: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0
|
|
|
|
error_pages: gcr.io/google_containers/defaultbackend:1.0
|
|
|
|
prometheus_create_mysql_user: docker.io/mariadb:10.2.13
|
|
|
|
prometheus_mysql_exporter: docker.io/prom/mysqld-exporter:v0.10.0
|
2019-05-13 11:13:55 +02:00
|
|
|
prometheus_mysql_exporter_helm_tests: docker.io/openstackhelm/heat:newton-ubuntu_xenial
|
2018-09-04 10:51:13 -05:00
|
|
|
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.3.1
|
|
|
|
image_repo_sync: docker.io/docker:17.07.0
|
2019-05-13 11:13:55 +02:00
|
|
|
mariadb_backup: docker.io/openstackhelm/mariadb:latest-ubuntu_xenial
|
|
|
|
scripted_test: docker.io/openstackhelm/mariadb:latest-ubuntu_xenial
|
2018-09-04 10:51:13 -05:00
|
|
|
pull_policy: "IfNotPresent"
|
|
|
|
local_registry:
|
|
|
|
active: false
|
|
|
|
exclude:
|
|
|
|
- dep_check
|
|
|
|
- image_repo_sync
|
|
|
|
|
|
|
|
labels:
|
|
|
|
server:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
|
|
|
ingress:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
|
|
|
error_server:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
2019-03-20 10:34:24 -04:00
|
|
|
job:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
2019-04-05 22:55:08 -04:00
|
|
|
test:
|
|
|
|
node_selector_key: openstack-control-plane
|
|
|
|
node_selector_value: enabled
|
2018-09-04 10:51:13 -05:00
|
|
|
|
|
|
|
pod:
|
2019-04-03 16:09:47 -05:00
|
|
|
security_context:
|
|
|
|
server:
|
|
|
|
pod:
|
|
|
|
runAsUser: 999
|
|
|
|
container:
|
|
|
|
perms:
|
|
|
|
runAsUser: 0
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
mariadb:
|
|
|
|
runAsUser: 999
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
ingress:
|
|
|
|
pod:
|
|
|
|
runAsUser: 65534
|
|
|
|
container:
|
|
|
|
server:
|
|
|
|
runAsUser: 0
|
|
|
|
error_pages:
|
|
|
|
pod:
|
|
|
|
runAsUser: 1000
|
|
|
|
container:
|
|
|
|
server:
|
|
|
|
runAsUser: 0
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
pod:
|
|
|
|
runAsUser: 99
|
|
|
|
container:
|
|
|
|
exporter:
|
|
|
|
runAsUser: 99
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
prometheus_create_mysql_user:
|
|
|
|
pod:
|
|
|
|
runAsUser: 0
|
|
|
|
container:
|
|
|
|
main:
|
|
|
|
allowPrivilegeEscalation: false
|
2019-04-05 22:55:08 -04:00
|
|
|
tests:
|
|
|
|
pod:
|
|
|
|
runAsUser: 999
|
|
|
|
container:
|
|
|
|
test:
|
|
|
|
runAsUser: 999
|
|
|
|
readOnlyRootFilesystem: true
|
2018-09-04 10:51:13 -05:00
|
|
|
affinity:
|
|
|
|
anti:
|
|
|
|
type:
|
|
|
|
default: preferredDuringSchedulingIgnoredDuringExecution
|
|
|
|
topologyKey:
|
|
|
|
default: kubernetes.io/hostname
|
2019-05-10 21:56:03 -05:00
|
|
|
weight:
|
|
|
|
default: 10
|
2018-09-04 10:51:13 -05:00
|
|
|
replicas:
|
2018-09-22 12:18:16 -05:00
|
|
|
server: 3
|
|
|
|
ingress: 2
|
2018-09-04 10:51:13 -05:00
|
|
|
error_page: 1
|
|
|
|
prometheus_mysql_exporter: 1
|
|
|
|
lifecycle:
|
|
|
|
upgrades:
|
|
|
|
deployments:
|
|
|
|
revision_history: 3
|
|
|
|
pod_replacement_strategy: RollingUpdate
|
|
|
|
rolling_update:
|
|
|
|
max_unavailable: 1
|
|
|
|
max_surge: 3
|
|
|
|
termination_grace_period:
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
timeout: 30
|
|
|
|
error_pages:
|
|
|
|
timeout: 10
|
|
|
|
disruption_budget:
|
|
|
|
mariadb:
|
|
|
|
min_available: 0
|
|
|
|
resources:
|
|
|
|
enabled: false
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
server:
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
prometheus_create_mysql_user:
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
image_repo_sync:
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
2019-03-20 10:34:24 -04:00
|
|
|
mariadb_backup:
|
|
|
|
requests:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
limits:
|
|
|
|
memory: "1024Mi"
|
|
|
|
cpu: "2000m"
|
2019-03-06 08:52:24 -06:00
|
|
|
|
2018-09-04 10:51:13 -05:00
|
|
|
dependencies:
|
|
|
|
dynamic:
|
|
|
|
common:
|
|
|
|
local_image_registry:
|
|
|
|
jobs:
|
|
|
|
- mariadb-image-repo-sync
|
|
|
|
services:
|
|
|
|
- endpoint: node
|
|
|
|
service: local_image_registry
|
|
|
|
static:
|
|
|
|
error_pages:
|
|
|
|
jobs: null
|
|
|
|
ingress:
|
|
|
|
jobs: null
|
|
|
|
services:
|
|
|
|
- endpoint: error_pages
|
|
|
|
service: oslo_db
|
|
|
|
mariadb:
|
|
|
|
jobs: null
|
|
|
|
services: null
|
|
|
|
prometheus_create_mysql_user:
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: oslo_db
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
jobs:
|
|
|
|
- exporter-create-sql-user
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: oslo_db
|
|
|
|
prometheus_mysql_exporter_tests:
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: prometheus_mysql_exporter
|
|
|
|
- endpoint: internal
|
|
|
|
service: monitoring
|
|
|
|
image_repo_sync:
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: local_image_registry
|
2019-03-20 10:34:24 -04:00
|
|
|
mariadb_backup:
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: oslo_db
|
2019-04-05 22:55:08 -04:00
|
|
|
tests:
|
|
|
|
services:
|
|
|
|
- endpoint: internal
|
|
|
|
service: oslo_db
|
2018-09-04 10:51:13 -05:00
|
|
|
|
|
|
|
volume:
|
mysql: set hostpath for mysql-data
There is currently an issue with deploying single
pod mysql clusters in which restarting or killing
the pod will result in a crashloopbackoff.
The mysql data is indeed lost and the start script
(thinking the cluster was alive before
due to the grastate configmap) tries to restore
the cluster instead of bootstrapping it.
Due to this, if the mysql pod is killed or restarted
in the CI, we will lose all the mysql data, will not
recover, and this results in a broken environment.
When volume.use_local_path_for_single_pod.enabled value
is set to true, which we will apply on single node/single
pod testing, this patch will deploy a local volume
for mysql at the location specified under
volume.use_local_path_for_single_pod.host_path
The data will be kept intact in case
there is a pod restart, as it can read the data again,
and recover itself.
When it is false, which is the default for non-CI,
nothing changes, and an empty dir is used. This
data WILL be lost upon restart, so it is advised
to use volumes instead for production purposes,
by setting Values.volume.enabled to true.
task: 28729
Change-Id: I6ec0bd1087eb06b92ced7dc56ff5b6a156aad433
2019-05-17 14:51:15 +02:00
|
|
|
# this value is used for single pod deployments of mariadb to prevent losing all data
|
|
|
|
# if the pod is restarted
|
2019-05-22 09:32:29 -05:00
|
|
|
use_local_path_for_single_pod_cluster:
|
mysql: set hostpath for mysql-data
There is currently an issue with deploying single
pod mysql clusters in which restarting or killing
the pod will result in a crashloopbackoff.
The mysql data is indeed lost and the start script
(thinking the cluster was alive before
due to the grastate configmap) tries to restore
the cluster instead of bootstrapping it.
Due to this, if the mysql pod is killed or restarted
in the CI, we will lose all the mysql data, will not
recover, and this results in a broken environment.
When volume.use_local_path_for_single_pod.enabled value
is set to true, which we will apply on single node/single
pod testing, this patch will deploy a local volume
for mysql at the location specified under
volume.use_local_path_for_single_pod.host_path
The data will be kept intact in case
there is a pod restart, as it can read the data again,
and recover itself.
When it is false, which is the default for non-CI,
nothing changes, and an empty dir is used. This
data WILL be lost upon restart, so it is advised
to use volumes instead for production purposes,
by setting Values.volume.enabled to true.
task: 28729
Change-Id: I6ec0bd1087eb06b92ced7dc56ff5b6a156aad433
2019-05-17 14:51:15 +02:00
|
|
|
enabled: false
|
|
|
|
host_path: "/tmp/mysql-data"
|
2018-09-04 10:51:13 -05:00
|
|
|
chown_on_start: true
|
|
|
|
enabled: true
|
|
|
|
class_name: general
|
|
|
|
size: 5Gi
|
2019-03-20 10:34:24 -04:00
|
|
|
backup:
|
|
|
|
enabled: true
|
|
|
|
class_name: general
|
|
|
|
size: 5Gi
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
exporter_create_sql_user:
|
|
|
|
backoffLimit: 87600
|
|
|
|
activeDeadlineSeconds: 3600
|
|
|
|
backup_mariadb:
|
|
|
|
cron: "0 0 * * *"
|
|
|
|
history:
|
|
|
|
success: 3
|
|
|
|
failed: 1
|
2018-09-04 10:51:13 -05:00
|
|
|
|
|
|
|
conf:
|
2019-04-05 22:55:08 -04:00
|
|
|
tests:
|
|
|
|
# This may either be:
|
|
|
|
# * internal: which will hit the endpoint exposed by the ingress controller
|
|
|
|
# * direct: which will hit the backends directly via a k8s service ip
|
|
|
|
# Note, deadlocks and failure are to be expected with concurrency if
|
|
|
|
# hitting the `direct` endpoint.
|
|
|
|
endpoint: internal
|
|
|
|
# This is a list of tuning params passed to mysqlslap:
|
|
|
|
params:
|
|
|
|
- --auto-generate-sql
|
|
|
|
- --concurrency=100
|
|
|
|
- --number-of-queries=1000
|
|
|
|
- --number-char-cols=1
|
|
|
|
- --number-int-cols=1
|
2018-09-04 10:51:13 -05:00
|
|
|
ingress: null
|
2019-03-20 10:34:24 -04:00
|
|
|
backup:
|
|
|
|
enabled: true
|
|
|
|
base_path: /var/backup
|
|
|
|
mysqldump_options: >
|
2019-04-03 14:10:59 -04:00
|
|
|
--single-transaction --quick --add-drop-database
|
|
|
|
--add-drop-table --databases
|
2019-03-20 10:34:24 -04:00
|
|
|
days_of_backup_to_keep: 3
|
2019-04-06 15:08:27 -04:00
|
|
|
database:
|
|
|
|
config_override: null
|
|
|
|
# Any configuration here will override the base config.
|
|
|
|
# config_override: |-
|
|
|
|
# [mysqld]
|
|
|
|
# wsrep_slave_threads=1
|
2018-09-04 10:51:13 -05:00
|
|
|
|
|
|
|
monitoring:
|
|
|
|
prometheus:
|
2019-04-09 13:29:57 -05:00
|
|
|
enabled: false
|
2018-09-04 10:51:13 -05:00
|
|
|
mysqld_exporter:
|
|
|
|
scrape: true
|
|
|
|
|
|
|
|
# typically overridden by environmental
|
|
|
|
# values, but should include all endpoints
|
|
|
|
# required by this chart
|
|
|
|
endpoints:
|
|
|
|
cluster_domain_suffix: cluster.local
|
|
|
|
local_image_registry:
|
|
|
|
name: docker-registry
|
|
|
|
namespace: docker-registry
|
|
|
|
hosts:
|
|
|
|
default: localhost
|
|
|
|
internal: docker-registry
|
|
|
|
node: localhost
|
|
|
|
host_fqdn_override:
|
|
|
|
default: null
|
|
|
|
port:
|
|
|
|
registry:
|
|
|
|
node: 5000
|
|
|
|
monitoring:
|
|
|
|
name: prometheus
|
|
|
|
namespace: null
|
|
|
|
hosts:
|
|
|
|
default: prom-metrics
|
|
|
|
public: prometheus
|
|
|
|
host_fqdn_override:
|
|
|
|
default: null
|
|
|
|
path:
|
|
|
|
default: null
|
|
|
|
scheme:
|
|
|
|
default: 'http'
|
|
|
|
port:
|
|
|
|
api:
|
|
|
|
default: 9090
|
|
|
|
public: 80
|
|
|
|
prometheus_mysql_exporter:
|
|
|
|
namespace: null
|
|
|
|
hosts:
|
|
|
|
default: mysql-exporter
|
|
|
|
host_fqdn_override:
|
|
|
|
default: null
|
|
|
|
path:
|
|
|
|
default: /metrics
|
|
|
|
scheme:
|
|
|
|
default: 'http'
|
|
|
|
port:
|
|
|
|
metrics:
|
|
|
|
default: 9104
|
|
|
|
oslo_db:
|
|
|
|
namespace: null
|
|
|
|
auth:
|
|
|
|
admin:
|
|
|
|
username: root
|
|
|
|
password: password
|
2019-03-29 11:43:54 -05:00
|
|
|
sst:
|
|
|
|
username: sst
|
|
|
|
password: password
|
2018-09-04 10:51:13 -05:00
|
|
|
exporter:
|
|
|
|
username: exporter
|
|
|
|
password: password
|
|
|
|
hosts:
|
|
|
|
default: mariadb
|
|
|
|
direct: mariadb-server
|
|
|
|
discovery: mariadb-discovery
|
|
|
|
error_pages: mariadb-ingress-error-pages
|
|
|
|
host_fqdn_override:
|
|
|
|
default: null
|
|
|
|
path: null
|
|
|
|
scheme: mysql+pymysql
|
|
|
|
port:
|
|
|
|
mysql:
|
|
|
|
default: 3306
|
|
|
|
wsrep:
|
|
|
|
default: 4567
|
2018-08-27 15:26:24 -05:00
|
|
|
kube_dns:
|
|
|
|
namespace: kube-system
|
|
|
|
name: kubernetes-dns
|
|
|
|
hosts:
|
|
|
|
default: kube-dns
|
|
|
|
host_fqdn_override:
|
|
|
|
default: null
|
|
|
|
path:
|
|
|
|
default: null
|
|
|
|
scheme: http
|
|
|
|
port:
|
|
|
|
dns_tcp:
|
|
|
|
default: 53
|
|
|
|
dns:
|
|
|
|
default: 53
|
|
|
|
protocol: UDP
|
|
|
|
|
|
|
|
network_policy:
|
|
|
|
mariadb:
|
|
|
|
ingress:
|
|
|
|
- {}
|
2019-05-07 09:51:47 -05:00
|
|
|
egress:
|
|
|
|
- {}
|
2018-09-04 10:51:13 -05:00
|
|
|
|
|
|
|
manifests:
|
|
|
|
configmap_bin: true
|
|
|
|
configmap_etc: true
|
|
|
|
configmap_services_tcp: true
|
|
|
|
deployment_error: true
|
|
|
|
deployment_ingress: true
|
|
|
|
job_image_repo_sync: true
|
2019-03-20 10:34:24 -04:00
|
|
|
cron_job_mariadb_backup: false
|
|
|
|
pvc_backup: false
|
2018-09-04 10:51:13 -05:00
|
|
|
monitoring:
|
|
|
|
prometheus:
|
|
|
|
configmap_bin: true
|
|
|
|
deployment_exporter: true
|
|
|
|
job_user_create: true
|
|
|
|
secret_etc: true
|
|
|
|
service_exporter: true
|
2019-04-09 08:39:57 -05:00
|
|
|
network_policy_exporter: false
|
2018-09-04 10:51:13 -05:00
|
|
|
pdb_server: true
|
2018-08-27 15:26:24 -05:00
|
|
|
network_policy: false
|
2019-04-05 22:55:08 -04:00
|
|
|
pod_test: true
|
2019-03-29 11:43:54 -05:00
|
|
|
secret_dbadmin_password: true
|
|
|
|
secret_sst_password: true
|
2018-09-04 10:51:13 -05:00
|
|
|
secret_etc: true
|
|
|
|
service_discovery: true
|
|
|
|
service_ingress: true
|
|
|
|
service_error: true
|
|
|
|
service: true
|
|
|
|
statefulset: true
|