This project is a Ansible Role
to deployment the velero
on Kubernetes.
- A
Kubernetes
up and running. - The
kubectl
binary installed. - The
Helm
binary installed. Python3
installed.Pip
installed.
Clone this repository.
git clone https://github.com/ewerton-silva00/ansible-velero
Initialize a Virtual Environment
.
python3 -m venv ansible-velero
Activate the virtual environment.
source ansible-velero/bin/activate
Access the ansible-velero
directory and install dependencies.
cd ansible-velero
sudo pip3 install -r requirements.txt
Make sure that accessing the Kubernetes cluster via kubectl is OK.
kubectl cluster-info
Execute the Velero Role.
ansible-playbook \
--inventory inventories/hosts.yml \
velero.yml
Note: if the variable
velero_binary_install
istrue
you need to pass--ask-pass
and--ask-become-pass
, because requiresudo
privilege.