Configuring the clusters
Now we put the solution we designed in the previous section into action. We will start by developing the Ansible framework skeleton, which will consist of the following parts:
group_vars
: This directory contains the manifest configuration files with variables' default unless a cluster defines its own private variables in its own inventory.inventories
: This directory contains the configuration files with variables' values, which are specific to each cluster or cluster group, meaning that variables defined here override default variables defined under thegroups_vars
directory.tasks
: In this directory, we define a separate task for each cluster service and add-on that we need to deploy and configure; the task definition file is standard across tasks, as we will use Ansible's k8s module and pass to it the YAML templates to deploy against the target cluster.templates
: This directory contains the Kubernetes manifest YAMLs and...