DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Making a Multi-Master Kubernetes (Ansible Playbook)

Making a Multi-Master Kubernetes (Ansible Playbook)

Try this Ansible playbook to create a highly available, secure Kubernetes cluster on Exoscale.

Philipp Strube user avatar by
Philipp Strube
·
Oct. 14, 16 · Tutorial
Like (1)
Save
Tweet
Share
6.64K Views

Join the DZone community and get the full member experience.

Join For Free

At CoreOS fest Berlin earlier this year, we shared a quick and easy way to setup a Kubernetes cluster on Exoscale. Kubernetes is getting a lot of buzz and attention and rightfully so. Especially with the recent 1.4 release, Kubernetes has reached a milestone where it both makes it easy to get your containers up and keep them running while also providing enough flexibility to adapt to many different application types and workloads.

But while people liked the idea of a quick and easy way to bootstrap a cluster, feedback was also very clear that getting Kubernetes production ready is still a complex challenge. And admittedly, the original playbook setup a cluster that was great for testing Kubernetes or development purposes, but it wasn't quite ready for running production workloads.

Making Kubernetes production ready, first and foremost, requires deploying Etcd and the components that implement the Kubernetes API in a highly available setup. This means clustering etcd and configuring the kube-apiserver, kube-scheduler, and kube-controller-manager for leader election. Additionally, you need to make sure all communication is encrypted and authenticated with certificates, set up firewall rules, ensure security updates for your operating system and the list continues.

At dotGo in Paris, we introduced our new Ansible playbook for multi-master Kubernetes clusters that does just that for you.

Running the playbook gives you a highly available Kubernetes cluster on top of Exoscale. The masters run two Etcd clusters, one for Flannel and one for Kubernetes and also kube-apiserver, kube-scheduler and kube-controller-manager. The master nodes are pets, but the worker nodes are cattle. By default, you get three masters and three workers. But you can add or even remove worker nodes to build a cluster that meets your requirements.

Now, we’re not the kind of people that release something and claim it’s production ready a day later. But we believe this playbook has all the right ingredients and is ready for you to take it through its paces.

To give it a try, share your feedback or maybe even help improve the playbook head over to GitHub and file issues or send us some pull requests.

Related Refcard:

Kubernetes Essentials

Kubernetes clustering Ansible (software)

Published at DZone with permission of , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How To Create and Edit Excel XLSX Documents in Java
  • Key Considerations When Implementing Virtual Kubernetes Clusters
  • Load Balancing Pattern
  • Distributed SQL: An Alternative to Database Sharding

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: