Installation¶
To install Afi Kubernetes Backup and protect your cluster, please go to the Afi portal and create an organization account using a Google Workspace or Microsoft 365 account. After your Afi account is created, you will be able to add a Kubernetes cluster there by following the instruction below.
Add the Helm repo of Afi Kubernetes Backup¶
Download Helm chart config¶
To proceed with Afi Helm chart installation, download a personalized Helm chart config (referred later as config.yaml
) from the Afi portal. Upon download you will need to select an Afi datacenter where you want to register your cluster and default timezone that will be later used to setup default backup schedule for the cluster.
The downloaded Helm chart config has unlimited lifespan and can be used to register multiple Kubernetes clusters with the same settings. The config contains a secret that allows the backup agent installer to connect to the management portal. Make sure you keep config.yaml
in a secure location. Please note that if you download a new config.yaml
from the Afi portal, it invalidates the previous config.yaml
of the region.
Install the backup agent¶
helm install afi-k8s-backup afi/afi-k8s-backup \
-n backup-agent --create-namespace \
--wait \
-f config.yaml
In detail, the arguments to Helm are
helm install \
afi-k8s-backup \ # helm release name
\
afi/afi-k8s-backup \ # "afi" is the name of a helm repo
\ # "afi-k8s-backup" is the chart name
\
-n backup-agent \ # install the agent into a namespace named "backup-agent"
--create-namespace \ # and create that namespace automatically
\
--wait \ # wait for the agent to install and start
\
-f config.yaml \ # configure the installer chart to register
\ # the cluster in the afi management portal
Once Afi backup agent is installed, you can access a newly registered Kubernetes cluster at the Afi portal on the Service tab.