Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Azure-ARM/deployprofisee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,24 @@ echo $"Installation of Helm finished.";

#Install kubectl
echo $"Installation of kubectl started.";
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

version="$(curl -fsSL https://dl.k8s.io/release/stable.txt || true)"
echo $"kubectl version is $version"

if [[ -z "$version" ]]; then
version="v1.35.0"
echo "Failed to fetch latest kubectl version. Falling back to $version"
else
echo "Latest kubectl version is $version"
fi

curl -fsSLo kubectl "https://dl.k8s.io/release/$version/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
echo $"Installation of kubectl finished.";

echo "Installation of kubectl finished."
kubectl version --client --output=yaml

sleep 60

#Create profisee namespace in AKS cluster.
echo $"Creation of profisee namespace in cluster started. If present, we skip creation and use it.";
Expand Down