values.yaml 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  1. ## @section Global parameters
  2. ## Global Docker image parameters
  3. ## Please, note that this will override the image parameters, including dependencies, configured to use the global value
  4. ## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
  5. ##
  6. ## @param global.imageRegistry Global Docker image registry
  7. ## @param global.imagePullSecrets Global Docker registry secret names as an array
  8. ## @param global.storageClass Global StorageClass for Persistent Volume(s)
  9. ##
  10. global:
  11. imageRegistry: ""
  12. ## E.g.
  13. ## imagePullSecrets:
  14. ## - myRegistryKeySecretName
  15. ##
  16. imagePullSecrets: []
  17. storageClass: "openebs-hostpath"
  18. ## @section Common parameters
  19. ##
  20. ## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
  21. ##
  22. kubeVersion: ""
  23. ## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
  24. ##
  25. nameOverride: ""
  26. ## @param fullnameOverride String to fully override common.names.fullname template
  27. ##
  28. fullnameOverride: ""
  29. ## @param namespaceOverride String to fully override common.names.namespace
  30. ##
  31. namespaceOverride: ""
  32. ## @param clusterDomain Cluster domain
  33. ##
  34. clusterDomain: cluster.local
  35. ## @param commonAnnotations Common annotations to add to all MySQL resources (sub-charts are not considered). Evaluated as a template
  36. ##
  37. commonAnnotations: {}
  38. ## @param commonLabels Common labels to add to all MySQL resources (sub-charts are not considered). Evaluated as a template
  39. ##
  40. commonLabels: {}
  41. ## @param extraDeploy Array with extra yaml to deploy with the chart. Evaluated as a template
  42. ##
  43. extraDeploy: []
  44. ## @param serviceBindings.enabled Create secret for service binding (Experimental)
  45. ## Ref: https://servicebinding.io/service-provider/
  46. ##
  47. serviceBindings:
  48. enabled: false
  49. ## Enable diagnostic mode in the deployment
  50. ##
  51. diagnosticMode:
  52. ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
  53. ##
  54. enabled: false
  55. ## @param diagnosticMode.command Command to override all containers in the deployment
  56. ##
  57. command:
  58. - sleep
  59. ## @param diagnosticMode.args Args to override all containers in the deployment
  60. ##
  61. args:
  62. - infinity
  63. ## @section MySQL common parameters
  64. ##
  65. ## Bitnami MySQL image
  66. ## ref: https://hub.docker.com/r/bitnami/mysql/tags/
  67. ## @param image.registry MySQL image registry
  68. ## @param image.repository MySQL image repository
  69. ## @param image.tag MySQL image tag (immutable tags are recommended)
  70. ## @param image.digest MySQL image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  71. ## @param image.pullPolicy MySQL image pull policy
  72. ## @param image.pullSecrets Specify docker-registry secret names as an array
  73. ## @param image.debug Specify if debug logs should be enabled
  74. ##
  75. image:
  76. registry: docker.io
  77. repository: bitnami/mysql
  78. tag: 5.7.42-debian-11-r27
  79. digest: ""
  80. ## Specify a imagePullPolicy
  81. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  82. ## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  83. ##
  84. pullPolicy: IfNotPresent
  85. ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
  86. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  87. ## Example:
  88. ## pullSecrets:
  89. ## - myRegistryKeySecretName
  90. ##
  91. pullSecrets: []
  92. ## Set to true if you would like to see extra information on logs
  93. ## It turns BASH and/or NAMI debugging in the image
  94. ##
  95. debug: false
  96. ## @param architecture MySQL architecture (`standalone` or `replication`)
  97. ##
  98. architecture: replication
  99. # architecture: standalone
  100. ## MySQL Authentication parameters
  101. ##
  102. auth:
  103. ## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided
  104. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#setting-the-root-password-on-first-run
  105. ##
  106. rootPassword: "pg3mfWRtYonekZWB"
  107. ## @param auth.createDatabase Whether to create the .Values.auth.database or not
  108. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#creating-a-database-on-first-run
  109. ##
  110. createDatabase: true
  111. ## @param auth.database Name for a custom database to create
  112. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#creating-a-database-on-first-run
  113. ##
  114. database: "otel"
  115. ## @param auth.username Name for a custom user to create
  116. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#creating-a-database-user-on-first-run
  117. ##
  118. username: "oteluser"
  119. ## @param auth.password Password for the new user. Ignored if existing secret is provided
  120. ##
  121. password: "OL4UEHrkT2IvXM5Z"
  122. ## @param auth.replicationUser MySQL replication user
  123. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mysql#setting-up-a-replication-cluster
  124. ##
  125. replicationUser: replicator
  126. ## @param auth.replicationPassword MySQL replication user password. Ignored if existing secret is provided
  127. ##
  128. replicationPassword: "UJZEgg7kAN5onq9LFncg"
  129. ## @param auth.existingSecret Use existing secret for password details. The secret has to contain the keys `mysql-root-password`, `mysql-replication-password` and `mysql-password`
  130. ## NOTE: When it's set the auth.rootPassword, auth.password, auth.replicationPassword are ignored.
  131. ##
  132. existingSecret: ""
  133. ## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
  134. ##
  135. usePasswordFiles: false
  136. ## @param auth.customPasswordFiles Use custom password files when `auth.usePasswordFiles` is set to `true`. Define path for keys `root` and `user`, also define `replicator` if `architecture` is set to `replication`
  137. ## Example:
  138. ## customPasswordFiles:
  139. ## root: /vault/secrets/mysql-root
  140. ## user: /vault/secrets/mysql-user
  141. ## replicator: /vault/secrets/mysql-replicator
  142. ##
  143. customPasswordFiles: {}
  144. ## @param initdbScripts Dictionary of initdb scripts
  145. ## Specify dictionary of scripts to be run at first boot
  146. ## Example:
  147. ## initdbScripts:
  148. ## my_init_script.sh: |
  149. ## #!/bin/bash
  150. ## echo "Do something."
  151. ##
  152. initdbScripts: {}
  153. ## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
  154. ##
  155. initdbScriptsConfigMap: ""
  156. ## @section MySQL Primary parameters
  157. ##
  158. primary:
  159. ## @param primary.name Name of the primary database (eg primary, master, leader, ...)
  160. ##
  161. name: primary
  162. ## @param primary.command Override default container command on MySQL Primary container(s) (useful when using custom images)
  163. ##
  164. command: []
  165. ## @param primary.args Override default container args on MySQL Primary container(s) (useful when using custom images)
  166. ##
  167. args: []
  168. ## @param primary.lifecycleHooks for the MySQL Primary container(s) to automate configuration before or after startup
  169. ##
  170. lifecycleHooks: {}
  171. ## @param primary.hostAliases Deployment pod host aliases
  172. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  173. ##
  174. hostAliases: []
  175. ## @param primary.configuration [string] Configure MySQL Primary with a custom my.cnf file
  176. ## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
  177. ##
  178. configuration: |-
  179. [mysqld]
  180. event_scheduler=1
  181. binlog-do-db=observe
  182. default-time_zone='+8:00'
  183. default_authentication_plugin=mysql_native_password
  184. skip-name-resolve
  185. explicit_defaults_for_timestamp
  186. basedir=/opt/bitnami/mysql
  187. plugin_dir=/opt/bitnami/mysql/lib/plugin
  188. port=3306
  189. socket=/opt/bitnami/mysql/tmp/mysql.sock
  190. datadir=/bitnami/mysql/data
  191. tmpdir=/opt/bitnami/mysql/tmp
  192. max_allowed_packet=16M
  193. bind-address=*
  194. pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
  195. log-error=/opt/bitnami/mysql/logs/mysqld.log
  196. character-set-server=UTF8
  197. collation-server=utf8_general_ci
  198. slow_query_log=0
  199. slow_query_log_file=/opt/bitnami/mysql/logs/mysqld.log
  200. long_query_time=10.0
  201. sql_mode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
  202. [client]
  203. port=3306
  204. socket=/opt/bitnami/mysql/tmp/mysql.sock
  205. default-character-set=UTF8
  206. plugin_dir=/opt/bitnami/mysql/lib/plugin
  207. [manager]
  208. port=3306
  209. socket=/opt/bitnami/mysql/tmp/mysql.sock
  210. pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
  211. ## @param primary.existingConfigmap Name of existing ConfigMap with MySQL Primary configuration.
  212. ## NOTE: When it's set the 'configuration' parameter is ignored
  213. ##
  214. existingConfigmap: ""
  215. ## @param primary.updateStrategy.type Update strategy type for the MySQL primary statefulset
  216. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  217. ##
  218. updateStrategy:
  219. type: RollingUpdate
  220. ## @param primary.podAnnotations Additional pod annotations for MySQL primary pods
  221. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  222. ##
  223. podAnnotations: {}
  224. ## @param primary.podAffinityPreset MySQL primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  225. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  226. ##
  227. podAffinityPreset: ""
  228. ## @param primary.podAntiAffinityPreset MySQL primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  229. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  230. ##
  231. podAntiAffinityPreset: soft
  232. ## MySQL Primary node affinity preset
  233. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  234. ##
  235. nodeAffinityPreset:
  236. ## @param primary.nodeAffinityPreset.type MySQL primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  237. ##
  238. type: ""
  239. ## @param primary.nodeAffinityPreset.key MySQL primary node label key to match Ignored if `primary.affinity` is set.
  240. ## E.g.
  241. ## key: "kubernetes.io/e2e-az-name"
  242. ##
  243. key: ""
  244. ## @param primary.nodeAffinityPreset.values MySQL primary node label values to match. Ignored if `primary.affinity` is set.
  245. ## E.g.
  246. ## values:
  247. ## - e2e-az1
  248. ## - e2e-az2
  249. ##
  250. values: []
  251. ## @param primary.affinity Affinity for MySQL primary pods assignment
  252. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  253. ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
  254. ##
  255. affinity: {}
  256. ## @param primary.nodeSelector Node labels for MySQL primary pods assignment
  257. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  258. ##
  259. nodeSelector: {}
  260. ## @param primary.tolerations Tolerations for MySQL primary pods assignment
  261. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  262. ##
  263. tolerations: []
  264. ## @param primary.priorityClassName MySQL primary pods' priorityClassName
  265. ##
  266. priorityClassName: ""
  267. ## @param primary.runtimeClassName MySQL primary pods' runtimeClassName
  268. ##
  269. runtimeClassName: ""
  270. ## @param primary.schedulerName Name of the k8s scheduler (other than default)
  271. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  272. ##
  273. schedulerName: ""
  274. ## @param primary.terminationGracePeriodSeconds In seconds, time the given to the MySQL primary pod needs to terminate gracefully
  275. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  276. ##
  277. terminationGracePeriodSeconds: ""
  278. ## @param primary.topologySpreadConstraints Topology Spread Constraints for pod assignment
  279. ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  280. ## The value is evaluated as a template
  281. ##
  282. topologySpreadConstraints: []
  283. ## @param primary.podManagementPolicy podManagementPolicy to manage scaling operation of MySQL primary pods
  284. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
  285. ##
  286. podManagementPolicy: ""
  287. ## MySQL primary Pod security context
  288. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  289. ## @param primary.podSecurityContext.enabled Enable security context for MySQL primary pods
  290. ## @param primary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
  291. ##
  292. podSecurityContext:
  293. enabled: true
  294. fsGroup: 1001
  295. ## MySQL primary container security context
  296. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  297. ## @param primary.containerSecurityContext.enabled MySQL primary container securityContext
  298. ## @param primary.containerSecurityContext.runAsUser User ID for the MySQL primary container
  299. ## @param primary.containerSecurityContext.runAsNonRoot Set MySQL primary container's Security Context runAsNonRoot
  300. ##
  301. containerSecurityContext:
  302. enabled: true
  303. runAsUser: 1001
  304. runAsNonRoot: true
  305. ## MySQL primary container's resource requests and limits
  306. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  307. ## We usually recommend not to specify default resources and to leave this as a conscious
  308. ## choice for the user. This also increases chances charts run on environments with little
  309. ## resources, such as Minikube. If you do want to specify resources, uncomment the following
  310. ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  311. ## @param primary.resources.limits The resources limits for MySQL primary containers
  312. ## @param primary.resources.requests The requested resources for MySQL primary containers
  313. ##
  314. resources:
  315. ## Example:
  316. ## limits:
  317. ## cpu: 250m
  318. ## memory: 256Mi
  319. ##
  320. limits: {}
  321. ## Examples:
  322. ## requests:
  323. ## cpu: 250m
  324. ## memory: 256Mi
  325. ##
  326. requests: {}
  327. ## Configure extra options for liveness probe
  328. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  329. ## @param primary.livenessProbe.enabled Enable livenessProbe
  330. ## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  331. ## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
  332. ## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  333. ## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
  334. ## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
  335. ##
  336. livenessProbe:
  337. enabled: true
  338. initialDelaySeconds: 5
  339. periodSeconds: 10
  340. timeoutSeconds: 1
  341. failureThreshold: 3
  342. successThreshold: 1
  343. ## Configure extra options for readiness probe
  344. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  345. ## @param primary.readinessProbe.enabled Enable readinessProbe
  346. ## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  347. ## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
  348. ## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  349. ## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
  350. ## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
  351. ##
  352. readinessProbe:
  353. enabled: true
  354. initialDelaySeconds: 5
  355. periodSeconds: 10
  356. timeoutSeconds: 1
  357. failureThreshold: 3
  358. successThreshold: 1
  359. ## Configure extra options for startupProbe probe
  360. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  361. ## @param primary.startupProbe.enabled Enable startupProbe
  362. ## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  363. ## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
  364. ## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  365. ## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
  366. ## @param primary.startupProbe.successThreshold Success threshold for startupProbe
  367. ##
  368. startupProbe:
  369. enabled: true
  370. initialDelaySeconds: 15
  371. periodSeconds: 10
  372. timeoutSeconds: 1
  373. failureThreshold: 10
  374. successThreshold: 1
  375. ## @param primary.customLivenessProbe Override default liveness probe for MySQL primary containers
  376. ##
  377. customLivenessProbe: {}
  378. ## @param primary.customReadinessProbe Override default readiness probe for MySQL primary containers
  379. ##
  380. customReadinessProbe: {}
  381. ## @param primary.customStartupProbe Override default startup probe for MySQL primary containers
  382. ##
  383. customStartupProbe: {}
  384. ## @param primary.extraFlags MySQL primary additional command line flags
  385. ## Can be used to specify command line flags, for example:
  386. ## E.g.
  387. ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
  388. ##
  389. extraFlags: ""
  390. ## @param primary.extraEnvVars Extra environment variables to be set on MySQL primary containers
  391. ## E.g.
  392. ## extraEnvVars:
  393. ## - name: TZ
  394. ## value: "Europe/Paris"
  395. ##
  396. extraEnvVars: []
  397. ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MySQL primary containers
  398. ##
  399. extraEnvVarsCM: ""
  400. ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MySQL primary containers
  401. ##
  402. extraEnvVarsSecret: ""
  403. ## @param primary.extraPorts Extra ports to expose
  404. ##
  405. extraPorts: []
  406. ## Enable persistence using Persistent Volume Claims
  407. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  408. ##
  409. persistence:
  410. ## @param primary.persistence.enabled Enable persistence on MySQL primary replicas using a `PersistentVolumeClaim`. If false, use emptyDir
  411. ##
  412. enabled: true
  413. ## @param primary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MySQL primary replicas
  414. ## NOTE: When it's set the rest of persistence parameters are ignored
  415. ##
  416. existingClaim: ""
  417. ## @param primary.persistence.subPath The name of a volume's sub path to mount for persistence
  418. ##
  419. subPath: ""
  420. ## @param primary.persistence.storageClass MySQL primary persistent volume storage Class
  421. ## If defined, storageClassName: <storageClass>
  422. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  423. ## If undefined (the default) or set to null, no storageClassName spec is
  424. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  425. ## GKE, AWS & OpenStack)
  426. ##
  427. storageClass: ""
  428. ## @param primary.persistence.annotations MySQL primary persistent volume claim annotations
  429. ##
  430. annotations: {}
  431. ## @param primary.persistence.accessModes MySQL primary persistent volume access Modes
  432. ##
  433. accessModes:
  434. - ReadWriteOnce
  435. ## @param primary.persistence.size MySQL primary persistent volume size
  436. ##
  437. size: 8Gi
  438. ## @param primary.persistence.selector Selector to match an existing Persistent Volume
  439. ## selector:
  440. ## matchLabels:
  441. ## app: my-app
  442. ##
  443. selector: {}
  444. ## @param primary.extraVolumes Optionally specify extra list of additional volumes to the MySQL Primary pod(s)
  445. ##
  446. extraVolumes: []
  447. ## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MySQL Primary container(s)
  448. ##
  449. extraVolumeMounts: []
  450. ## @param primary.initContainers Add additional init containers for the MySQL Primary pod(s)
  451. ##
  452. initContainers: []
  453. ## @param primary.sidecars Add additional sidecar containers for the MySQL Primary pod(s)
  454. ##
  455. sidecars: []
  456. ## MySQL Primary Service parameters
  457. ##
  458. service:
  459. ## @param primary.service.type MySQL Primary K8s service type
  460. ##
  461. # type: ClusterIP
  462. type: NodePort
  463. ## @param primary.service.ports.mysql MySQL Primary K8s service port
  464. ##
  465. ports:
  466. mysql: 3306
  467. ## @param primary.service.nodePorts.mysql MySQL Primary K8s service node port
  468. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  469. ##
  470. nodePorts:
  471. mysql: 31511
  472. ## @param primary.service.clusterIP MySQL Primary K8s service clusterIP IP
  473. ## e.g:
  474. ## clusterIP: None
  475. ##
  476. clusterIP: ""
  477. ## @param primary.service.loadBalancerIP MySQL Primary loadBalancerIP if service type is `LoadBalancer`
  478. ## Set the LoadBalancer service type to internal only
  479. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  480. ##
  481. loadBalancerIP: ""
  482. ## @param primary.service.externalTrafficPolicy Enable client source IP preservation
  483. ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  484. ##
  485. externalTrafficPolicy: Cluster
  486. ## @param primary.service.loadBalancerSourceRanges Addresses that are allowed when MySQL Primary service is LoadBalancer
  487. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  488. ## E.g.
  489. ## loadBalancerSourceRanges:
  490. ## - 10.10.10.0/24
  491. ##
  492. loadBalancerSourceRanges: []
  493. ## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  494. ##
  495. extraPorts: []
  496. ## @param primary.service.annotations Additional custom annotations for MySQL primary service
  497. ##
  498. annotations: {}
  499. ## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  500. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  501. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  502. ##
  503. sessionAffinity: None
  504. ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
  505. ## sessionAffinityConfig:
  506. ## clientIP:
  507. ## timeoutSeconds: 300
  508. ##
  509. sessionAffinityConfig: {}
  510. ## Headless service properties
  511. ##
  512. headless:
  513. ## @param primary.service.headless.annotations Additional custom annotations for headless MySQL primary service.
  514. ##
  515. annotations: {}
  516. ## MySQL primary Pod Disruption Budget configuration
  517. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  518. ##
  519. pdb:
  520. ## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation for MySQL primary pods
  521. ##
  522. create: false
  523. ## @param primary.pdb.minAvailable Minimum number/percentage of MySQL primary pods that should remain scheduled
  524. ##
  525. minAvailable: 1
  526. ## @param primary.pdb.maxUnavailable Maximum number/percentage of MySQL primary pods that may be made unavailable
  527. ##
  528. maxUnavailable: ""
  529. ## @param primary.podLabels MySQL Primary pod label. If labels are same as commonLabels , this will take precedence
  530. ##
  531. podLabels: {}
  532. ## @section MySQL Secondary parameters
  533. ##
  534. secondary:
  535. ## @param secondary.name Name of the secondary database (eg secondary, slave, ...)
  536. ##
  537. name: secondary
  538. ## @param secondary.replicaCount Number of MySQL secondary replicas
  539. ##
  540. replicaCount: 1
  541. ## @param secondary.hostAliases Deployment pod host aliases
  542. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  543. ##
  544. hostAliases: []
  545. ## @param secondary.command Override default container command on MySQL Secondary container(s) (useful when using custom images)
  546. ##
  547. command: []
  548. ## @param secondary.args Override default container args on MySQL Secondary container(s) (useful when using custom images)
  549. ##
  550. args: []
  551. ## @param secondary.lifecycleHooks for the MySQL Secondary container(s) to automate configuration before or after startup
  552. ##
  553. lifecycleHooks: {}
  554. ## @param secondary.configuration [string] Configure MySQL Secondary with a custom my.cnf file
  555. ## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
  556. ##
  557. configuration: |-
  558. [mysqld]
  559. event_scheduler=1
  560. ## skip-grant-tables
  561. default-time_zone='+8:00'
  562. default_authentication_plugin=mysql_native_password
  563. skip-name-resolve
  564. explicit_defaults_for_timestamp
  565. basedir=/opt/bitnami/mysql
  566. plugin_dir=/opt/bitnami/mysql/lib/plugin
  567. port=3306
  568. socket=/opt/bitnami/mysql/tmp/mysql.sock
  569. datadir=/bitnami/mysql/data
  570. tmpdir=/opt/bitnami/mysql/tmp
  571. max_allowed_packet=16M
  572. bind-address=*
  573. pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
  574. log-error=/opt/bitnami/mysql/logs/mysqld.log
  575. character-set-server=UTF8
  576. collation-server=utf8_general_ci
  577. slow_query_log=0
  578. slow_query_log_file=/opt/bitnami/mysql/logs/mysqld.log
  579. long_query_time=10.0
  580. [client]
  581. port=3306
  582. socket=/opt/bitnami/mysql/tmp/mysql.sock
  583. default-character-set=UTF8
  584. plugin_dir=/opt/bitnami/mysql/lib/plugin
  585. [manager]
  586. port=3306
  587. socket=/opt/bitnami/mysql/tmp/mysql.sock
  588. pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
  589. ## @param secondary.existingConfigmap Name of existing ConfigMap with MySQL Secondary configuration.
  590. ## NOTE: When it's set the 'configuration' parameter is ignored
  591. ##
  592. existingConfigmap: ""
  593. ## @param secondary.updateStrategy.type Update strategy type for the MySQL secondary statefulset
  594. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  595. ##
  596. updateStrategy:
  597. type: RollingUpdate
  598. ## @param secondary.podAnnotations Additional pod annotations for MySQL secondary pods
  599. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  600. ##
  601. podAnnotations: {}
  602. ## @param secondary.podAffinityPreset MySQL secondary pod affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
  603. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  604. ##
  605. podAffinityPreset: ""
  606. ## @param secondary.podAntiAffinityPreset MySQL secondary pod anti-affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
  607. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  608. ## Allowed values: soft, hard
  609. ##
  610. podAntiAffinityPreset: soft
  611. ## MySQL Secondary node affinity preset
  612. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  613. ##
  614. nodeAffinityPreset:
  615. ## @param secondary.nodeAffinityPreset.type MySQL secondary node affinity preset type. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
  616. ##
  617. type: ""
  618. ## @param secondary.nodeAffinityPreset.key MySQL secondary node label key to match Ignored if `secondary.affinity` is set.
  619. ## E.g.
  620. ## key: "kubernetes.io/e2e-az-name"
  621. ##
  622. key: ""
  623. ## @param secondary.nodeAffinityPreset.values MySQL secondary node label values to match. Ignored if `secondary.affinity` is set.
  624. ## E.g.
  625. ## values:
  626. ## - e2e-az1
  627. ## - e2e-az2
  628. ##
  629. values: []
  630. ## @param secondary.affinity Affinity for MySQL secondary pods assignment
  631. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  632. ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
  633. ##
  634. affinity: {}
  635. ## @param secondary.nodeSelector Node labels for MySQL secondary pods assignment
  636. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  637. ##
  638. nodeSelector: {}
  639. ## @param secondary.tolerations Tolerations for MySQL secondary pods assignment
  640. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  641. ##
  642. tolerations: []
  643. ## @param secondary.priorityClassName MySQL secondary pods' priorityClassName
  644. ##
  645. priorityClassName: ""
  646. ## @param secondary.runtimeClassName MySQL secondary pods' runtimeClassName
  647. ##
  648. runtimeClassName: ""
  649. ## @param secondary.schedulerName Name of the k8s scheduler (other than default)
  650. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  651. ##
  652. schedulerName: ""
  653. ## @param secondary.terminationGracePeriodSeconds In seconds, time the given to the MySQL secondary pod needs to terminate gracefully
  654. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  655. ##
  656. terminationGracePeriodSeconds: ""
  657. ## @param secondary.topologySpreadConstraints Topology Spread Constraints for pod assignment
  658. ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  659. ## The value is evaluated as a template
  660. ##
  661. topologySpreadConstraints: []
  662. ## @param secondary.podManagementPolicy podManagementPolicy to manage scaling operation of MySQL secondary pods
  663. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
  664. ##
  665. podManagementPolicy: ""
  666. ## MySQL secondary Pod security context
  667. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  668. ## @param secondary.podSecurityContext.enabled Enable security context for MySQL secondary pods
  669. ## @param secondary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
  670. ##
  671. podSecurityContext:
  672. enabled: true
  673. fsGroup: 1001
  674. ## MySQL secondary container security context
  675. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  676. ## @param secondary.containerSecurityContext.enabled MySQL secondary container securityContext
  677. ## @param secondary.containerSecurityContext.runAsUser User ID for the MySQL secondary container
  678. ## @param secondary.containerSecurityContext.runAsNonRoot Set MySQL secondary container's Security Context runAsNonRoot
  679. ##
  680. containerSecurityContext:
  681. enabled: true
  682. runAsUser: 1001
  683. runAsNonRoot: true
  684. ## MySQL secondary container's resource requests and limits
  685. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  686. ## We usually recommend not to specify default resources and to leave this as a conscious
  687. ## choice for the user. This also increases chances charts run on environments with little
  688. ## resources, such as Minikube. If you do want to specify resources, uncomment the following
  689. ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  690. ## @param secondary.resources.limits The resources limits for MySQL secondary containers
  691. ## @param secondary.resources.requests The requested resources for MySQL secondary containers
  692. ##
  693. resources:
  694. ## Example:
  695. ## limits:
  696. ## cpu: 250m
  697. ## memory: 256Mi
  698. ##
  699. limits: {}
  700. ## Examples:
  701. ## requests:
  702. ## cpu: 250m
  703. ## memory: 256Mi
  704. ##
  705. requests: {}
  706. ## Configure extra options for liveness probe
  707. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  708. ## @param secondary.livenessProbe.enabled Enable livenessProbe
  709. ## @param secondary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  710. ## @param secondary.livenessProbe.periodSeconds Period seconds for livenessProbe
  711. ## @param secondary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  712. ## @param secondary.livenessProbe.failureThreshold Failure threshold for livenessProbe
  713. ## @param secondary.livenessProbe.successThreshold Success threshold for livenessProbe
  714. ##
  715. livenessProbe:
  716. enabled: true
  717. initialDelaySeconds: 5
  718. periodSeconds: 10
  719. timeoutSeconds: 1
  720. failureThreshold: 3
  721. successThreshold: 1
  722. ## Configure extra options for readiness probe
  723. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  724. ## @param secondary.readinessProbe.enabled Enable readinessProbe
  725. ## @param secondary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  726. ## @param secondary.readinessProbe.periodSeconds Period seconds for readinessProbe
  727. ## @param secondary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  728. ## @param secondary.readinessProbe.failureThreshold Failure threshold for readinessProbe
  729. ## @param secondary.readinessProbe.successThreshold Success threshold for readinessProbe
  730. ##
  731. readinessProbe:
  732. enabled: true
  733. initialDelaySeconds: 5
  734. periodSeconds: 10
  735. timeoutSeconds: 1
  736. failureThreshold: 3
  737. successThreshold: 1
  738. ## Configure extra options for startupProbe probe
  739. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  740. ## @param secondary.startupProbe.enabled Enable startupProbe
  741. ## @param secondary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  742. ## @param secondary.startupProbe.periodSeconds Period seconds for startupProbe
  743. ## @param secondary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  744. ## @param secondary.startupProbe.failureThreshold Failure threshold for startupProbe
  745. ## @param secondary.startupProbe.successThreshold Success threshold for startupProbe
  746. ##
  747. startupProbe:
  748. enabled: true
  749. initialDelaySeconds: 15
  750. periodSeconds: 10
  751. timeoutSeconds: 1
  752. failureThreshold: 15
  753. successThreshold: 1
  754. ## @param secondary.customLivenessProbe Override default liveness probe for MySQL secondary containers
  755. ##
  756. customLivenessProbe: {}
  757. ## @param secondary.customReadinessProbe Override default readiness probe for MySQL secondary containers
  758. ##
  759. customReadinessProbe: {}
  760. ## @param secondary.customStartupProbe Override default startup probe for MySQL secondary containers
  761. ##
  762. customStartupProbe: {}
  763. ## @param secondary.extraFlags MySQL secondary additional command line flags
  764. ## Can be used to specify command line flags, for example:
  765. ## E.g.
  766. ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
  767. ##
  768. extraFlags: ""
  769. ## @param secondary.extraEnvVars An array to add extra environment variables on MySQL secondary containers
  770. ## E.g.
  771. ## extraEnvVars:
  772. ## - name: TZ
  773. ## value: "Europe/Paris"
  774. ##
  775. extraEnvVars: []
  776. ## @param secondary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MySQL secondary containers
  777. ##
  778. extraEnvVarsCM: ""
  779. ## @param secondary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MySQL secondary containers
  780. ##
  781. extraEnvVarsSecret: ""
  782. ## @param secondary.extraPorts Extra ports to expose
  783. ##
  784. extraPorts: []
  785. ## Enable persistence using Persistent Volume Claims
  786. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  787. ##
  788. persistence:
  789. ## @param secondary.persistence.enabled Enable persistence on MySQL secondary replicas using a `PersistentVolumeClaim`
  790. ##
  791. enabled: true
  792. ## @param secondary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MySQL secondary replicas
  793. ## NOTE: When it's set the rest of persistence parameters are ignored
  794. ##
  795. existingClaim: ""
  796. ## @param secondary.persistence.subPath The name of a volume's sub path to mount for persistence
  797. ##
  798. subPath: ""
  799. ## @param secondary.persistence.storageClass MySQL secondary persistent volume storage Class
  800. ## If defined, storageClassName: <storageClass>
  801. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  802. ## If undefined (the default) or set to null, no storageClassName spec is
  803. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  804. ## GKE, AWS & OpenStack)
  805. ##
  806. storageClass: ""
  807. ## @param secondary.persistence.annotations MySQL secondary persistent volume claim annotations
  808. ##
  809. annotations: {}
  810. ## @param secondary.persistence.accessModes MySQL secondary persistent volume access Modes
  811. ##
  812. accessModes:
  813. - ReadWriteOnce
  814. ## @param secondary.persistence.size MySQL secondary persistent volume size
  815. ##
  816. size: 8Gi
  817. ## @param secondary.persistence.selector Selector to match an existing Persistent Volume
  818. ## selector:
  819. ## matchLabels:
  820. ## app: my-app
  821. ##
  822. selector: {}
  823. ## @param secondary.extraVolumes Optionally specify extra list of additional volumes to the MySQL secondary pod(s)
  824. ##
  825. extraVolumes: []
  826. ## @param secondary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MySQL secondary container(s)
  827. ##
  828. extraVolumeMounts: []
  829. ## @param secondary.initContainers Add additional init containers for the MySQL secondary pod(s)
  830. ##
  831. initContainers: []
  832. ## @param secondary.sidecars Add additional sidecar containers for the MySQL secondary pod(s)
  833. ##
  834. sidecars: []
  835. ## MySQL Secondary Service parameters
  836. ##
  837. service:
  838. ## @param secondary.service.type MySQL secondary Kubernetes service type
  839. ##
  840. type: ClusterIP
  841. ## @param secondary.service.ports.mysql MySQL secondary Kubernetes service port
  842. ##
  843. ports:
  844. mysql: 3306
  845. ## @param secondary.service.nodePorts.mysql MySQL secondary Kubernetes service node port
  846. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  847. ##
  848. nodePorts:
  849. mysql: ""
  850. ## @param secondary.service.clusterIP MySQL secondary Kubernetes service clusterIP IP
  851. ## e.g:
  852. ## clusterIP: None
  853. ##
  854. clusterIP: ""
  855. ## @param secondary.service.loadBalancerIP MySQL secondary loadBalancerIP if service type is `LoadBalancer`
  856. ## Set the LoadBalancer service type to internal only
  857. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  858. ##
  859. loadBalancerIP: ""
  860. ## @param secondary.service.externalTrafficPolicy Enable client source IP preservation
  861. ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  862. ##
  863. externalTrafficPolicy: Cluster
  864. ## @param secondary.service.loadBalancerSourceRanges Addresses that are allowed when MySQL secondary service is LoadBalancer
  865. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  866. ## E.g.
  867. ## loadBalancerSourceRanges:
  868. ## - 10.10.10.0/24
  869. ##
  870. loadBalancerSourceRanges: []
  871. ## @param secondary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  872. ##
  873. extraPorts: []
  874. ## @param secondary.service.annotations Additional custom annotations for MySQL secondary service
  875. ##
  876. annotations: {}
  877. ## @param secondary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  878. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  879. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  880. ##
  881. sessionAffinity: None
  882. ## @param secondary.service.sessionAffinityConfig Additional settings for the sessionAffinity
  883. ## sessionAffinityConfig:
  884. ## clientIP:
  885. ## timeoutSeconds: 300
  886. ##
  887. sessionAffinityConfig: {}
  888. ## Headless service properties
  889. ##
  890. headless:
  891. ## @param secondary.service.headless.annotations Additional custom annotations for headless MySQL secondary service.
  892. ##
  893. annotations: {}
  894. ## MySQL secondary Pod Disruption Budget configuration
  895. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  896. ##
  897. pdb:
  898. ## @param secondary.pdb.create Enable/disable a Pod Disruption Budget creation for MySQL secondary pods
  899. ##
  900. create: false
  901. ## @param secondary.pdb.minAvailable Minimum number/percentage of MySQL secondary pods that should remain scheduled
  902. ##
  903. minAvailable: 1
  904. ## @param secondary.pdb.maxUnavailable Maximum number/percentage of MySQL secondary pods that may be made unavailable
  905. ##
  906. maxUnavailable: ""
  907. ## @param secondary.podLabels Additional pod labels for MySQL secondary pods
  908. ##
  909. podLabels: {}
  910. ## @section RBAC parameters
  911. ##
  912. ## MySQL pods ServiceAccount
  913. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  914. ##
  915. serviceAccount:
  916. ## @param serviceAccount.create Enable the creation of a ServiceAccount for MySQL pods
  917. ##
  918. create: true
  919. ## @param serviceAccount.name Name of the created ServiceAccount
  920. ## If not set and create is true, a name is generated using the mysql.fullname template
  921. ##
  922. name: ""
  923. ## @param serviceAccount.annotations Annotations for MySQL Service Account
  924. ##
  925. annotations: {}
  926. ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
  927. ##
  928. automountServiceAccountToken: true
  929. ## Role Based Access
  930. ## ref: https://kubernetes.io/docs/admin/authorization/rbac/
  931. ##
  932. rbac:
  933. ## @param rbac.create Whether to create & use RBAC resources or not
  934. ##
  935. create: false
  936. ## @param rbac.rules Custom RBAC rules to set
  937. ## e.g:
  938. ## rules:
  939. ## - apiGroups:
  940. ## - ""
  941. ## resources:
  942. ## - pods
  943. ## verbs:
  944. ## - get
  945. ## - list
  946. ##
  947. rules: []
  948. ## @section Network Policy
  949. ##
  950. ## MySQL Nework Policy configuration
  951. ##
  952. networkPolicy:
  953. ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
  954. ##
  955. enabled: false
  956. ## @param networkPolicy.allowExternal The Policy model to apply.
  957. ## When set to false, only pods with the correct
  958. ## client label will have network access to the port MySQL is listening
  959. ## on. When true, MySQL will accept connections from any source
  960. ## (with the correct destination port).
  961. ##
  962. allowExternal: true
  963. ## @param networkPolicy.explicitNamespacesSelector A Kubernetes LabelSelector to explicitly select namespaces from which ingress traffic could be allowed to MySQL
  964. ## If explicitNamespacesSelector is missing or set to {}, only client Pods that are in the networkPolicy's namespace
  965. ## and that match other criteria, the ones that have the good label, can reach the DB.
  966. ## But sometimes, we want the DB to be accessible to clients from other namespaces, in this case, we can use this
  967. ## LabelSelector to select these namespaces, note that the networkPolicy's namespace should also be explicitly added.
  968. ##
  969. ## Example:
  970. ## explicitNamespacesSelector:
  971. ## matchLabels:
  972. ## role: frontend
  973. ## matchExpressions:
  974. ## - {key: role, operator: In, values: [frontend]}
  975. ##
  976. explicitNamespacesSelector: {}
  977. ## @section Volume Permissions parameters
  978. ##
  979. ## Init containers parameters:
  980. ## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
  981. ##
  982. volumePermissions:
  983. ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
  984. ##
  985. enabled: false
  986. ## @param volumePermissions.image.registry Init container volume-permissions image registry
  987. ## @param volumePermissions.image.repository Init container volume-permissions image repository
  988. ## @param volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
  989. ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  990. ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
  991. ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
  992. ##
  993. image:
  994. registry: docker.io
  995. repository: bitnami/bitnami-shell
  996. tag: 11-debian-11-r102
  997. digest: ""
  998. pullPolicy: IfNotPresent
  999. ## Optionally specify an array of imagePullSecrets.
  1000. ## Secrets must be manually created in the namespace.
  1001. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1002. ## e.g:
  1003. ## pullSecrets:
  1004. ## - myRegistryKeySecretName
  1005. ##
  1006. pullSecrets: []
  1007. ## @param volumePermissions.resources Init container volume-permissions resources
  1008. ##
  1009. resources: {}
  1010. ## @section Metrics parameters
  1011. ##
  1012. ## Mysqld Prometheus exporter parameters
  1013. ##
  1014. metrics:
  1015. ## @param metrics.enabled Start a side-car prometheus exporter
  1016. ##
  1017. enabled: false
  1018. ## @param metrics.image.registry Exporter image registry
  1019. ## @param metrics.image.repository Exporter image repository
  1020. ## @param metrics.image.tag Exporter image tag (immutable tags are recommended)
  1021. ## @param metrics.image.digest Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  1022. ## @param metrics.image.pullPolicy Exporter image pull policy
  1023. ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
  1024. ##
  1025. image:
  1026. registry: docker.io
  1027. repository: bitnami/mysqld-exporter
  1028. tag: 0.14.0-debian-11-r103
  1029. digest: ""
  1030. pullPolicy: IfNotPresent
  1031. ## Optionally specify an array of imagePullSecrets.
  1032. ## Secrets must be manually created in the namespace.
  1033. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1034. ## e.g:
  1035. ## pullSecrets:
  1036. ## - myRegistryKeySecretName
  1037. ##
  1038. pullSecrets: []
  1039. ## MySQL metrics container security context
  1040. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  1041. ## @param metrics.containerSecurityContext.enabled MySQL metrics container securityContext
  1042. ## @param metrics.containerSecurityContext.runAsUser User ID for the MySQL metrics container
  1043. ## @param metrics.containerSecurityContext.runAsNonRoot Set MySQL metrics container's Security Context runAsNonRoot
  1044. ##
  1045. containerSecurityContext:
  1046. enabled: true
  1047. runAsUser: 1001
  1048. runAsNonRoot: true
  1049. ## MySQL Prometheus exporter service parameters
  1050. ## Mysqld Prometheus exporter liveness and readiness probes
  1051. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
  1052. ## @param metrics.service.type Kubernetes service type for MySQL Prometheus Exporter
  1053. ## @param metrics.service.port MySQL Prometheus Exporter service port
  1054. ## @param metrics.service.annotations [object] Prometheus exporter service annotations
  1055. ##
  1056. service:
  1057. type: ClusterIP
  1058. port: 9104
  1059. annotations:
  1060. prometheus.io/scrape: "true"
  1061. prometheus.io/port: "{{ .Values.metrics.service.port }}"
  1062. ## @param metrics.extraArgs.primary Extra args to be passed to mysqld_exporter on Primary pods
  1063. ## @param metrics.extraArgs.secondary Extra args to be passed to mysqld_exporter on Secondary pods
  1064. ## ref: https://github.com/prometheus/mysqld_exporter/
  1065. ## E.g.
  1066. ## - --collect.auto_increment.columns
  1067. ## - --collect.binlog_size
  1068. ## - --collect.engine_innodb_status
  1069. ## - --collect.engine_tokudb_status
  1070. ## - --collect.global_status
  1071. ## - --collect.global_variables
  1072. ## - --collect.info_schema.clientstats
  1073. ## - --collect.info_schema.innodb_metrics
  1074. ## - --collect.info_schema.innodb_tablespaces
  1075. ## - --collect.info_schema.innodb_cmp
  1076. ## - --collect.info_schema.innodb_cmpmem
  1077. ## - --collect.info_schema.processlist
  1078. ## - --collect.info_schema.processlist.min_time
  1079. ## - --collect.info_schema.query_response_time
  1080. ## - --collect.info_schema.tables
  1081. ## - --collect.info_schema.tables.databases
  1082. ## - --collect.info_schema.tablestats
  1083. ## - --collect.info_schema.userstats
  1084. ## - --collect.perf_schema.eventsstatements
  1085. ## - --collect.perf_schema.eventsstatements.digest_text_limit
  1086. ## - --collect.perf_schema.eventsstatements.limit
  1087. ## - --collect.perf_schema.eventsstatements.timelimit
  1088. ## - --collect.perf_schema.eventswaits
  1089. ## - --collect.perf_schema.file_events
  1090. ## - --collect.perf_schema.file_instances
  1091. ## - --collect.perf_schema.indexiowaits
  1092. ## - --collect.perf_schema.tableiowaits
  1093. ## - --collect.perf_schema.tablelocks
  1094. ## - --collect.perf_schema.replication_group_member_stats
  1095. ## - --collect.slave_status
  1096. ## - --collect.slave_hosts
  1097. ## - --collect.heartbeat
  1098. ## - --collect.heartbeat.database
  1099. ## - --collect.heartbeat.table
  1100. ##
  1101. extraArgs:
  1102. primary: []
  1103. secondary: []
  1104. ## Mysqld Prometheus exporter resource requests and limits
  1105. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1106. ## We usually recommend not to specify default resources and to leave this as a conscious
  1107. ## choice for the user. This also increases chances charts run on environments with little
  1108. ## resources, such as Minikube. If you do want to specify resources, uncomment the following
  1109. ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  1110. ## @param metrics.resources.limits The resources limits for MySQL prometheus exporter containers
  1111. ## @param metrics.resources.requests The requested resources for MySQL prometheus exporter containers
  1112. ##
  1113. resources:
  1114. ## Example:
  1115. ## limits:
  1116. ## cpu: 100m
  1117. ## memory: 256Mi
  1118. ##
  1119. limits: {}
  1120. ## Examples:
  1121. ## requests:
  1122. ## cpu: 100m
  1123. ## memory: 256Mi
  1124. ##
  1125. requests: {}
  1126. ## Mysqld Prometheus exporter liveness probe
  1127. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
  1128. ## @param metrics.livenessProbe.enabled Enable livenessProbe
  1129. ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  1130. ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
  1131. ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  1132. ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
  1133. ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
  1134. ##
  1135. livenessProbe:
  1136. enabled: true
  1137. initialDelaySeconds: 120
  1138. periodSeconds: 10
  1139. timeoutSeconds: 1
  1140. successThreshold: 1
  1141. failureThreshold: 3
  1142. ## Mysqld Prometheus exporter readiness probe
  1143. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
  1144. ## @param metrics.readinessProbe.enabled Enable readinessProbe
  1145. ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  1146. ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
  1147. ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  1148. ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
  1149. ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
  1150. ##
  1151. readinessProbe:
  1152. enabled: true
  1153. initialDelaySeconds: 30
  1154. periodSeconds: 10
  1155. timeoutSeconds: 1
  1156. successThreshold: 1
  1157. failureThreshold: 3
  1158. ## Prometheus Service Monitor
  1159. ## ref: https://github.com/coreos/prometheus-operator
  1160. ##
  1161. serviceMonitor:
  1162. ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using PrometheusOperator
  1163. ##
  1164. enabled: false
  1165. ## @param metrics.serviceMonitor.namespace Specify the namespace in which the serviceMonitor resource will be created
  1166. ##
  1167. namespace: ""
  1168. ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
  1169. ##
  1170. jobLabel: ""
  1171. ## @param metrics.serviceMonitor.interval Specify the interval at which metrics should be scraped
  1172. ##
  1173. interval: 30s
  1174. ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
  1175. ## e.g:
  1176. ## scrapeTimeout: 30s
  1177. ##
  1178. scrapeTimeout: ""
  1179. ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
  1180. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
  1181. ##
  1182. relabelings: []
  1183. ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
  1184. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
  1185. ##
  1186. metricRelabelings: []
  1187. ## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
  1188. ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration
  1189. ##
  1190. ## selector:
  1191. ## prometheus: my-prometheus
  1192. ##
  1193. selector: {}
  1194. ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
  1195. ##
  1196. honorLabels: false
  1197. ## @param metrics.serviceMonitor.labels Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
  1198. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
  1199. ##
  1200. labels: {}
  1201. ## @param metrics.serviceMonitor.annotations ServiceMonitor annotations
  1202. ##
  1203. annotations: {}
  1204. ## Prometheus Operator prometheusRule configuration
  1205. ##
  1206. prometheusRule:
  1207. ## @param metrics.prometheusRule.enabled Creates a Prometheus Operator prometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
  1208. ##
  1209. enabled: false
  1210. ## @param metrics.prometheusRule.namespace Namespace for the prometheusRule Resource (defaults to the Release Namespace)
  1211. ##
  1212. namespace: ""
  1213. ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRule will be discovered by Prometheus
  1214. ##
  1215. additionalLabels: {}
  1216. ## @param metrics.prometheusRule.rules Prometheus Rule definitions
  1217. ## - alert: Mysql-Down
  1218. ## expr: absent(up{job="mysql"} == 1)
  1219. ## for: 5m
  1220. ## labels:
  1221. ## severity: warning
  1222. ## service: mariadb
  1223. ## annotations:
  1224. ## message: 'MariaDB instance {{`{{`}} $labels.instance {{`}}`}} is down'
  1225. ## summary: MariaDB instance is down
  1226. ##
  1227. rules: []