Quick example of running minikube on Travis CI with Kubernetes version 1.9.0
.
To read more in detail check out my guest blog post on the Travis CI blog.
To switch Kubernetes cluster versions just replace the 1.9.0
version in the .travis.yml
file.
For 1.10.0
Kubernetes example see the minikube-26-kube-1.10 branch.
Note that RBAC is not enabled on this cluster by default. To enable RBAC, you need to start Minikube with the --extra-config=apiserver.Authorization.Mode=RBAC
flag.
Starting Minikube with RBAC enabled requires the appropriate RBAC roles to be created in the kube-system
namespace, so all components work as expected. One of the possible solutions is to give the default
ServiceAccount in the kube-system
namespace the cluster-admin
permissions. For more details see the issue #1722.