Belaid Youba Hadj Arab, Etienne Deneuve
Aug 20, 2023 · 2 min
read
Kibana Backup System with Cronjob (Prerequisites)
Prerequisites
- AN AKS
- Elasticsearch & Kibana
- Azure CLI
- An Azure Storage Account
- An Azure Container Registry
- Docker
Note that I assume you already have an AKS with Elasticsearch and Kibana deployed on it.
Alternatively, you can wait for my next article, which will demonstrate how to deploy an AKS.
Storage Account
Log in to
cspell:disable >Azureusing the command :
az loginCreate the
cspell:disable >resource group:
az group create \ --name <resource-group-name> \ --location <resource-group-region>Next, create the
cspell:disable >storage account, which will contain our futurebackups:
az storage account create \ --name <account-name> \ --resource-group <resource-group-name> \ --location <resource-group-region> \ --sku Standard_RAGRS \ --kind StorageV2- If you prefer creating the storage account via the portal, check here
Azure Container Registry(acr)
Create the
cspell:disable >resource group:
az group create \ --name <acr-resource-group-name> \ --location <resource-group-region>Then create the
cspell:disable >ACR, which will contain the Docker image used by thecronjob: :
az acr create --resource-group <acr-resource-group-name> \ --name <acr-name> --sku BasicFinally, log in to it :
cspell:disable >
az acr login --name <acr-name>- For doing this via the portal, refer here.
Image build
Download the repository content in zip format.
Unzip the file and navigate to the root of the folder.
Run the following command to build the Docker image :
cspell:disable >
docker build --platform linux/amd64 -t <acr-name>.azurecr.io/<image-name>:<version> --push .- You can check the portal to verify if the image has been successfully pushed.
- Now, we have our image created and our storage account; all that’s left is to put everything together to create the cronjob !
Backup Kibana Tutorial