mysql-operator

by Bitpoke

Helm chartv0.6.3App v0.6.3Apache-2.0Verified publisher

A helm chart for Bitpoke Operator for MySQL

About this chart

Bitpoke MySQL Operator

This is the helm chart for mysql-operator.

TL;DR

## For Helm v3
helm repo add bitpoke https://helm-charts.bitpoke.io
helm install mysql-operator bitpoke/mysql-operator

Configuration

The following table contains the configuration parameters for mysql-operator and default values.

ParameterDescriptionDefault value
replicaCountReplicas for controller1
image.repositoryDocker repository for MySQL operator controllerdocker.io/bitpoke/mysql-operator
image.tagDocker image tag for MySQL operator controllerlatest
image.pullPolicyDocker image pull policy for MySQL operator controllerIfNotPresent
sidecar57.image.repositoryDocker repository for sidecar image for MySQL 5.7docker.io/bitpoke/mysql-operator-sidecar-5.7
sidecar57.image.tagDocker image tag for sidecar image for MySQL 5.7latest
sidecar80.image.repositoryDocker repository for sidecar image for MySQL 8.0docker.io/bitpoke/mysql-operator-sidecar-8.0
sidecar80.image.tagDocker image tag for sidecar image for MySQL 8.0latest
metricsExporter.image.repositoryDocker repository for MySQL metrics exporterdocker.io/prom/mysqld-exporter
metricsExporter.image.tagDocker image tag for MySQL metrics exporterv0.13.0
imagePullSecretsController image pull secrets[]
extraEnvMySQL Operator controller extra environment variables[]
extraArgsMySQL Operator controller extra command line arguments[]
resourcesMySQL Operator controller resources limits and requests{}
rbac.createSpecifies whether RBAC objects like Role and RoleBinding should be createdtrue
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated using the fullname template.empty
podAnnotationsExtra pod annotations{}
podSecurityContextThe pod security context. 65532 is the UID/GID for the nonroot user in the official images{runAsNonRoot: true, runAsUser: 65532, runAsGroup: 65532, fsGroup: 65532}
securityContextSecurity context for the MySQL Operator container{}
podDisruptionBudget.enabledSpecifies whether a PodDisruptionBudget for the MySQL operator StatefulSet should be created. NOTE it only takes effect if replicaCount is greated than 1.true
podDisruptionBudget.minAvailableref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudgetempty
podDisruptionBudget.maxUnavailableref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget1
nodeSelectorMySQL Operator pod nodeSelector{}
tolerationsMySQL Operator pod tolerations[]
affinityMySQL Operator pod affinity{}
gracefulShutdown.enabledInsert a pre-stop lifecycle hook and trigger a failover when a MySQL pod is stoppedtrue
watchNamespaceThe namespace where the operator to watch for resources. Leave empty to watch all namespaces.empty
orchestrator.image.repositoryDocker repository for orchestratordocker.io/bitpoke/mysql-operator-orchestrator
orchestrator.image.tagDocker image tag for orchestratorlatest
orchestrator.image.pullPolicyDocker image pull policy for orchestratorIfNotPresent
orchestrator.topologyUserSet a user for orchestrator to use it to connect to the MySQL clusterorchestrator
orchestrator.topologyPasswordSet a password for the orchestrator user to connect to MySQL cluster<random string>
orchestrator.persistence.enabledSpecifies whether to enable the persistence for Orchestrator podstrue
orchestrator.persistence.*Check values.yaml
orchestrator.ingress.enabledSpecifies whether to enable the ingress for Orchestratorfalse
orchestrator.ingress.*Check values.yaml
orchestrator.service.*Orchestrator Service definition. Check values.yaml
orchestrator.persistence.fsGroupWorkaroundEnabledAdds a workaround for persistent volume provisioners which don't support fsGroup (eg. when deploying to kind) #615false

Deploy mysql-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mysql-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmysql-operator is pinned at v0.6.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply