I’m building a system that stands up and takes down pods/deployments frequently. These
kubectl run calls are subject to the current context which is set by the prior
kubectl config use-context <ctx>. Please correct me if that is incorrect.
My new pods are stood up concurrently due to external factors. How can I ensure each
kubectl run uses the correct context? Do I have to use a lock, such as
LOCK ; kubectl config use-context ; kubectl run ; UNLOCK or is there a smarter way such as
kubectl run --with-context <ctx> ...?