Live data from Hacker News

GitOpper: GitOps Without Kubernetes

github.com

11–20 of 51 posts

Re: GitOpper: GitOps Without Kubernetes

#11

It's not clear to me what Kubernetes has to do with this project at all. GitOps isn't really synonymous with Kubernetes anyway, so this comes across as throwing the word Kubernetes into something for recognition potentially? But mentioning Kubernetes and conflating GitOps with Kubernetes has me more confused on what this actually solves for me. Seems like the ArgoCD of non-containerized deployments. Which, ArgoCD has…

The term is pretty synonymous with Kubernetes since it was coined in a Kubernetes context: https://web.archive.org/web/20200104172859/https://www.weave...

Re: GitOpper: GitOps Without Kubernetes

#12
One of my favorite GitOps tricks is adding a post-recieve.hook with the contents:

    #!/bin/bash
    
    echo -e "\e[1;31mUpdating worktree and fetching remotes\e[m"
    git --git-dir="$GIT_DIR" --work-tree="$GIT_DIR/.." reset --hard
    git --git-dir="$GIT_DIR" fetch origin master
    while read oldref newref refname; do
        echo -e "\e[1;32mPushed ${refname##refs/heads/}\t${oldref::7} -> ${newref::7}\e[m"
    done
    
    echo -e "\e[1;31mRestarting service\e[m"
    # Run whatever command is needed to restart the service
So that I can Heroku-style `git push` to my server (an ssh remote named "deploy") in order to deploy code!

Re: GitOpper: GitOps Without Kubernetes

#13
Glad to see something like this, if only to point out that even without containers and Kubernetes, a proper deployment tool is a lot more complex than whatever shell script or Makefile you cooked up on your own. Error handling, timeouts, deployment state management, rollback logic, authentication, and a pause feature are the irreducible complexity of a robust deployment method.

Re: GitOpper: GitOps Without Kubernetes

#14
post #11

It's not clear to me what Kubernetes has to do with this project at all. GitOps isn't really synonymous with Kubernetes anyway, so this comes across as throwing the word Kubernetes into something for recognition potentially? But mentioning Kubernetes and conflating GitOps with Kubernetes has me more confused on what this actually solves for me. Seems like the ArgoCD of non-containerized deployments. Which, ArgoCD has…

The term is pretty synonymous with Kubernetes since it was coined in a Kubernetes context: https://web.archive.org/web/20200104172859/https://www.weave...

A Kubernetes tool coined the term but it’s always been about using git to store your manifests for your infrastructure, with some method of synchronization between the current state and what is in the git repo. With that in mind, it makes no sense to call them synonymous, GitOps transcends the concept of a particular tool or ecosystem.

Re: GitOpper: GitOps Without Kubernetes

#15
post #11

It's not clear to me what Kubernetes has to do with this project at all. GitOps isn't really synonymous with Kubernetes anyway, so this comes across as throwing the word Kubernetes into something for recognition potentially? But mentioning Kubernetes and conflating GitOps with Kubernetes has me more confused on what this actually solves for me. Seems like the ArgoCD of non-containerized deployments. Which, ArgoCD has…

The term is pretty synonymous with Kubernetes since it was coined in a Kubernetes context: https://web.archive.org/web/20200104172859/https://www.weave...

Regardless of the term used, GitOps has been a thing longer than Kubernetes has existed.

Re: GitOpper: GitOps Without Kubernetes

#17
post #7

If you use nixos there's also https://github.com/nlewo/comin

Is this named from the overweight cat meme?

No, it has been initially developed to manage a "COMmunity INfrastructure" and it sounds like the word "coming". I didn't know this meme but it's a nice coincidence because this infrastructure is actually a kind of "CHATONS" [1] (kitten in french)! Thx for the ref which could be useful for a future logo!

[1] https://www.chatons.org/en

Re: GitOpper: GitOps Without Kubernetes

#19

If you use nixos there's also https://github.com/nlewo/comin

This is interesting - maybe it's time I use flakes...

If you want a basic version of this you can just use the built-in

  system.autoUpgrade = {
    enable = true;
    flake = "github:you/dotfiles";
  };
Post reply on HN