Skip to content

Commit

Permalink
Merge pull request #30 from valentin-carl/mpga-development-28
Browse files Browse the repository at this point in the history
feat: Set up nuclio in kubernetes (#28)
  • Loading branch information
KonsumGandalf authored Jan 4, 2024
2 parents 56ba63c + e925436 commit cde5f76
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions profaastinate/deployment/setup-minikube.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cde5f76

Please sign in to comment.