Settings

Theme

Ask HN: Good examples of Kubernetes operators codebase?

19 points by Kreotiko 4 years ago · 8 comments · 1 min read


Hi all, I am playing around with the operatorsdk and I would really benefit to dig in codebases implementing it.

I am interested in good examples not necessarily using the operatorSDK for this.

decodebytes 4 years ago

Most likely prometheus-operator , very active and production utilized https://prometheus-operator.dev

  • brancz 4 years ago

    If it has to be about operator sdk then it’s not the best example because it doesn’t use operator sdk, it uses the lower level client-go directly (I’m just commenting this because the original post was asking about operator sdk). I personally prefer client-go, the operator sdk interface never really spoke to me.

    (Full disclosure, I’m the co-creator and one of the maintainers of prometheus operator)

    • KreotikoOP 4 years ago

      I am the person who asked and I was probably unclear. I mentioned the operator sdk because that is what I am trying at the moment but I am open to other approaches so this example is welcome

      • brancz 4 years ago

        In that case I recommend using client-go directly. In my admittedly limited experience with operator sdk (which was created long after the Prometheus operator), it tries to abstract a lot of things to make things like working with operator lifecycle manager (OLM) easier, but also causes a lot of (to me) unnatural interfaces and sometimes downright prevented me from doing things I needed to do because things were abstracted and hidden too much. We’ve attempted to migrate Prometheus operator several times but never successfully.

nserrino 4 years ago

We use an operator to deploy Pixie: https://github.com/pixie-io/pixie/tree/main/src/operator https://github.com/pixie-io/pixie/tree/main/k8s/operator

marcc 4 years ago

SchemaHero (https://github.com/schemahero/schemahero) is an operator that was bootstrapped with Kubebuilder, updated to new API versions, and isn't too complex to look at the code.

fhaldridge7 4 years ago

I can recommend logging-operator https://github.com/banzaicloud/logging-operator/. It's the default logging solution for Rancher.

uaas 4 years ago

Prometheus-operator is great indeed. If you like the video format, you might like this one from one of the Civo engineers, Alex: https://m.youtube.com/watch?v=08O9eLJGQRM

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection