3.2.2.1. Working with the YAML files

The first step is to build the yaml files, and to make this simple we provide a number of example files that can be used and adjusted to suit your requirements.

The files are located within the examples directory of the extracted operator package, for example:

shell> cd /opt/continuent/software/tungsten-operator-8.0.0-27/examples

The following table lists the available template files and what each one can be used for:

Table 3.2. Example YAML files provided

OptionDescription
mysql-init-script.yamlA ConfigMap used to initialize the database. This file can contain SQL statements that will be executed during installation.
mysql-passwords.yamlUsed to specify user account passwords, if not used then paswords will be auto-generated.
tungsten_v1alpha1_backup.yamlUsed as an example to create a backup. This is an operational task, not installation.
tungsten_v1alpha1_backupconfiguration.yamlExamples to use to configure the backup endpoints - S3, Folder etc
tungsten_v1alpha1_mysqlcluster.yamlExample deployment for a 3-node cluster.
tungsten_v1alpha1_mysqlcluster_caa.yamlExample deployment for a 6-node Composite Active/Active cluster.
tungsten_v1alpha1_mysqlcluster_caa_with_init.yamlExample deployment for a 6-node Composite Active/Active cluster that also calls the mysql-init-script.yaml
tungsten_v1alpha1_mysqlcluster_cap.yamlExample deployment for a 6-node Composite Active/Passive cluster.
tungsten_v1alpha1_mysqlcluster_cap_with_affinity.yamlExample deployment for a 6-node Composite Active/Passive cluster that set Kubernetes node affinity.
tungsten_v1alpha1_mysqlcluster_cap_with_init.yamlExample deployment for a 6-node Composite Active/Passive cluster that also calls the mysql-init-script.yaml
tungsten_v1alpha1_mysqlcluster_from_backup.yamlExample deployment for a 3-node cluster using a specified backup to provision from first.
tungsten_v1alpha1_mysqlcluster_with_init.yamlExample deployment for a 3-node cluster that also calls the mysql-init-script.yaml
tungsten_v1alpha1_mysqlcluster_with_backup.yamlExample deployment for a 3-node cluster that will also schedule backups at a specific schedule
tungsten_v1alpha1_opsrequest_reset_node.yamlUsed as an example to restore a backup. This is an operational task, not installation.
tungsten_v1alpha1_opsrequest_reset_replicator.yamlUsed as an example to reset the replicator. This is an operational task, not installation.

Important

Example YAML files are provided to deploy Composite Active/Passive and Composite Active/Active clusters, however at this time it is not possible to deploy these topologies across regions.

Depending on the use-case, you may choose to employ one or more of the sample YAML files, additionally you may wish to create one single YAML file that combines more than one of the above samples together. Whilst this is supported, it is not recommended as this may result in large files that may become dificult to manage.

An example of some of the use-cases that can be achieved using combine YAML files is shown below. This is not an exhaustive list of all possibilities, but are provided as examples of the kind of combinations you can leverage.