1

What does the last - (following -f) mean in the following command:

kustomize build config/samples | kubectl apply -f -

catch23
  • 17,519
  • 42
  • 144
  • 217
Mike
  • 1,841
  • 2
  • 18
  • 34

1 Answers1

2

Snippet from kubectl documentation:

Apply the JSON passed into stdin to a pod

cat pod.json | kubectl apply -f -

catch23
  • 17,519
  • 42
  • 144
  • 217
  • Note that this convention of providing "-" as the file name, to represent stdin, is extremely common in Linux commands. – David M. Karr Jun 13 '22 at 17:13