You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

values.yaml 6.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. ## mysql image version
  2. ## ref: https://hub.docker.com/r/library/mysql/tags/
  3. ##
  4. image: "mysql"
  5. imageTag: "5.7.30"
  6. strategy:
  7. type: Recreate
  8. busybox:
  9. image: "busybox"
  10. tag: "1.28"
  11. testFramework:
  12. enabled: true
  13. image: "bats/bats"
  14. tag: "1.2.1"
  15. imagePullPolicy: IfNotPresent
  16. securityContext: {}
  17. ## Specify password for root user
  18. ##
  19. ## Default: random 10 character string
  20. mysqlRootPassword: qazxc123456.
  21. ## Create a database user
  22. ##
  23. # mysqlUser:
  24. ## Default: random 10 character string
  25. # mysqlPassword:
  26. ## Allow unauthenticated access, uncomment to enable
  27. ##
  28. mysqlAllowEmptyPassword: true
  29. ## Create a database
  30. ##
  31. # mysqlDatabase:
  32. ## Specify an imagePullPolicy (Required)
  33. ## It's recommended to change this to 'Always' if the image tag is 'latest'
  34. ## ref: http://kubernetes.io/docs/user-guide/images/#updating-images
  35. ##
  36. imagePullPolicy: IfNotPresent
  37. ## Additionnal arguments that are passed to the MySQL container.
  38. ## For example use --default-authentication-plugin=mysql_native_password if older clients need to
  39. ## connect to a MySQL 8 instance.
  40. args: []
  41. extraVolumes: |
  42. # - name: extras
  43. # emptyDir: {}
  44. extraVolumeMounts: |
  45. # - name: extras
  46. # mountPath: /usr/share/extras
  47. # readOnly: true
  48. extraInitContainers: |
  49. # - name: do-something
  50. # image: busybox
  51. # command: ['do', 'something']
  52. ## A string to add extra environment variables
  53. # extraEnvVars: |
  54. # - name: EXTRA_VAR
  55. # value: "extra"
  56. # Optionally specify an array of imagePullSecrets.
  57. # Secrets must be manually created in the namespace.
  58. # ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
  59. # imagePullSecrets:
  60. # - name: myRegistryKeySecretName
  61. ## Node selector
  62. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  63. nodeSelector: {}
  64. ## Affinity
  65. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  66. affinity: {}
  67. ## Tolerations for pod assignment
  68. ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  69. ##
  70. tolerations: []
  71. livenessProbe:
  72. initialDelaySeconds: 30
  73. periodSeconds: 10
  74. timeoutSeconds: 5
  75. successThreshold: 1
  76. failureThreshold: 3
  77. readinessProbe:
  78. initialDelaySeconds: 5
  79. periodSeconds: 10
  80. timeoutSeconds: 1
  81. successThreshold: 1
  82. failureThreshold: 3
  83. ## Persist data to a persistent volume
  84. persistence:
  85. enabled: true
  86. ## database data Persistent Volume Storage Class
  87. ## If defined, storageClassName: <storageClass>
  88. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  89. ## If undefined (the default) or set to null, no storageClassName spec is
  90. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  91. ## GKE, AWS & OpenStack)
  92. ##
  93. storageClass: "storage-nfs"
  94. accessMode: ReadWriteOnce
  95. size: 10Gi
  96. annotations: {}
  97. ## Use an alternate scheduler, e.g. "stork".
  98. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  99. ##
  100. # schedulerName:
  101. ## Security context
  102. securityContext:
  103. enabled: false
  104. runAsUser: 999
  105. fsGroup: 999
  106. ## Configure resource requests and limits
  107. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  108. ##
  109. resources:
  110. requests:
  111. memory: 256Mi
  112. cpu: 100m
  113. # Custom mysql configuration files path
  114. configurationFilesPath: /etc/mysql/conf.d/
  115. # Custom mysql configuration files used to override default mysql settings
  116. configurationFiles: {}
  117. # mysql.cnf: |-
  118. # [mysqld]
  119. # skip-name-resolve
  120. # ssl-ca=/ssl/ca.pem
  121. # ssl-cert=/ssl/server-cert.pem
  122. # ssl-key=/ssl/server-key.pem
  123. # Custom mysql init SQL files used to initialize the database
  124. initializationFiles: {}
  125. # first-db.sql: |-
  126. # CREATE DATABASE IF NOT EXISTS first DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
  127. # second-db.sql: |-
  128. # CREATE DATABASE IF NOT EXISTS second DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
  129. # To enaable the mysql X Protocol's port
  130. # .. will expose the port 33060
  131. # .. Note the X Plugin needs installation
  132. # ref: https://dev.mysql.com/doc/refman/8.0/en/x-plugin-checking-installation.html
  133. mysqlx:
  134. port:
  135. enabled: false
  136. metrics:
  137. enabled: false
  138. image: prom/mysqld-exporter
  139. imageTag: v0.10.0
  140. imagePullPolicy: IfNotPresent
  141. resources: {}
  142. annotations: {}
  143. # prometheus.io/scrape: "true"
  144. # prometheus.io/port: "9104"
  145. livenessProbe:
  146. initialDelaySeconds: 15
  147. timeoutSeconds: 5
  148. readinessProbe:
  149. initialDelaySeconds: 5
  150. timeoutSeconds: 1
  151. flags: []
  152. serviceMonitor:
  153. enabled: false
  154. additionalLabels: {}
  155. ## Configure the service
  156. ## ref: http://kubernetes.io/docs/user-guide/services/
  157. service:
  158. annotations: {}
  159. ## Specify a service type
  160. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types
  161. type: NodePort
  162. port: 3306
  163. nodePort: 31201
  164. # loadBalancerIP:
  165. ## Pods Service Account
  166. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  167. serviceAccount:
  168. ## Specifies whether a ServiceAccount should be created
  169. ##
  170. create: false
  171. ## The name of the ServiceAccount to use.
  172. ## If not set and create is true, a name is generated using the mariadb.fullname template
  173. # name:
  174. ssl:
  175. enabled: false
  176. secret: mysql-ssl-certs
  177. certificates:
  178. # - name: mysql-ssl-certs
  179. # ca: |-
  180. # -----BEGIN CERTIFICATE-----
  181. # ...
  182. # -----END CERTIFICATE-----
  183. # cert: |-
  184. # -----BEGIN CERTIFICATE-----
  185. # ...
  186. # -----END CERTIFICATE-----
  187. # key: |-
  188. # -----BEGIN RSA PRIVATE KEY-----
  189. # ...
  190. # -----END RSA PRIVATE KEY-----
  191. ## Populates the 'TZ' system timezone environment variable
  192. ## ref: https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
  193. ##
  194. ## Default: nil (mysql will use image's default timezone, normally UTC)
  195. ## Example: 'Australia/Sydney'
  196. # timezone:
  197. # Deployment Annotations
  198. deploymentAnnotations: {}
  199. # To be added to the database server pod(s)
  200. podAnnotations: {}
  201. podLabels: {}
  202. ## Set pod priorityClassName
  203. # priorityClassName: {}
  204. ## Init container resources defaults
  205. initContainer:
  206. resources:
  207. requests:
  208. memory: 10Mi
  209. cpu: 10m