by fatliverfreddy on 12/16/24, 4:01 AM with 65 comments
by alpb on 12/16/24, 5:52 AM
by danpalmer on 12/16/24, 5:17 AM
by atombender on 12/16/24, 3:47 PM
For example, I'd love to be able to just do this as the whole query:
metadata.name =~ "foo%"
or maybe: .. =~ "foo%" // Any field matches
or maybe: $pod and metadata.name =~ "foo%" // Shorthand to filter by type
I think a query language for querying Kubernetes ought to start with predicate-based filtering as the foundation. Having graph operators seems like a nice addition, but maybe not the first thing people generally need?It's not quite clear who this tool is for, so maybe this is not the intended purpose?
by devops99 on 12/16/24, 6:30 AM
brew install cyphernetes
at the top of the page is an immediate turn-off.by jeremya on 12/16/24, 5:34 AM
by multani on 12/16/24, 6:58 AM
They have a Kubernetes plugin at https://hub.steampipe.io/plugins/turbot/kubernetes and there are a couple of things I really like:
* it's super easy to request multiple Kubernetes clusters transparently: define one Steampipe "connection" for each of your clusters + define an "aggregator" connection that aggregates all of them, then query the "aggregator" connection. You will get a "context" column that indicates which Kubernetes cluster the row came from. * it's relatively fast in my experience, even for large result sets. It's also possible to configure a caching mechanism inside Steampipe to speed up your queries * it also understands custom resource definitions, although you need to help Steampipe a bit (explained here: https://hub.steampipe.io/plugins/turbot/kubernetes/tables/ku...)
Last but not least: you can of course join multiple "plugins" together. I used it a couple of times to join content exposed only in GCP with content from Kubernetes, that was quite useful.
The things I don't like so much but can be lived with:
* Several columns are just exposed a plain JSON fields ; you need to get familiar with PostgreSQL JSON operators to get something useful. There's a page in Steampipe's doc to explain how to use them better. * Be familiar also with PostgreSQL's common table expressions: there are not so difficult to use but makes the SQL code much easier to read * It's SQL, so you have to know which columns you want to pick before selecting the table they come from ; not ideal from autocompletion * the Steampipe "psql" client is good, but sometimes a bit counter intuitive ; I don't have specific examples but I have the feeling it behaves slightly differently than other CLI client I used.
All in all: I think Steampipe is a cool tool to know about, for Kubernetes but also other API systems.
by jeffreyaven on 12/16/24, 9:57 PM
by omrispector on 12/16/24, 8:22 AM
by nikau on 12/16/24, 5:02 AM
by UltraSane on 12/16/24, 7:19 AM
by matanavital on 12/16/24, 9:16 AM
by gz5 on 12/16/24, 4:25 PM
adjacent but lots of experts here - independent of Cyphernetes or specific tooling, what are you doing to secure k8s api / kubectl / k8s control plane?
by solatic on 12/16/24, 4:50 AM