3 ms·
I wrote Harbormaster because I needed exactly this. It's very simple and has worked extremely well for me, at home as well as in production: https://gitlab.com
by stavros 5y ago
I wrote Harbormaster because I needed exactly this. It's very simple and has worked extremely well for me, at home as well as in production:
https://gitlab.com/stavros/harbormaster https://gitlab.com/stavros/harbormaster
- guywhocodes 5y agoInteresting project, will give this a shot.
- mrweasel 5y agoNot really what I expected. I was thinking more in terms of a kubectl replacement, but this is actually pretty clever for the projects that want to run a git-ops setup. Wonderful little project, thank you.
- stavros 5y agoOh hmm, how do you use kubectl for programmatic deployments? I've used it before but it required an intermediate machine with cluster access to run kubectl on, which is less convenient than git-ops.
- mrweasel 5y agoWe just use intermediate machines/jump-hosts :-) It depends on the customer and the project. Most want git-ops, but often they also want kubectl. The overhead of having to build, instrument and manage the infrastructure to run software on a Kubernetes cluster is often a pretty big surprise for many of our customers. So in order to debug, developers still resort to kubectl to get a shell in a pod or viewing logs. This is also why I'm against Kubernetes for most projects. It require a high level of maturity in the development team to do right. When you see some one who knows what they're doing, Kubernetes is amazing. For most people however, picking something more "classic" is going to make their life much easier. This is especially in the light of what most want is just some easy way to saying: "Run this container image on those two hosts". So far the best solution I've been able to come up with is Ansible and AWX. Developers can then bump a version number in an group_vars file and click "launch" in AWX.
- stavros 5y agoAh yeah, this matches my experience 100%. Give Harbormaster a try, I think you'll like it. For me, it's exactly the simpler solution you mention.
- andrelaszlo 5y agoI was just looking into Harbormaster. Does it play well with Traefik? Seems like a good combo in theory at least. I'm already running Traefik, but haven't found a nice way to automatically upgrade and make sure docker-compose is running for all projects I'm hosting.
- stavros 5y agoHmm, I've never used Traefik with it, I use Caddy in host mode. Does Traefik autodetect the containers from the Docker socket? I might look into it because that would make automatic ingress painless. Harbormaster is basically a thin layer/manager over Compose. If Traefik works with a bunch of running containers, it'll work with Harbormaster.
- detaro 5y ago> Does Traefik autodetect the containers from the Docker socket? Yes, it can do that. you can put annotations(? tags? I forget what the docker terminology is) on containers that Traefik reads so it knows "expose port xyz on this container as https://example.com https://example.com".
- stavros 5y agoHmm very interesting, I'll need to play with that and add annotation support on Harbormaster so it works out of the box, thanks!
- andrelaszlo 5y agoThat would be really cool. I might mess around with it around Christmas. If I run into any rough edges around labels (Traefik uses labels like `traefik.enable=true` https://doc.traefik.io/traefik/reference/dynamic-configuration/docker/ https://doc.traefik.io/traefik/reference/dynamic-configurati...) I'll submit an issue or PR.
- stavros 5y ago