Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Deploy a Kubernetes Clusters with Ansible Kubespray

Reading Time: 4 minutes Hello Readers! In this blog we are going to learn How to Deploy a Kubernetes Clusters with Ansible Kubespray. We will be going through 12 steps starting from setting up vagrant VMs till running the final ansible-playbook. Okay now Let’s try some kubespray and kubernetes – Prerequisites: Before deploying the Kubernetes Cluster, you must meet the following prerequisites: Kubespray Ansible Python- 3.6.0 Kubernetes Step 1: Provision the VMs using Vagrant First we need to provision the VMs using vagrant. We will be setting up total 3 VMs (Virtual Machine) with its unique IP – Ansible Node (ansmaster) – 100.0.0.1 – 2 CPU – 2 GB Memory Kubernetes Master Node (kubemaster) – 100.0.0.2 – 2 CPU – 2 GB Memory Kubernetes Worker Node (kubeworker) – 100.0.0.3 – 2 CPU – 2 GB Memory Here is the Vagrantfile Vagrant.configure("2") do |config| config.vm.define "ansmaster" do |ansmaster| ansmaster.vm.box_download_insecure = true ansmaster.vm.box = "hashicorp/bionic64" ansmaster.vm.network "private_network", ip: "192.168.59.101" ansmaster.vm.hostname = "ansmaster" Continue Reading

The post How to Deploy a Kubernetes Clusters with Ansible Kubespray appeared first on Knoldus Blogs.



This post first appeared on Knoldus Inc, please read the originial post: here

Share the post

How to Deploy a Kubernetes Clusters with Ansible Kubespray

×

Subscribe to Knoldus Inc

Get updates delivered right to your inbox!

Thank you for your subscription

×