Re:How much can you get out of a $4 VPS?
by wkat4242 on Monday February 06, 2023 @12:36PM
(#34680973)
I don't agree, Ansible would be a much saner approach for a few dedicated boxes than k8s
[ Parent
| on HN ]
Re:How much can you get out of a $4 VPS?
by riku_iki on Monday February 06, 2023 @01:11PM
(#34681562)
What about deploying prebuilt docker image on dedicated server?
What about it? It can be easily done with Ansible. I managed a distributed infra with containers orchestrated by Ansible, worked fine.
Re:How much can you get out of a $4 VPS?
by riku_iki on Monday February 06, 2023 @04:56PM
(#34685011)
it would be much less moving/fragile parts in prod. I am not an expert in this topic, and trying to learn about different approaches.
Re:How much can you get out of a $4 VPS?
by wkat4242 on Monday February 06, 2023 @05:24PM
(#34685363)
This amazing playbook spins up a ton of dockers:
(I haven't used it in a few years, when I tried to deploy OpenStack with it, so if this is outdated, please, correct me!)
Ansible is imperative, it can work toward a static state, and that's it. If it runs into a problem it throws up its SSH connection, and cries tons of python errors, and gives up forever. Even with its inventory it's far from declarative.
k8s is a bunch of control loops that try to make progress toward their declared state. Failure is not a problem, it'll retry. It'll constantly check its own state, it has a nice API to report it, and thanks to a lot of reified concepts it's harder to have strange clashes between deployed components. (Whereas integrating multiple playbooks with Ansible is ... not trivial.)