I have checked your Jenkins file in GitHub. I think the problem is with your pipeline script, not Kubernetes. So you need to troubleshoot. Remove the Kubectl commands from your script and try to run your script first. If it works, then try to deploy your deployment to your Kubernetes master node manually.