(Justin)

Tech nerd from Sweden

Matrix: @jlh:jlh.name

  • 7 Posts
  • 2.04K Comments
Joined 2 年前
cake
Cake day: 2023年6月10日

help-circle






  • Then you’d probably swing your sword around and get it stuck in the wall and die. Rapiers and polearms are probably better in tight spaces against unarmored opponents. Polearms are just always better in general if you don’t have sword training.

    It’s like comparing a shotgun to a AR-15 pistol. Sure, the pistol is more compact, has more power, and will put more rounds downrange, but they’re all going to be in the ceiling if you haven’t trained with it. The shotgun will be more effective.





    1. Yes.
    2. Yes, and if you want custom configuration, you can include your configuration in-line in the same file that installs the http server and sets up systemd for it. Or you can even write your own module that drops configuration files in the same file.
    3. Home-manager modules are modules that run stuff exclusively in ~, doing things like configuring browsers or dotfiles. As opposed to NixOS modules which configure system-level daemons.








  • For question 1: You can have multiple resource objects in a single file, each resource object just needs to be separated by ---. The small resource definitions help keep things organized when you’re working with dozens of precisely configured services. It’s a lot more readable than the other solutions out there.

    For question 2, unfortunately Docker Compose is much more common than Kubernetes. There are definitely some apps that provide kubernetes documentation, especially Kubernetes operators and enterprise stuff, but Docker-Compose definitely has bigger market share for self-hosted apps. You’ll have to get experienced with turning a docker compose example into deployment+service+pvc.

    Kubernetes does take a lot of the headaches out of managing self-hosted clusters though. The self-healing, smart networking, and batteries-included operators for reverse-proxy/database/ACME all save so much hassle and maintenance. Definitely Install ingress-nginx, cert-manager, ArgoCD, and CNPG (in order of difficulty).

    Try to write yaml resources yourself instead of fiddling with Helm values.yaml. Usually the developer experience is MUCH nicer.

    Feel free to take inspiration/copy from my 500+ container cluster: http://codeberg.org/jlh/h5b/src/branch/main/argo

    In my repo, custom_applications are directories with hand-written/copy-pasted yaml files auto-synced via ArgoCD Operator, while external_applications are helm installations, managed via ArgoCD Operator Applications.