metacontroller
shell-operator
metacontroller | shell-operator | |
---|---|---|
16 | 10 | |
887 | 2,467 | |
1.4% | 1.0% | |
8.3 | 8.6 | |
24 days ago | 4 days ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
metacontroller
- MetaController: Writing Kubernetes controllers can be simple
- What Is A Kubernetes Operator?
-
Why is Kubernetes adoption so hard?
It worth adopt proper controller development with something like Metacontroller, Kopf or Java Operator SDK.
- What is your approach to adding custom labels to a pod in a deployment that's managed by a helm chart?
-
is there a way to set expiry date for k8s rbac setting?
There are many frameworks, like the Operator Framework (https://operatorframework.io/) to the MetaController (https://github.com/metacontroller/metacontroller) to KubeBuilder(https://github.com/kubernetes-sigs/kubebuilder) to the Kubernetes Operator Framework (kopf, https://kopf.readthedocs.io/en/stable/), among others.
-
Is there a tutorial on how to write an Operator in Go?
You might like a little alternative to writing your own in the first instance:) take a look at https://metacontroller.github.io/metacontroller/
-
Writing an Operator from scratch
Codegen is not magic, but if you want to make it simple stupid, supportable and prod-usable I'd go for metacontroller. There's not much magic to it - just common admission/validation webhooks propagated to your controller implementation, alongside the simplest possible reconciliation cycle. We had adopted Knative driven metacontrollers and it's a pretty solid approach.
-
For what should I take a look?
https://github.com/metacontroller/metacontroller - Sounds cool! I will look into it.
-
Dynamic Mutating Pod Admission Controller?
When I need a quick mutating controller, I like to use MetaController, which makes rapid prototyping really easy: https://metacontroller.github.io/metacontroller/
-
Best option to write a CRD today?
If you are more into lightweight and common use cases, look at metacontroller or the shell-operator.
shell-operator
-
How to create a watch over namespaces?
Maybe, the Shell operator is a good tool for that?
-
Is there a way to execute script after a crash?
Shell-operator to parse logs and make action after the pod crash.
-
Cert Manager - Get it to do something on renewal, such as call webhook or fire up a container
Argo workflow can trigger from k8s objects but may be a bit more than you need, shell-operator may be good enough https://github.com/flant/shell-operator for a quick win
-
Automatically create subdomains for services similar to Vercel Preview
I used https://github.com/flant/shell-operator to write a simple Kubernetes operator that automatically creates subdomains for your services by patching an existing ingress.
- Run a pod in a namespace without having access to it's secrets?
-
Best option to write a CRD today?
If you are more into lightweight and common use cases, look at metacontroller or the shell-operator.
-
How long does it take to learn go and program a K8s operator?
Believe it or not, you can write a Kubernetes operator using simple shell scripts: https://github.com/flant/shell-operator
-
LoadBalancer type service on bare-metal
You could use something like shell operator, metacontroller, or operator-sdk to run a command against your load balancer's API whenever a LoadBalancer service is created.
-
looking for a Kubernetes controller watching logs and run commands / restarting pods
https://github.com/flant/shell-operator should get you quite far but this sounds like the process should just shut itself down when that case is hit...
-
shell-operator reaches its v1.0.0 release: hooks without kubectl
shell-operator is already used in KubeSphere's ks-installer, Confluent's Kafka DevOps solution, Deckhouse Kubernetes platform, and more. All documentation is available in the project's GitHub repo — if you feel it might be interesting for your needs, give it a try! Any feedback is warmly welcome.
What are some alternatives?
kubectl-operator - Manage Kubernetes Operators from the command line
mysql-operator - Asynchronous MySQL Replication on Kubernetes using Percona Server and Openark's Orchestrator.
fubectl - Reduces repetitive interactions with kubectl
github-actions-runner-operator - K8S operator for scheduling github actions runner pods
keepalived-operator - An operator to manage VIPs backed by keepalived
k8s-bigip-ctlr - Repository for F5 Container Ingress Services for Kubernetes & OpenShift.
percona-xtradb-cluster-operator - Percona Operator for MySQL based on Percona XtraDB Cluster
akrobateo - Akrobateo is a simple Kubernetes operator to expose in-cluster LoadBalancer services as node hostPorts using DaemonSets.
minikube - Run Kubernetes locally
subdomain-mapper-operator - This operator patches an ingress to automatically create subdomains for services based on annotations.