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.
My personal blog about Linux, opensource applications and related technologies.
Showing posts with label vagrant. Show all posts
Showing posts with label vagrant. Show all posts
2017-11-02
2017-10-24
Create Windows image using Packer and Ansible and then run it in Vagrant (libvirt)
I saw many Packer templates which are used to build the Windows images on Github. Almost all of them are using PowerShell scripts or DOS-style batch files. Ansible can use WinRM to manage Windows for some time - therefore I decided to use it also with Packer when building the images. Because of the bug it was not possible to use Ansible 2.3 (or older) with Packer + WinRM.
The latest Ansible 2.4 is working fine with Packer + Qemu + WinRM when you want to create the Windows images: https://www.packer.io/docs/provisioners/ansible.html#winrm-communicator


The latest Ansible 2.4 is working fine with Packer + Qemu + WinRM when you want to create the Windows images: https://www.packer.io/docs/provisioners/ansible.html#winrm-communicator

