Showing posts with label kubernetes. Show all posts
Showing posts with label kubernetes. Show all posts

2018-04-20

Running Kubernetes on AppVeyor with minikube

When I was playing with Kubernetes I made a lot of notes how to do things. Then I realized it may be handy to put those notes to Github and let them go through some CI to be sure they are correct.

I was looking for some way how to run Kubernetes via minikube in Travis CI and there are "some" ways: https://blog.travis-ci.com/2017-10-26-running-kubernetes-on-travis-ci-with-minikube

Unfortunately I didn't have much luck with latest minikube (0.26) and latest Kubernetes (1.10) when I tried to make it working on Travis.
It looks like there are some problems with running the latest stuff on Travis and people are using older Kubernetes/minikube versions (like here: https://github.com/LiliC/travis-minikube/blob/master/.travis.yml).

Instead of troubleshoot Travis CI - I decided to use AppVeyor.

2018-04-18

Create Kubernetes Multinode Cluster using multiple VMs

If you need to run single node Kubernetes cluster for testing then minikube is your choice.

But sometimes you need to run tests on a multinode cluster running on multiple VMs.

There are many ways how to install Kubernetes Multinode Cluster but I choose these projects kubeadm and kubespray.


  • Kubespray is handy for enterprise installations where HA is a must, but it can be used for standard testing if you have Ansible installed.
  • Kubeadm is official tool for Kubernetes installation, but it needs more love when you want to use it in enterprise to configure HA.

2017-11-02

Setup production ready Kubernetes cluster using Kubespray and Vagrant running on the libvirt KVMs

If you are creating some Docker containers - sooner or later you will work with Kubernetes to automate deploying, scaling, and operating application containers. If you need simply run Kuberenetes only there is is project called Minikube which can help you to setup single VM with Kubernetes. This is probably the best way how you can start with it.

Sometimes it's handy to have "production ready" Kubernetes cluster running on your laptop contains multiple VMs (like in real production environment) - that's where you need to look around and search for another solution.

After trying few tools I decided to use Kubespray. It's a tool for deploying a production ready Kubernetes cluster on AWS, GCE, Azure, OpenStack or Baremetal.

I'm fine to create few virtual machines (using Vagrant) on my laptop and install Kubernetes there.


I'll use 3 VMs, all 3 have etcd installed, all 3 are nodes (running pods), 2 of them run master components:


(you can use more VMs with more advanced setup: https://github.com/kubespray/kubespray-cli)

Let's see how you can do it in Fedora 26 using Vagrant + libvirt + Kubespray + Kubespray-cli.