While this guide provides essential configuration information to utilize Contabo object-storage as a backup location, it is important to note that it is not a comprehensive tutorial on setting up Longhorn backup.
I needed more time than expected to configure the backup to the Contabo object-storage, so here is a brief guide.
- Kubernetes cluster
- Helm installed
- Contabo object-storage
- Longhorn installed with helm
Values for longorn secret
I encountered two pitfalls while attempting to set up the correct data, but the following configuration worked for me:
You can get the
AWS_ENDPOINT url from your contabo control-panel.
The AWS_REGION is
default, the location is contained in the
AWS_ENDPOINT variable, so this value does not change even if you have two object-storages in different regions.
Also we need to set
VIRTUAL_HOSTED_STYLE to true, because the new url style is currently not supported.
Values for longorn helm chart
You need to extend your longhorn helm values, under the point
defaultSettings you have to add these configurations:
Thats all, hope it helped someone!