kubectl
robusta
Our great sponsors
kubectl | robusta | |
---|---|---|
13 | 36 | |
2,664 | 2,384 | |
1.7% | 2.6% | |
9.2 | 9.6 | |
about 15 hours ago | 7 days ago | |
Go | Python | |
Apache License 2.0 | MIT License |
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.
kubectl
-
Setting kubectl context via env var
I have read this issue, and up to now it seems not possible to change the kubectl context via an env var: https://github.com/kubernetes/kubectl/issues/1154
-
Deciding between Rust or Go for desktop applications
However, I would encourage people to take a look at what the code looks like before assuming the Go developer experience on this was positive. Bear in mind that's just the top level kubectl command and some helper functions, the subcommand definitions take up a several more files split into a few more packages. Then you're still not even done, because code that uses the parsed flags still has to redundantly check things that couldn't be enforced at the type level, something Go folks like to pretend is a good thing for some reason.
-
Recommendations on file/dir/module structure, common dependencies, and/or anti-patterns for writing CLI tool in Rust
kubectl is for sure battle tested, but it involves very Kubernetes specific implementations and is going to be too complicated for the first pointer
- Recommendations on building a simple DSL REPL?
-
Why Go and Not Rust?
> context.Background() is typically only used when one doesn’t care about the result. If you did care about the result, you should be passing the parent context to preserve the circuit breaker timeout in case the operation takes too long.
Not necessarily. You would use context.Background in a test situation. It's also commonly used for short-lived applications like a CLI invocation. You can see kubectl uses context.Background quite a lot: https://github.com/kubernetes/kubectl/search?q=context.backg...
> I think the level of pain you experience from mutable references in Rust depends on if you’re coming from an OOP or FP background. I have a FP background and so the patterns I use to build code already greatly restrict mutation. You can usually change code that updates data immutably (creating a new copy of it) with mutable code in rust because the control flow of your program already involves passing that new version back to the caller which also satisfies the borrow checker in most situations.
There has to be a better solution to needlessly copying data.
-
What's the number one annoyance that drives you crazy about Kubernetes?
Go add --no-really-all if you really want it: https://github.com/kubernetes/kubectl
-
Looking for a tutorial or a resource to write good looking CLI applications
- https://github.com/kubernetes/kubectl
-
Best examples of a Go client
I haven't looked at the code all that much, but kubectl does a heck of a lot, and you can't argue that it's not battle-tested.
-
client-go retrieve pods event
The canonical example client-go app you're most familiar with is kubectl. https://github.com/kubernetes/kubectl/blob/e69a10320e34fd2487b61927f69affbb52e4f0e1/pkg/describe/describe.go#L279 is the kubectl describe kind name... bit that deals with fetching events related the object with that kind/name.
robusta
-
Show HN: Kr8s a batteries-included Python client library for Kubernetes
To put one more option out there, we use Hikaru (https://pypi.org/project/hikaru/) in Robusta.dev (https://github.com/robusta-dev/robusta) and have been pretty happy with it. Example code below:
with Pod().read(name='thename', namespace='the-namespace') as p:
-
datadog-agent VS robusta - a user suggested alternative
2 projects | 31 May 2023
Open Source alternative based on Prometheus
-
kubevoy VS robusta - a user suggested alternative
2 projects | 31 May 2023
-
Kubernetes Tooling ranking on GitHub
I'm from the Robusta team (https://github.com/robusta-dev/robusta) which bursts upwards towards the end. Happy to answer any questions!
-
Troubleshooting k8s - your recommendations for strategies and tools.
It's no replacement for learning how things work, but we're trying to automate common troubleshooting cases with Robusta. https://github.com/robusta-dev/robusta
-
How to automate repetitive tasks in Kubernetes with runbooks
https://docs.robusta.dev/master/ https://github.com/robusta-dev/robusta
-
Most efficient way to check all containers cluster wide for missing probes?
This is the sort of thing we built Robusta for: https://github.com/robusta-dev/robusta
- Writing Operators
-
Alternative to Rancher as a multi-cluster management platform?
We don't let you scale nodes yet, but would love to discuss the use case. It's easy to do on top of our runbook engine (https://github.com/robusta-dev/robusta)
-
Why Slack’s free plan change is causing an exodus
Slacks pricing model makes sense for business workspaces, but it doesn't work well for public communities.
I run the Slack community for https://github.com/robusta-dev/robusta
We'd gladly pay, but pricing needs to be different when you have a community that is open to the public and has far, far more users than the size of your company.
What are some alternatives?
helm - The Kubernetes Package Manager
karma - Alert dashboard for Prometheus Alertmanager
chartmuseum - helm chart repository server
debug-toolkit - A modern code-injection framework for Python. Like Pyrasite but Kubernetes-aware.
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
pydantic-aioredis - A Declarative ORM for Redis using Pydantic Models and aioredis
kubernetes - Production-Grade Container Scheduling and Management
docker-swarm-tools - This repository contains useful docker-swarm-tools.
client-go - Go client for Kubernetes.
krew - 📦 Find and install kubectl plugins
star-history - The missing star history graph of GitHub repos - https://star-history.com
kubectx - Faster way to switch between clusters and namespaces in kubectl