03-19-2019, 10:14 PM
Kubernetes Setup Using Ansible and Vagrant
<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/kubernetes-setup-using-ansible-and-vagrant.jpg" width="1662" height="947" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/kubernetes-setup-using-ansible-and-vagrant.jpg" class="ff-og-image-inserted"></div>
<p>This blog post describes the steps required to set up a multi node Kubernetes cluster for development purposes. This setup provides a production-like cluster that can be set up on your local machine.</p>
<h3>Why do we require multi node cluster setup?</h3>
<p>Multi node Kubernetes clusters offer a production-like environment which has various advantages. Even though Minikube provides an excellent platform for getting started, it doesn’t provide the opportunity to work with multi node clusters which can help solve problems or bugs that are related to application design and architecture. For instance, Ops can reproduce an issue in a multi node cluster environment, Testers can deploy multiple versions of an application for executing test cases and verifying changes. These benefits enable teams to resolve issues faster which make them more agile.</p>
<h3>Why use Vagrant and Ansible?</h3>
<p>Vagrant is a tool that will allow us to create a virtual environment easily and it eliminates pitfalls that cause the works-on-my-machine phenomenon. It can be used with multiple providers such as Oracle VirtualBox, VMware, Docker, and so on. It allows us to create a disposable environment by making use of configuration files.</p>
<p>Ansible is an infrastructure automation engine that automates software configuration management. It is agentless and allows us to use SSH keys for connecting to remote machines. Ansible playbooks are written in yaml and offer inventory management in simple text files.</p>
<p>Prerequisites</p>
<ul>
<li>Vagrant should be installed on your machine. Installation binaries can be found <a href="https://www.vagrantup.com/downloads.html">here</a>.</li>
<li>Oracle VirtualBox can be used as a Vagrant provider or make use of similar providers as described in Vagrant’s official <a href="https://www.vagrantup.com/docs/providers/">documentation</a>.</li>
<li>Ansible should be installed in your machine. Refer to the <a href="https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html">Ansible installation guide</a> for platform-specific installation.</li>
</ul>
<p>Read more at <a href="https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-vagrant/">Kubernetes.io</a></p>
</div>
<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/kubernetes-setup-using-ansible-and-vagrant.jpg" width="1662" height="947" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/03/kubernetes-setup-using-ansible-and-vagrant.jpg" class="ff-og-image-inserted"></div>
<p>This blog post describes the steps required to set up a multi node Kubernetes cluster for development purposes. This setup provides a production-like cluster that can be set up on your local machine.</p>
<h3>Why do we require multi node cluster setup?</h3>
<p>Multi node Kubernetes clusters offer a production-like environment which has various advantages. Even though Minikube provides an excellent platform for getting started, it doesn’t provide the opportunity to work with multi node clusters which can help solve problems or bugs that are related to application design and architecture. For instance, Ops can reproduce an issue in a multi node cluster environment, Testers can deploy multiple versions of an application for executing test cases and verifying changes. These benefits enable teams to resolve issues faster which make them more agile.</p>
<h3>Why use Vagrant and Ansible?</h3>
<p>Vagrant is a tool that will allow us to create a virtual environment easily and it eliminates pitfalls that cause the works-on-my-machine phenomenon. It can be used with multiple providers such as Oracle VirtualBox, VMware, Docker, and so on. It allows us to create a disposable environment by making use of configuration files.</p>
<p>Ansible is an infrastructure automation engine that automates software configuration management. It is agentless and allows us to use SSH keys for connecting to remote machines. Ansible playbooks are written in yaml and offer inventory management in simple text files.</p>
<p>Prerequisites</p>
<ul>
<li>Vagrant should be installed on your machine. Installation binaries can be found <a href="https://www.vagrantup.com/downloads.html">here</a>.</li>
<li>Oracle VirtualBox can be used as a Vagrant provider or make use of similar providers as described in Vagrant’s official <a href="https://www.vagrantup.com/docs/providers/">documentation</a>.</li>
<li>Ansible should be installed in your machine. Refer to the <a href="https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html">Ansible installation guide</a> for platform-specific installation.</li>
</ul>
<p>Read more at <a href="https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-vagrant/">Kubernetes.io</a></p>
</div>