You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/05/16 01:17:12 UTC

[GitHub] csantanapr closed pull request #185: add kube 1.10.1 and minikube 0.26 to test matrix

csantanapr closed pull request #185: add kube 1.10.1 and minikube 0.26 to test matrix
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/185
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index 7b38ed4..7226bea 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,9 @@
 sudo: required
+dist: trusty
+
+language: go
+go:
+  - 1.9.2
 
 env:
   global:
@@ -8,6 +13,7 @@ env:
     - OW_CONTAINER_FACTORY=docker TRAVIS_KUBE_VERSION=v1.7.4 TRAVIS_MINIKUBE_VERSION=v0.23.0
     - OW_CONTAINER_FACTORY=docker TRAVIS_KUBE_VERSION=v1.8.0 TRAVIS_MINIKUBE_VERSION=v0.25.2
     - OW_CONTAINER_FACTORY=docker TRAVIS_KUBE_VERSION=v1.9.0 TRAVIS_MINIKUBE_VERSION=v0.25.2
+    - OW_CONTAINER_FACTORY=docker TRAVIS_KUBE_VERSION=v1.10.0 TRAVIS_MINIKUBE_VERSION=v0.26.1
     - OW_CONTAINER_FACTORY=kube   TRAVIS_KUBE_VERSION=v1.8.0 TRAVIS_MINIKUBE_VERSION=v0.25.2
 
 services:
diff --git a/README.md b/README.md
index d89c762..3691c92 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,7 @@ Travis CI testing.
 1.7.4 | 0.23.0 |
 1.8.0 | 0.25.2 |
 1.9.0 | 0.25.2 |
+1.10.0 | 0.26.1 |
 
 For details on setting up Minikube, see these [instructions](/docs/setting_up_minikube/README.md).
 
diff --git a/docs/setting_up_minikube/README.md b/docs/setting_up_minikube/README.md
index 805ea8c..97f21c3 100644
--- a/docs/setting_up_minikube/README.md
+++ b/docs/setting_up_minikube/README.md
@@ -21,21 +21,29 @@ asdf plugin-add kubectl
 asdf plugin-add minikube
 ```
 
-### Install asdf plugin minikube@0.23.0 and kubectl@1.7.4
+### Install asdf plugin minikube and kubectl
+For example this will setup versions 0.26.1 and 1.10.0, check the versions that are supported in the Travis matric config [../.travis.yml](../.travis.yml#L7)
 ```
-asdf install kubectl 1.7.4
-asdf global kubectl 1.7.4
-asdf install minikube 0.23.0
-asdf global minikube 0.23.0
+asdf install minikube 0.26.1
+asdf global minikube 0.26.1
+asdf install kubectl 1.10.0
+asdf global kubectl 1.10.0
 ```
 
 ## Create the minikube VM
 You will want at least 4GB of memory and 2 CPUs for Minikube to run OpenWhisk.
 If you have a larger machine, you may want to provision more (especially more memory).
 
-Start Minikube with:
+Configure minikube and persist config:
 ```
-minikube start --cpus 2 --memory 4096 --kubernetes-version=v1.7.4
+minikube config set kubernetes-version v1.10.0
+minikube config set cpus 2
+minikube config set memory 4096
+```
+
+Then start minikube VM:
+```
+minikube start
 ```
 
 ## Setup Docker network in promiscuous mode
@@ -44,8 +52,16 @@ Put the docker network in promiscuous mode.
 minikube ssh -- sudo ip link set docker0 promisc on
 ```
 
+**Tip**: Make sure to setup the Docker network after `minkube start` if you ran `minkube delete` as this configuration will be lost.
+
 Your Minikube cluster should now be ready to deploy OpenWhisk.
 
+Delete minkube VM:
+This is useful if you plan to test with a different combination of minkube and kubernetes versions.
+```
+minikube delete
+```
+
 # Troubleshooting
 
 For some combinations of Minikube and Kubernetes versions, you may need to workaround a [Minikube DNS issue](https://github.com/kubernetes/minikube/issues/2240#issuecomment-348319371). A common symptom of this issue is that the OpenWhisk couchdb pod will fail to start with the error that it is unable to resolve `github.com` when cloning the openwhisk git repo. A work around is to delete the minikube cluster, issue the command `minikube config set bootstrapper kubeadm` and then redo the `minikube start` command above.
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
index d952477..f018847 100755
--- a/tools/travis/setup.sh
+++ b/tools/travis/setup.sh
@@ -24,7 +24,9 @@ mkdir $HOME/.kube || true
 touch $HOME/.kube/config
 
 export KUBECONFIG=$HOME/.kube/config
-sudo -E /usr/local/bin/minikube start --vm-driver=none --kubernetes-version=$TRAVIS_KUBE_VERSION
+# --vm-driver=none, use host docker (avoid docker-in-docker)
+# --bootstrapper=localkube, works around https://github.com/kubernetes/minikube/issues/2704
+sudo -E /usr/local/bin/minikube start --vm-driver=none --bootstrapper=localkube --kubernetes-version=$TRAVIS_KUBE_VERSION
 
 # Wait until we have a ready node in minikube
 TIMEOUT=0


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services