add velero install script
This commit is contained in:
parent
9477a0cf73
commit
21c8ba194e
3 changed files with 24 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
**/secret.yaml
|
**/secret.yaml
|
||||||
|
**/temp.yaml
|
3
velero/credentials
Normal file
3
velero/credentials
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[default]
|
||||||
|
aws_access_key_id = XXX
|
||||||
|
aws_secret_access_key = XXX
|
19
velero/install.sh
Executable file
19
velero/install.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
command_exists() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo "Software dependency not met: $1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
echo "check if velero is installed"
|
||||||
|
command_exists "velero"
|
||||||
|
echo "install velero to the cluster"
|
||||||
|
velero install \
|
||||||
|
--provider aws \
|
||||||
|
--features=EnableCSI \
|
||||||
|
--plugins velero/velero-plugin-for-aws:v1.7.1,velero/velero-plugin-for-csi:v0.5.1 \
|
||||||
|
--bucket yolokube-velero \
|
||||||
|
--secret-file ./credentials \
|
||||||
|
--use-volume-snapshots=false \
|
||||||
|
--backup-location-config region=weur,s3ForcePathStyle="true",s3Url=https://38a7c29ab4f869c340784d3d7aaa0f62.r2.cloudflarestorage.com
|
Loading…
Reference in a new issue