TL;DR The kubectl is used to run from outside of the kubernetes cluster.
This post will show how to use kubectl from within the cluster which can be run from a job, pod, deployment etc. The solution includes the following requirements explained in the post:
1. Create a kubectl image with:
…