mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
120 lines
3.1 KiB
YAML
120 lines
3.1 KiB
YAML
## mysql image version
|
|
## ref: https://hub.docker.com/r/library/mysql/tags/
|
|
##
|
|
image: "mysql"
|
|
imageTag: "5.7.14"
|
|
|
|
## Specify password for root user
|
|
##
|
|
## Default: random 10 character string
|
|
# mysqlRootPassword: testing
|
|
|
|
## Create a database user
|
|
##
|
|
# mysqlUser:
|
|
## Default: random 10 character string
|
|
# mysqlPassword:
|
|
|
|
## Allow unauthenticated access, uncomment to enable
|
|
##
|
|
# mysqlAllowEmptyPassword: true
|
|
|
|
## Create a database
|
|
##
|
|
# mysqlDatabase:
|
|
|
|
## Specify an imagePullPolicy (Required)
|
|
## It's recommended to change this to 'Always' if the image tag is 'latest'
|
|
## ref: http://kubernetes.io/docs/user-guide/images/#updating-images
|
|
##
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
# Optionally specify an array of imagePullSecrets.
|
|
# Secrets must be manually created in the namespace.
|
|
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
|
|
# imagePullSecrets:
|
|
# - name: myRegistryKeySecretName
|
|
|
|
## Node selector
|
|
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
|
nodeSelector: {}
|
|
|
|
livenessProbe:
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
|
|
readinessProbe:
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
|
|
## Persist data to a persistent volume
|
|
persistence:
|
|
enabled: true
|
|
## database data Persistent Volume Storage Class
|
|
## If defined, storageClassName: <storageClass>
|
|
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
## If undefined (the default) or set to null, no storageClassName spec is
|
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
|
## GKE, AWS & OpenStack)
|
|
##
|
|
# storageClass: "-"
|
|
accessMode: ReadWriteOnce
|
|
size: 8Gi
|
|
|
|
## Configure resource requests and limits
|
|
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
|
##
|
|
resources:
|
|
requests:
|
|
memory: 256Mi
|
|
cpu: 100m
|
|
|
|
# Custom mysql configuration files used to override default mysql settings
|
|
configurationFiles:
|
|
# mysql.cnf: |-
|
|
# [mysqld]
|
|
# skip-name-resolve
|
|
# ssl-ca=/ssl/ca.pem
|
|
# ssl-cert=/ssl/server-cert.pem
|
|
# ssl-key=/ssl/server-key.pem
|
|
|
|
# Custom mysql init SQL files used to initialize the database
|
|
initializationFiles:
|
|
# first-db.sql: |-
|
|
# CREATE DATABASE IF NOT EXISTS first DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
|
# second-db.sql: |-
|
|
# CREATE DATABASE IF NOT EXISTS second DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
|
|
|
## Configure the service
|
|
## ref: http://kubernetes.io/docs/user-guide/services/
|
|
service:
|
|
## Specify a service type
|
|
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types
|
|
type: ClusterIP
|
|
port: 3306
|
|
# nodePort: 32000
|
|
|
|
ssl:
|
|
enabled: false
|
|
secret: mysql-ssl-certs
|
|
certificates:
|
|
# - name: mysql-ssl-certs
|
|
# ca: |-
|
|
# -----BEGIN CERTIFICATE-----
|
|
# ...
|
|
# -----END CERTIFICATE-----
|
|
# cert: |-
|
|
# -----BEGIN CERTIFICATE-----
|
|
# ...
|
|
# -----END CERTIFICATE-----
|
|
# key: |-
|
|
# -----BEGIN RSA PRIVATE KEY-----
|
|
# ...
|
|
# -----END RSA PRIVATE KEY-----
|