#!/usr/bin/env bash echo "Parameters Passed:" echo " kubuser=$kubuser" echo " constr=$constr" export constr=$constr export DEBIAN_FRONTEND=noninteractive export kubuser=$kubuser echo "Installing the Prerequisites" sudo apt update sudo apt install -y k3d unzip tree jq curl wget ./microsoft-prod.list sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ sudo apt-get update sudo apt-get install -y moby-engine moby-cli /home/$kubuser/.kube/config sleep 15 echo "Install IoT Edge and your Connection String" sudo kubectl create ns iotedge --kubeconfig=/home/$kubuser/.kube/config sudo helm install --repo https://edgek8s.blob.core.windows.net/staging edge-crd edge-kubernetes-crd --kubeconfig=/home/$kubuser/.kube/config sudo helm install --repo https://edgek8s.blob.core.windows.net/staging edge edge-kubernetes --namespace iotedge --kubeconfig=/home/$kubuser/.kube/config --set provisioning.deviceConnectionString=$constr echo Done! you can see the status by running: echo kubectl get pods -n iotedge --kubeconfig=/home/$kubuser/.kube/config k9s -n iotedge --kubeconfig=/home/$kubuser/.kube/config