To install Afi Kubernetes Backup and protect your cluster, please go to the Afi portal and sign up using a Google Workspace or Microsoft 365 account. Once Afi account is created, you will be able to add a Kubernetes cluster.
1. Add Afi Helm repo
helm repo add afi https://helm.afi.ai/k8s-backup
2. Download Helm chart config
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, keep backup data, and the default timezone that will be later used to set up 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 clusters to connect to the management portal. Make sure you keep
config.yamlin a secure location. Please note that if you download a new
config.yamlfrom the Afi portal, it invalidates the previous
config.yamlof the region.
3. Install the backup agent
helm install afi-k8s-backup afi/afi-k8s-backup \
-n backup-agent --create-namespace \
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