3 ms·
You can also build a cluster on your computer if it's beefy enough by running multiple VMs. I bought a hp z820 workstation, 16 cores, 128gb for $1000 a few yea
by segmondy 7y ago
You can also build a cluster on your computer if it's beefy enough by running multiple VMs. I bought a hp z820 workstation, 16 cores, 128gb for $1000 a few years ago and that's my k8s experiment land.
- MuffinFlavored 7y agoI don’t fully understand where the line goes from “all I need is a Docker container for nginx + Postgres + Redis + my services” to “I need Kubernetes” When does one need to go from just Docker containers to container orchestration like k8s?
- Nullabillity 7y agoDo you care about availability? Do you care about rolling upgrades? Do you want to practice any of those two? Then it might be time to make the switch. Yes, Docker has Swarm Mode. And yes, it is easier to get started with than K8s. The problem is that it locks you into a lot of choices when you first spin up each (Docker) Service, that can't be changed without taking down the Service and then recreating it with the new option. Want to change how upgrades are rolled out? Too bad! Kubernetes still has a few settings like that, but since (K8s) Services are just responsible for routing traffic to separately-managed Pods, you can always fall back to rolling the upgrade manually, or doing a blue-green deployment.
- MuffinFlavored 7y agoI do blue-green deploys with Docker and I deploy the services as “app-1”, “app-2”, “app-3”, etc.
- Nullabillity 7y agoHow do you route dependencies to the correct service? If you're using a stack then you end up needing to blue-green the whole thing, if you're not then you still need to blue-green the whole dependent subset of the dependency graph. And for anything exposed outside of the swarm you'd need to use some reverse proxy, since only one service (in the whole swarm) can bind a port at any one time.
- MuffinFlavored 7y ago> How do you route dependencies to the correct service? Reload the nginx config with proxy_pass switch from blue -> green or green -> blue.
- imtringued 7y agoAs soon as you want load balancing for high availability but I personally am not a fan of Kubernetes.
- MuffinFlavored 7y agoWhat's an alternative?