-
Have a cluster (microk8s is a nice super fast way to start locally)
-
Launch a minimum pod and connect to its shell:
kubectl run -i --tty busybox --image=busybox --restart=Never -- sh
- Create a sample file inside of the pod:
mkdir /example && echo '{ "id": "junx8nvi8visygivlxvgilx" }' > /example/data.json
- Run:
yarn
node index.js
- Should get result:
Exited with status: Success
Retrieved instance ID from pod: junx8nvi8visygivlxvgilx