3 ms·
There is, you create a load balancer, an autoscaling group, put an ubuntu image in it, set the userdata to install docker and docker-compose up your desired co
by Spivak 3y ago
There is, you create a load balancer, an autoscaling group, put an ubuntu image in it, set the userdata to install docker and docker-compose up your desired containers.
* Instance refresh to deploy new images.
* Every so often update your AMI to patch.
* Create an RDS database and hook the instances up to that if you need such things.
It's really hard to get more boring but works than this. It can be set up in a few hundred lines of terraform. I promise the code for your entire AWS account will be less than just the k8s YAML.
- secondcoming 3y agoVM images aren't cool enough! We do this but create custom images that have all their requirements installed via ansible. Unfortunately there's now a push to move to GKE instead of GCE, for no real reason.
- turtlebits 3y agoWhat happens when all your services won't fit on a single box, or you need X more of a specific service?
- Draiken 3y agoYou create a new instance and run the same setup. If your workload is extremely variable, something like k8s with auto-scaling makes sense. But a lot of applications (maybe the majority?) have very predictable loads and you don't always need new services. When you're at the size of large corps with hundreds/thousands of services, then k8s is amazing. If you're not even close to that number, it's very likely premature optimization.