From 10b41161305a26f863db0a1a7cd6f2c10abb0ebb Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 30 Aug 2025 17:12:29 +0200 Subject: [PATCH] Add installation steps for Velero CLI in cloud-init.yaml --- provisioning/cloud-init.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/provisioning/cloud-init.yaml b/provisioning/cloud-init.yaml index 5364e3b..8f8f6de 100644 --- a/provisioning/cloud-init.yaml +++ b/provisioning/cloud-init.yaml @@ -71,6 +71,12 @@ runcmd: # Install kubectl - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + # Install Velero CLI + - VELERO_VERSION=$(curl -s https://api.github.com/repos/vmware-tanzu/velero/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') + - curl -LO "https://github.com/vmware-tanzu/velero/releases/download/${VELERO_VERSION}/velero-${VELERO_VERSION}-linux-amd64.tar.gz" + - tar -xzf "velero-${VELERO_VERSION}-linux-amd64.tar.gz" + - install -o root -g root -m 0755 "velero-${VELERO_VERSION}-linux-amd64/velero" /usr/local/bin/velero + - rm -rf "velero-${VELERO_VERSION}-linux-amd64" "velero-${VELERO_VERSION}-linux-amd64.tar.gz" # Install k0s - curl -sSLf https://get.k0s.sh | sh - k0s install controller --single @@ -93,7 +99,7 @@ runcmd: - | su ${username} -c ' cd /home/${username} - curl -fsSL https://raw.githubusercontent.com/LordMathis/dotfiles/main/install.sh > /tmp/install_dotfiles.sh + curl -fsSL https://raw.githubusercontent.com/lordmathis/dotfiles/main/install.sh > /tmp/install_dotfiles.sh chmod +x /tmp/install_dotfiles.sh /tmp/install_dotfiles.sh server '