Updating minikube version
Update minikube version to 1.8.2
Update kubernetes version to 1.17.3
Installing conntrack
Added MINIKUBE_DEBUG="--alsologtostderr --v=5"  commented out by default
removed the "--extra-config=apiserver.authorization-mode=RBAC" flag as it no longer needed in kubernetes 1.17 and up
#!/bin/bash
+
+
+export PS4='\e[36m+ ${FUNCNAME:-main}@${BASH_SOURCE}:${LINENO} \e[0m'
set -e # exit immediately when a command fails
set -o pipefail # only exit with zero if all commands of the pipeline exit successfully
set -u # error on unset variables
@@ -9,10 +12,13 @@ set -x # print each command before executing it
# https://github.com/jaegertracing/jaeger-operator/blob/master/.travis/setupMinikube.sh
# socat is needed for port forwarding
-sudo apt-get update && sudo apt-get install socat
+sudo apt-get update && sudo apt-get install socat && sudo apt-get install conntrack
+
+MINIKUBE_DEBUG=""
+#MINIKUBE_DEBUG="--alsologtostderr --v=5"
+export MINIKUBE_VERSION=v1.8.2
+export KUBERNETES_VERSION=v1.17.3
-export MINIKUBE_VERSION=v1.5.1
-export KUBERNETES_VERSION=v1.16.2
sudo mount --make-rshared /
sudo mount --make-rshared /proc
@@ -34,16 +40,12 @@ minikube config set WantNoneDriverWarning false
minikube config set vm-driver none
minikube version
-sudo minikube start --kubernetes-version=$KUBERNETES_VERSION --extra-config=apiserver.authorization-mode=RBAC
+sudo minikube start --kubernetes-version=$KUBERNETES_VERSION ${MINIKUBE_DEBUG}
sudo chown -R travis: /home/travis/.minikube/
minikube update-context || true
-# waiting for node(s) to be ready
-JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
-
-# waiting for kube-addon-manager to be ready
-JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lcomponent=kube-addon-manager -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-addon-manager to be available"; kubectl get pods --all-namespaces; done
-
-# waiting for kube-dns to be ready
+# Following is just to demo that the kubernetes cluster works.
+kubectl cluster-info
+# Wait for kube-dns to be ready.
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lk8s-app=kube-dns -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-dns to be available"; kubectl get pods --all-namespaces; done
