From 036054bdf57347e1c297dd8ca01097d3d06b217d Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:54:29 -0500 Subject: [PATCH 1/6] updated curl command --- Azure-ARM/deployprofisee.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index 239d9c1..150eda0 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -105,13 +105,13 @@ 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" +curl -LO https://dl.k8s.io/release/v1.35.0/bin/linux/amd64/kubectl install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl echo $"Installation of kubectl finished."; #Create profisee namespace in AKS cluster. echo $"Creation of profisee namespace in cluster started. If present, we skip creation and use it."; - +sleep 30 #If namespace exists, skip creating it. namespacepresent=$(kubectl get namespace -o jsonpath='{.items[?(@.metadata.name=="profisee")].metadata.name}') if [ "$namespacepresent" = "profisee" ]; then From 839d0d0abe188b46e89348a18b9d95f3d02482cd Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:08:28 -0500 Subject: [PATCH 2/6] Update deployprofisee.sh --- Azure-ARM/deployprofisee.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index 150eda0..18ca7c8 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -105,7 +105,9 @@ echo $"Installation of Helm finished."; #Install kubectl echo $"Installation of kubectl started."; -curl -LO https://dl.k8s.io/release/v1.35.0/bin/linux/amd64/kubectl +version=$(curl -sSL https://dl.k8s.io/release/stable.txt) +echo $version +curl -fSLO 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."; From aaceba56c1c795a8de8f3fcd6339b6944dc7d2ea Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Thu, 5 Feb 2026 12:40:29 -0500 Subject: [PATCH 3/6] updated kubectl download logic --- Azure-ARM/deployprofisee.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index 18ca7c8..0674dbb 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -105,11 +105,24 @@ echo $"Installation of Helm finished."; #Install kubectl echo $"Installation of kubectl started."; -version=$(curl -sSL https://dl.k8s.io/release/stable.txt) -echo $version -curl -fSLO https://dl.k8s.io/release/$version/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."; From 9e9912c54d45f22999eb208fce9e6d2ee56e6b54 Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Thu, 5 Feb 2026 12:43:47 -0500 Subject: [PATCH 4/6] Update deployprofisee.sh --- Azure-ARM/deployprofisee.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index b05ab60..c4045f0 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -126,7 +126,6 @@ sleep 60 #Create profisee namespace in AKS cluster. echo $"Creation of profisee namespace in cluster started. If present, we skip creation and use it."; -sleep 30 #If namespace exists, skip creating it. namespacepresent=$(kubectl get namespace -o jsonpath='{.items[?(@.metadata.name=="profisee")].metadata.name}') if [ "$namespacepresent" = "profisee" ]; then From cf3a794c87420734913c01f20067d4d0be1d957e Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Thu, 5 Feb 2026 12:44:09 -0500 Subject: [PATCH 5/6] Update deployprofisee.sh --- Azure-ARM/deployprofisee.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index c4045f0..944d722 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -134,7 +134,6 @@ else kubectl create namespace profisee fi echo $"Creation of profisee namespace in cluster finished."; - #Download Settings.yaml file from Profisee repo. curl -fsSL -o Settings.yaml "$REPOURL/Azure-ARM/Settings.yaml"; From b596c0b2e2fcbda23a989cf749b9f3999113319a Mon Sep 17 00:00:00 2001 From: Naveenr04 <115646520+Naveenr04@users.noreply.github.com> Date: Thu, 5 Feb 2026 12:48:08 -0500 Subject: [PATCH 6/6] Update deployprofisee.sh --- Azure-ARM/deployprofisee.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index 944d722..5b3f08b 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -126,6 +126,7 @@ sleep 60 #Create profisee namespace in AKS cluster. echo $"Creation of profisee namespace in cluster started. If present, we skip creation and use it."; + #If namespace exists, skip creating it. namespacepresent=$(kubectl get namespace -o jsonpath='{.items[?(@.metadata.name=="profisee")].metadata.name}') if [ "$namespacepresent" = "profisee" ]; then @@ -134,6 +135,7 @@ else kubectl create namespace profisee fi echo $"Creation of profisee namespace in cluster finished."; + #Download Settings.yaml file from Profisee repo. curl -fsSL -o Settings.yaml "$REPOURL/Azure-ARM/Settings.yaml";