Git Product home page Git Product logo

travis-minikube's Introduction

Build Status

travis-minikube

Quick example of running minikube on Travis CI with Kubernetes version 1.18.1. 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.18.1 version in the .travis.yml file.

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.

travis-minikube's People

Contributors

apupier avatar lilic avatar prateekpandey14 avatar xmudrii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

travis-minikube's Issues

Migrate from the localkube to kubeadm

Hi all.

As I know, minikube want to use the kubeadm as a install tools rather then the localkube and we can fin d message after we use the localkube as the bootstrapper.

WARNING: The localkube bootstrapper is now deprecated and support for it
will be removed in a future release. Please consider switching to the kubeadm bootstrapper, which
is intended to replace the localkube bootstrapper. To disable this message, run

I have tried to do that for kubernetes v.1.10.0 and I will send a PR #15 to let you see the modification.
Thanks.

panic: no-vm not supported

tried to do this on my localhost but it fails

Starting local Kubernetes v1.8.0 cluster...
Starting VM...
panic: no-vm not supported

goroutine 1 [running]:

any idea how to fix that?
thanks in advance!

Thanks for the code/snippet!

Banged my head trying to get travis wired up for kubernetes to work with our new gradle-kubernetes-plugin. I don't even want to say, or post, what I was doing but the config I had setup was ridiculous and this is infinitely simpler. In either event ... thanks again!

Thank you

I just want to say thanks for putting this together. I was looking for minikube/travis solution to test MadcoreCLI Your script just made my day :)

Upgrade to Kubectl 1.18.0

it is unfortunately not just a matter of updating version. it seems that conntrack needs to be provided too:

X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path
The command "sudo minikube start --vm-driver=none --kubernetes-version=v1.18.0" failed and exited with 78 during .

conntrack installation steps here http://conntrack-tools.netfilter.org/manual.html#Installation
(I have not tried yet)

where could I find the .minikube dir?

hi,

I want to copy some files into minikube cluster with $HOME/.minikube/files/. However there is an error complaining about no such dir during travis build.

So where could I find this dir. Or alternatively in which way could I copy some files into minikube?

Questions about the JSONPATH code?

- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n default get pods -lapp=travis-example -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for travis-example deployment to be available"; kubectl get pods -n default; done

First and foremost, thanks for the repo example . .
I am having a hard time repurposing this for my needs.
I would like to check that certain pods and operators are able to deploy and delete successfully in my end to end testing .

I was hoping you could go line by line and breakdown the logic of each statement.
Particularly the first two lines I don't understand.

  1. '{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'

  2. until kubectl -n default get pods -lapp=travis-example -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True";

Questions like these come to mind: the flag -lapp this is a selector right? and what does "$JSONPATH" 2>&1 | grep -q "Ready=True"; mean (2>&1?)?Where did the variable &1 come from?

Thanks
Daniel Moore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.