Better HN
topnewbestaskshowjobs
Log inSign up

tontony

55 karma · joined Dec 1, 2022 (3y ago) · 15 submissions

Email: tontony.hn@tonyo.info
Submissions

comment 6mo ago · link · parent

That's fair; good solution.

comment 6mo ago · link · parent

Compose is great, but a couple things always created friction for me when using it for non-local setups:

* Lack of a user-friendly way of managing a Docker Compose installation on a remote host. SSH-forwarding the docker socket is an option, but needs wrappers and discipline.

* Growing beyond one host (and not switching to something like Kubernetes) would normally mean migrating to Swarm, which is its own can of worms.

* Boilerplate needed to expose your services with TLS

Uncloud [1] fixed all those issues for me and is (mostly) Compose-compatible.

[1] https://github.com/psviderski/uncloud/

3.

Library of Juggling(libraryofjuggling.com ↗)

140 points · by tontony · 9mo ago · 28 comments

comment 11mo ago · link · parent

Thanks for the detailed overview!

comment 11mo ago · link · parent

Secrets -- yes, it's being tracked here: https://github.com/psviderski/uncloud/issues/75 Compose configs are already supported and can be used to inject secrets as well, but there'll be no encryption at rest there in that case, so might not be ideal for everyone.

Regarding questions 2 and 3, the short answers are "not at the moment" and "yes, for now", here's a relevant discussion that touches on both points: https://github.com/psviderski/uncloud/discussions/94

Speaking of Swarm and your experience with it: in your opinion, is there anything that Swarm lacks or makes difficult, that tools like Uncloud could conceptually "fix"?

comment 11mo ago · link · parent

Sure, but it all boils down to trust at the end of the day. Why would you trust a third-party Debian repository (that e.g. has a different user namespace and no identity linking to GitHub) more than running something from evidently the same user from GitHub, in this specific case?

I'm not arguing that a repository is nice because versioning, signing, version yanking, etc, and I do agree that the process should be more transparent and verifiable for people who care about it.

comment 11mo ago · link · parent

> What if you want to manage multiple/distinct clusters

Uncloud supports having multiple contexts (think - clusters) in the same configuration file, or you can also use separate config files (via --uncloud-config attribute).

https://uncloud.run/docs/cli-reference/uc_ctx

comment 11mo ago · link · parent

Curious, what would be an ideal (secure) approach for you to install this (or similar) tool?

comment 11mo ago · link · parent

Nomad still has a tangible learning curve, which (in my very biased opinion) is almost non-existent with Uncloud assuming the user has already heard about Docker and Compose.

comment 11mo ago · link · parent

Uncloud is not a Kubernetes distribution and doesn't use K8s primitives (although there are of course some similarities). It's closer to Compose/Swarm in how you declare and manage your services. Which has pros and cons depending on what you need and what your (or your team's) experience with Kubernetes is.

comment 1y ago · link · parent

Totally valid approach if that works for you, the docker context feature is indeed nice.

But if we're talking about hosts that run production-like workloads, using them to perform potentially cpu-/io-intensive build processes might be undesirable. A dedicated build host and context can help mitigate this, but then you again face the challenge of transferring the built images to the production machine, that's where the unregistry approach should help.

comment 1y ago · link · parent

A few thoughts/ideas on using this in Kubernetes are discussed in this issue: https://github.com/psviderski/unregistry/issues/4; generally, should be possible with the same idea, but with some tweaking.

Also have a look at https://spegel.dev/, it's basically a daemonset running in your k8s cluster that implements a (mirror) registry using locally cached images and peer-to-peer communication.

comment 1y ago · link · parent

> What I do is host the thing on a cheap cloud server until it grows enough

Curious, do you use anything specific (like Compose) for that single-server phase?

14.

Ask HN: If not Kubernetes, what do you use to run your apps?

5 points · by tontony · 1y ago · 10 comments

15.

World Service Authority(en.wikipedia.org ↗)

1 points · by tontony · 3y ago · discuss