Search code examples
kubectlkustomize

What does - means in kubectl -f -


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

kustomize build config/samples | kubectl apply -f -


Solution

  • Snippet from kubectl documentation:

    Apply the JSON passed into stdin to a pod

    cat pod.json | kubectl apply -f -