V
V
Vadim2020-12-14 21:29:39
Kubernetes
Vadim, 2020-12-14 21:29:39

Is it possible to filter the output of a kubectl command?

Hello everyone

team:

kubectl get svc -A --field-selector=spec.type=LoadBalancer


gives an error message.

is it possible to filter the output of this command by --field-selector? Without grep. In general, how can you get all the available field selectors for a service object?

all the best,
Vadim

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2020-12-15
@vitaly_il1

It seems that it is impossible - https://github.com/kubernetes/kubernetes/issues/77662 was discovered almost two years ago.
This Kubernetes is a very strange thing!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question