-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable k8 if build image_version is supplied (#1400)
This is for #1363. Disable building image if image version is supplied. This is useful in the Mac where building image might not work. In this case, we use image supplied built using Linux. Also, by default use proxy for accessing Minikube cluster since Docker for Mac doesn't map ports from Minikube to host automatically.
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!/bin/bash | ||
# delete and re-install minikube ready for fluvio | ||
# this defaults to docker and assume you have have sudo access | ||
# it uses docker as default driver | ||
set -e | ||
set -x | ||
ARG1=${1:-docker} | ||
K8_VERSION=${2:-1.21.2} | ||
|
||
if [ "$(uname)" == "Darwin" ]; then | ||
EXTRA_CONFIG=--extra-config=apiserver.service-node-port-range=32700-32800 --ports=127.0.0.1:32700-32800:32700-32800 | ||
fi | ||
|
||
|
||
minikube delete | ||
minikube start --driver $ARG1 --kubernetes-version=$K8_VERSION | ||
minikube start --driver $ARG1 --kubernetes-version=$K8_VERSION $EXTRA_CONFIG | ||
# minikube start --extra-config=apiserver.v=10 |