Comma in kubectl used as a pipe

7/17/2018

Have you seen a comma in a kubectl command?

Like the following command:

kubectl get deployments,ing -n my-system

Is it like a pipe grap or?

-- Chris G.
kubernetes

1 Answer

7/17/2018

It is just a separator between k8s resources, that you would like to do something with (get/describe/etc...). Your command will output the list of Ingress resources next to the list of Deployments

-- Konstantin Vustin
Source: StackOverflow