Fedora CoreOS is a lightweight, secure operating system optimized for running containerized workloads. A YAML document is all you need to describe the workload you’d like to run on a Fedora CoreOS server. By Nathan Smith @fedoramagazine.
This is wonderful for a single server, but how would you describe a fleet of cooperating Fedora CoreOS servers? For example, what if you wanted a set of servers running load balancers, others running a database cluster and others running a web application? How can you get them all configured and provisioned?
The main parts of this article:
- Getting started
- Configuring Terraform
- Updates and immutability
- Using variables
- Leveraging the dependency graph
- Web server configuration
- Load balancer configuration
- Clean up
The load balancer will is a basic HAProxy load balancer that forwards to each server. Code for this tutorial can be found at this GitHub repository. Feel free to play with examples and contribute more if you find something you’d love to share with the world. Good read!
[Read More]