Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set minikube node IP from MINIKUBE_NODE_IP env var #9

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion minikube/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ initOS
MINIKUBE_K8S_VER=v${MINIKUBE_K8S_VER:-1.13.3}
MINIKUBE_BOOTSTRAPPER=${MINIKUBE_BOOTSTRAPPER:-kubeadm}
if [ -z "$MINIKUBE_VM_DRIVER" ]; then
MINIKUBE_VM_DRIVER=virtualbox
MINIKUBE_VM_DRIVER=virtualbox
case "$OS" in
darwin)
MINIKUBE_VM_DRIVER=hyperkit
Expand All @@ -234,10 +234,15 @@ case "$OS" in
;;
esac

if [[ ! -z "${MINIKUBE_NODE_IP}" ]]; then
MINIKUBE_NODE_IP="--extra-config kubelet.node-ip=${MINIKUBE_NODE_IP}"
fi

runIfNot "minikube status | grep 'minikube:' | grep 'Running'" \
minikube start --bootstrapper=$MINIKUBE_BOOTSTRAPPER \
--kubernetes-version=$MINIKUBE_K8S_VER \
--vm-driver=$MINIKUBE_VM_DRIVER \
${MINIKUBE_NODE_IP} \
--disk-size=10g

runIfNot "minikube addons list | grep 'ingress' | grep 'enabled'" \
Expand Down