by ok123456 · 4y ago · 0 comments
And, that covers 99.9% of cases anyway. If you want to deploy across multiple nodes run docker compose on multiple nodes and expose the nodes to each other over a vlan that is managed as part of your actual infrastructure where it has a chance of being actually documented and put into a configuration management system.
Indeed, and for a Linux user, you can already build such a system yourself quite trivially by getting an FTP account, mounting it locally with curlftpfs, and then using SVN or CVS on the mounted filesystem.
It doesn’t mean Kubernetes isn’t a useful turnkey solution, especially if it’s managed.
Then your entire engineering org just deploys things.
Need per-application network security policies? Done.
Per app IAM roles? Done.
Secrets management? Done.
Role based access control? Done.
Isolate services to different pools of machines? Done.
Per-app live-updating configuration files across your entire fleet? Done.
CPU, memory or arbitrary per-app metric based auto scaling? Done.
Want to run all this on cheap spot instances? Done.
Want path based HTTP routing within your cluster? Done.
Want an easy deployment mechanism with versioning and rollbacks? Done.
Want simple and consistent service discovery across all your servers? Done.
Want to get advanced and build custom resources to manage groups of other resources whilst taking advantage of k8s management plane in a consistent manner that just works with all the other tooling? Done.
Want to do all this fairly consistently on any cloud vendor, or even on prem? Done.
Want a large pool of candidates familiar with this stack? Done and done.
All those lead to non trivial savings, so you can actually focus on your product and not building a crappy version of Kubernetes by stringing together docker compose instances.
But yes, if you’ve got a single developer and you’re deploying by ssh-ing into a single machine and running git pull, it’s definitely overkill.
You don't. You get less complexity, actually. Even with Docker, a Docker stack in Docker swarm mode is that simpler and easier to maintain and to monitor and to update and roll back than an unexplainable and impossible to justify docker-compose up.
With Kubernetes, it can be even easier than that. Just grab a distro like Ubuntu, instal microk8s and deploy a kustomize script right out of the bat.
Are you really running away from complexity or just irrationally hating on a tool just because you're oblivious to what it provides for free?