by arinlen · 4y ago · 0 comments
How do you expect to deploy services in a cluster of multiple nodes communicating over a private software-defined network, then?
Sure, you may have a few properties in your k8s yaml that change from AWS vs Google vs Azure vs other k8s hosts. That's not something that takes more than a debugging session to get right. That's HUUUGE progress.
"lost" is too strong of a word. To me Docker swarm mode still holds the upper hand in terms of deployment ease and simplicity.
If anyone just wants to bolt together a couple of nodes without much concern regarding performance then Docker swarm mode is perhaps the best option out there at the moment.
However, this is changing very fast. Ubuntu now ships with microk8s which just works and outperforms Docker swarm mode.
Perhaps Docker swarm's worst enemy is how the project was managed and promoted. They had a tool to trivially setup a cluster of nodes with close to zero challenge, but somehow Kubernetes managed to be pushed as the only option.
there u go. As for SDN, why do u even need that? Some simple scripts that manage your server count and their configurations over ssh is all u need.
Do you honestly think this sort of thing, hand-waving included, is a better alternative to
$ kubectl apply -k <kustomize script>
I mean, what are your plans to react to one of your serviceX crapping out? How do you know? How do you recover? How do you roll back? Do you expect to throw more of your ad hoc shell scripts to the mix?
Your example is as good as presenting your deployment strategy as
$ load ""
I dont do rollbacks. If you deploy code that bugs out, you already failed. Because clearly the coders & reviewers did NOT understand the code. Proper testing helps also. And if doom day comes, just deploy a previous commit. It's pretty much the same as what u do with kubernetes. That being said. Kubernetes is indeed much easier for this.
It all comes down to: "do you actually know what you are doing?". If you know what you are doing, all these problems dont happen. If you feel it's important to be able to spin up new servers from scratch every time you deploy. i guess kubernetes is great for that. it's not for me.
As for being able to know what is happening, i do understand that can be impossible sometimes in large companies. Too many developers, too much code. Still, it shouldnt be used as an execuse for breaking the live servers.
Software fails in unforeseen ways, as the goal is for it to not fail but fails anyway. I'm not sure what point you tried to make
> Mostly, they all fail or none of them fail.
No, not really. There is a reason why one of the very basic deployment techniques is to add health checks for each and every service, run a blue-green deployment, and only switch to the new deployment when each and every single health check points to a successful deployment.
The pseudo-code example fails to even do the most basic checks.
Hell, even Ansible supports those.
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.