This project is a Ansible Role to deployment the velero on Kubernetes.
- A
Kubernetesup and running. - The
kubectlbinary installed. - The
Helmbinary installed. Python3installed.Pipinstalled.
Clone this repository.
git clone https://github.com/ewerton-silva00/ansible-veleroInitialize a Virtual Environment.
python3 -m venv ansible-veleroActivate the virtual environment.
source ansible-velero/bin/activateAccess the ansible-velero directory and install dependencies.
cd ansible-velero
sudo pip3 install -r requirements.txtMake sure that accessing the Kubernetes cluster via kubectl is OK.
kubectl cluster-infoExecute the Velero Role.
ansible-playbook \
--inventory inventories/hosts.yml \
velero.ymlNote: if the variable
velero_binary_installistrueyou need to pass--ask-passand--ask-become-pass, because requiresudoprivilege.