This quick Gist will show you how to get Velero up and running with Kind without using Minio. You might find this useful if you need a quick instance of Velero for testing or are just getting started with the tool but do not have access to AWS, Azure, or GCP.
- Docker
- Helm
- Velero (
brew install velero
,choco install velero
, or build from source)
-
Create a new Kind cluster
$: kind create cluster --name=test-cluster
-
Pull
s3rver
, a fake S3 server written in Node. (More info here. Bind it to the Docker network created bykind
:$: docker run -d --net=kind --name=velero-backups triplew/s3rver
-
Create the YAML file shown below at
/tmp/velero-values.yaml
; include the lines that sayNOT_NEEDED
:
configuration:
provider: aws
backupStorageLocation:
bucket: test-bucket
config:
region: fake-region
s3Url: http://velero-backups:4568
s3ForcePathStyle: true
initContainers:
- name: aws
image: velero/velero-plugin-for-aws:v1.1.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
name: plugins
credentials:
secretContents:
cloud: |
[default]
region = NOT_NEEDED
aws_access_key_id = NOT_NEEDED
aws_secret_access_key = NOT_NEEDED
- Install the Helm repo for Velero, then install Velero
$: helm repo add vmware-tanzu/velero && helm install --values /tmp/velero-values.yaml velero vmware-tanzu/velero
- Use Velero as desired.
$: velero backup create test-backup
- You won't be able to fetch logs or download the backups, as these are not supported by
s3rver
.