forked from nuclio/nuclio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from valentin-carl/mpga-development-28
feat: Set up nuclio in kubernetes (#28)
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |