Add Velero
https://velero.io/docs/v1.12/basic-install/#option-2-github-release
This commit is contained in:
parent
2c80c73149
commit
ee5203a03d
6 changed files with 24 additions and 5 deletions
|
@ -68,7 +68,7 @@ The classic way I get this onto a Linux server:
|
|||
cd /opt
|
||||
sudo chown --from=:root :sudo . && sudo chmod g+w .
|
||||
sudo apt install git
|
||||
git clone https://github.com/xeruf/instalee
|
||||
git clone https://github.com/xeruf/instalee || git -C instalee pull
|
||||
instalee/instalee shell/basics
|
||||
```
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
kubectl
|
||||
helm
|
||||
k9s
|
||||
fluxctl
|
||||
kubectx
|
||||
|
|
3
groups/shell/stackspin
Normal file
3
groups/shell/stackspin
Normal file
|
@ -0,0 +1,3 @@
|
|||
shell/kubernetes
|
||||
fluxctl
|
||||
velero
|
|
@ -6,8 +6,13 @@ case "$1" in
|
|||
(http*) wget --no-verbose -O "$loc" "$@";;
|
||||
(*.deb) loc="$1";;
|
||||
(git*) domain="$1"; shift
|
||||
arch=$(uname -m)
|
||||
case "$arch" in
|
||||
(x86_64) arch=amd64;;
|
||||
(aarch64) arch=arm64;;
|
||||
esac
|
||||
result=$(curl -s "https://api.$domain/repos/$1/$2/releases/latest" | grep -o "http.*${3:-deb}" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2-)
|
||||
"$0" $(echo "$result" | command grep amd64 | head -1 || echo "$result")
|
||||
"$0" $(echo "$result" | grep $arch | head -1 || echo "$result")
|
||||
exit $?;;
|
||||
esac
|
||||
sudo dpkg -i "$loc"
|
||||
|
|
1
packages/velero/aur
Normal file
1
packages/velero/aur
Normal file
|
@ -0,0 +1 @@
|
|||
velero-bin
|
11
packages/velero/binary
Executable file
11
packages/velero/binary
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
arch=$(uname -m)
|
||||
case "$arch" in
|
||||
(x86_64) arch=amd64;;
|
||||
(aarch64) arch=arm64;;
|
||||
esac
|
||||
|
||||
result=$(curl https://api.github.com/repos/vmware-tanzu/velero/releases/latest | grep -o "http.*.tar.gz" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2- | grep linux-$arch | head -1)
|
||||
wget "$result"
|
||||
tar -xvf $(basename "$result")
|
||||
echo $(basename "$result")/velero
|
Loading…
Add table
Reference in a new issue