mysql-operator

by Helm

Helm chartv0.1.0App 0.2.0Apache-2.0

A Helm chart for deploying the Oracle MySQL Operator

About this chart

Mysql Operator

Mysql Operator

How to add repo chart repo

Please read this [README.md][https://github.com/banzaicloud/banzai-charts]

tl;dr:

$ helm repo add banzaicloud-stable http://kubernetes-charts.banzaicloud.com/branch/master
$ helm repo update
$ helm install banzaicloud-stable/mysql-operator

Introduction for example

This chart bootstraps the Mysql Operator deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release banzaicloud-stable/mysql-operator

The command deploys Mysql Operator to a Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

ParameterDescriptionDefault
image.repositorymysql-operator image repositoryiad.ocir.io/oracle/mysql-operator
image.tagmysql-operator image tag0.2.0
image.pullPolicymysql-operator image pull policyIfNotPresent
rbac.enabledInstall required rbac sa. and roles and rolebindingstrue
operator.globalThe namespace for which the MySQL operator manages MySQL clusters.if not set manage all namespaces
operator.namespaceThe namespace for which the MySQL operator manages MySQL clusters.if not set manage all namespaces
operator.register_crdEnable CRD registrationtrue
mysql.server.imageThe name of the target 'mysql-server' image.mysql/mysql-server
mysql.agent.imageThe name of the target 'mysql-agent' image.iad.ocir.io/oracle/mysql-agent

Using Operator

Visit mysql-operator documentation page

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.1.0 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