This playbook installs Astra Trident, StorageClasses, and Backend using Ansible.
This playbook automates the installation of Astra Trident, StorageClasses, and Backend on the local machine. It assumes that the target machine has Ansible, Helm, and Kubectl installed and is configured to connect to the Kubernetes cluster.
- Ansible installed on the local machine
- Access to the Kubernetes cluster
- Helm installed on the local machine
- Kubectl Installed on the local machine
- Create the
trident
namespace in the Kubernetes cluster. - Add the Astra Trident Helm repository.
- Install Trident using Helm, specifying the desired version and namespace.
- Create the backend using the provided YAML file.
- Create the storage class using the provided YAML file.
The playbook uses the following variables, which can be customized by modifying the defaults/main.yml
file:
kubeconfig_path
: Path to the Kubernetes configuration file.trident_version
: Version of Trident to install.backend_file
: Path to the backend YAML file.storageclass_file
: Path to the storage class YAML file.
The playbook expects the following files to be present in the same directory:
defaults/main.yml
: Contains the default variable values.backend_file
: YAML file defining the backend configuration.storageclass_file
: YAML file defining the storage class configuration.kubeconfig_file
: Location of your K8 cluster's config file on your local machine.
Make sure to update the file paths in the playbook if you move or rename these files.
The playbook can be ran using ansible-playbook trident-install.yml
- If the playbook fails, make sure you have the necessary permissions and access to the Kubernetes cluster.
- If you are having issues deleting resources, make sure you delete/edit the finalizers for the resources.