k8s-cleaner
shell-operator
k8s-cleaner | shell-operator | |
---|---|---|
2 | 10 | |
156 | 2,256 | |
- | 1.7% | |
8.7 | 8.3 | |
23 days ago | 6 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.
k8s-cleaner
-
A controller to identify unused and unhealthy Kubernetes resources
As Kubernetes deployments grow in complexity and scale, maintaining a clean and efficient cluster becomes increasingly important. While Kubernetes provides tools for resource management, such as garbage collection, it can still be challenging to identify and remove unused or stale resources manually. This is where k8s-cleaner comes in.
-
Eliminate Stale Kubernetes Resources with Cleaner
So I created a Cleaner: https://github.com/gianlucam76/k8s-cleaner controller to automate the removal of stale Kubernetes resources.
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?
metacontroller - Writing kubernetes controllers can be simple
github-actions-runner-operator - K8S operator for scheduling github actions runner pods
spark-operator - Kubernetes operator for managing the lifecycle of Apache Spark applications on Kubernetes.
mysql-operator - Asynchronous MySQL Replication on Kubernetes using Percona Server and Openark's Orchestrator.
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
keepalived-operator - An operator to manage VIPs backed by keepalived
subdomain-mapper-operator - This operator patches an ingress to automatically create subdomains for services based on annotations.
bank-vaults - A Vault swiss-army knife: A CLI tool to init, unseal and configure Vault (auth methods, secret engines).