Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/2f9cbfaad0c9ebd5b01523e7825c65cf to your computer and use it in GitHub Desktop.
Save velotiotech/2f9cbfaad0c9ebd5b01523e7825c65cf to your computer and use it in GitHub Desktop.
$ kubectl exec -it $(kubectl get pods --selector app=csi-hostpathplugin \
-o jsonpath='{.items[*].metadata.name}') -c hostpath /bin/sh
/ # find /tmp -name my-test
/tmp/057485ab-c714-11e8-bb16-000c2967769a/my-test
/ # exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment