From 33830d84b0bba8e7ef824684ba3d75a9c7fc4797 Mon Sep 17 00:00:00 2001 From: konsumgandalf Date: Thu, 4 Jan 2024 21:33:41 +0100 Subject: [PATCH 1/2] build(profaastinate): minikube Add setup script to make nuclio run on minikube in kubernetes --- .../connect-dashboard-docker.sh} | 0 profaastinate/{ => deployment}/docker-compose.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename profaastinate/{connect-dashboard.sh => deployment/connect-dashboard-docker.sh} (100%) rename profaastinate/{ => deployment}/docker-compose.yml (100%) diff --git a/profaastinate/connect-dashboard.sh b/profaastinate/deployment/connect-dashboard-docker.sh similarity index 100% rename from profaastinate/connect-dashboard.sh rename to profaastinate/deployment/connect-dashboard-docker.sh diff --git a/profaastinate/docker-compose.yml b/profaastinate/deployment/docker-compose.yml similarity index 100% rename from profaastinate/docker-compose.yml rename to profaastinate/deployment/docker-compose.yml From e9254364a48e8db526d6ef043087ddbd72664b7b Mon Sep 17 00:00:00 2001 From: konsumgandalf Date: Thu, 4 Jan 2024 21:33:45 +0100 Subject: [PATCH 2/2] build(profaastinate): minikube Add setup script to make nuclio run on minikube in kubernetes --- profaastinate/deployment/setup-minikube.sh | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 profaastinate/deployment/setup-minikube.sh diff --git a/profaastinate/deployment/setup-minikube.sh b/profaastinate/deployment/setup-minikube.sh new file mode 100644 index 0000000000..bb53a7fb2d --- /dev/null +++ b/profaastinate/deployment/setup-minikube.sh @@ -0,0 +1,23 @@ +# Install Docker, Helm, kubectl, and Minikube via Homebrew +brew install docker helm kubectl minikube + +# Start Minikube +minikube start + +# Enable Minikube registry addon +minikube addons enable registry + +# Create Nuclio Space +minikube kubectl -- create namespace nuclio + +#Add nuclio to helm repo charts +helm repo add nuclio https://nuclio.github.io/nuclio/charts + +#Deploy nuclio to the cluster +helm --namespace nuclio install nuclio nuclio/nuclio + +# Run a Docker container to expose Minikube's registry +docker run -d --rm --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(minikube ip):5000" + +# Forward the Nuclio dashboard port +kubectl -n nuclio port-forward $(kubectl get pods -n nuclio -l nuclio.io/app=dashboard -o jsonpath='{.items[0].metadata.name}') 8070:8070 \ No newline at end of file