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
Option | Description |
---|---|
mysql-init-script.yaml | A ConfigMap used to initialize the database. This file can contain SQL statements that will be executed during installation. |
mysql-passwords.yaml | Used to specify user account passwords, if not used then paswords will be auto-generated. |
tungsten_v1alpha1_backup.yaml | Used as an example to create a backup. This is an operational task, not installation. |
tungsten_v1alpha1_backupconfiguration.yaml | Examples to use to configure the backup endpoints - S3, Folder etc |
tungsten_v1alpha1_mysqlcluster.yaml | Example deployment for a 3-node cluster. |
tungsten_v1alpha1_mysqlcluster_caa.yaml | Example deployment for a 6-node Composite Active/Active cluster. |
tungsten_v1alpha1_mysqlcluster_caa_with_init.yaml | Example deployment for a 6-node Composite Active/Active cluster that also calls the mysql-init-script.yaml |
tungsten_v1alpha1_mysqlcluster_cap.yaml | Example deployment for a 6-node Composite Active/Passive cluster. |
tungsten_v1alpha1_mysqlcluster_cap_with_affinity.yaml | Example deployment for a 6-node Composite Active/Passive cluster that set Kubernetes node affinity. |
tungsten_v1alpha1_mysqlcluster_cap_with_init.yaml | Example deployment for a 6-node Composite Active/Passive cluster that also calls the mysql-init-script.yaml |
tungsten_v1alpha1_mysqlcluster_from_backup.yaml | Example deployment for a 3-node cluster using a specified backup to provision from first. |
tungsten_v1alpha1_mysqlcluster_with_init.yaml | Example deployment for a 3-node cluster that also calls the mysql-init-script.yaml |
tungsten_v1alpha1_mysqlcluster_with_backup.yaml | Example deployment for a 3-node cluster that will also schedule backups at a specific schedule |
tungsten_v1alpha1_opsrequest_reset_node.yaml | Used as an example to restore a backup. This is an operational task, not installation. |
tungsten_v1alpha1_opsrequest_reset_replicator.yaml | Used as an example to reset the replicator. This is an operational task, not installation. |
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.
To install a cluster, with auto-generated passwords:
To install a cluster, defining your own custom passwords:
To install a cluster, defining your own custom passwords, and manually take your own backups:
To install a cluster, defining your own custom passwords, and configure automated backups:
One of tungsten_v1alpha1_tmysqlcluster.yaml
,
tungsten_v1alpha1_mysqlcluster_cap.yaml
or
tungsten_v1alpha1_mysqlcluster_caa.yaml
To install a cluster, defining your own custom passwords, and provisioning from an existing backup: