-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget_helm.sh
More file actions
executable file
·34 lines (24 loc) · 862 Bytes
/
get_helm.sh
File metadata and controls
executable file
·34 lines (24 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Define the Helm version
HELM_VERSION="3.14.0"
# Define the download URL for the Helm binary
HELM_URL="https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz"
# Define the directory to download and extract Helm binary
HELM_DIR="/tmp/helm"
# Create a temporary directory for Helm installation
mkdir -p "${HELM_DIR}"
# Download Helm binary
echo "Downloading Helm ${HELM_VERSION}..."
wget -qO "${HELM_DIR}/helm.tar.gz" "${HELM_URL}"
# Extract Helm binary
echo "Extracting Helm binary..."
tar -zxvf "${HELM_DIR}/helm.tar.gz" -C "${HELM_DIR}"
# Move Helm binary to /usr/local/bin directory
echo "Installing Helm..."
sudo mv "${HELM_DIR}/linux-amd64/helm" /usr/local/bin/helm
# Verify Helm installation
helm version --short
# Clean up
echo "Cleaning up..."
rm -rf "${HELM_DIR}"
echo "Helm ${HELM_VERSION} has been installed successfully."