4 ms·
Cyphernetes seems capable of graph/relational logic. The example on the homepage is literally "give me deployments with more than 2 replicas with pods that are
by weddpros 2y ago
Cyphernetes seems capable of graph/relational logic.
The example on the homepage is literally "give me deployments with more than 2 replicas with pods that are not Running, and give me the IP address of the service they're serving"...
Any idea how to do that with kubectl | jq? Their solution seems elegant to me.
- nikau 2y agoCan just use normal jq select filters unless I'm missing something?
- weddpros 2y agothe thing is you'd need 3 k8s queries, one for pods, one for deployments, one for services, then link all of them, and filter... jq helps with the filtering, kubectl can query, but you still need to join the 3 resources to answer the query...
- nikau 2y agoRight, so doable just a bit more effort to do 3 queries to pipes or tmp files
- astonex 2y agoThis is Dropbox comment all over again. Lots of things are doable with more manual effort.
- nikau 2y agoTrue - its a trade off like everything in life - do I want to learn yet another language syntax, or master one like jq. Personally I feel like mastering jq has more value across a lot more things.