Getting the below error while trying to run a Jenkins pipeline for deployment on a Kubernetes cluster.

0 votes
kubectl apply -f Deployment.yaml
Error from server (NotFound): the server could not find the requested resourcehttps://github.com/Aryan-Gupta4460/JnkNew.git
Aug 26 in Kubernetes by Aryan
• 190 points
105 views

1 answer to this question.

0 votes

Hi@Aryan,

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.

answered Aug 26 by MD
• 77,940 points

Related Questions In Kubernetes

+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
9,132 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,970 points

reshown Apr 12, 2019 by Kalgi 2,774 views
0 votes
1 answer

How to connect local kubernetes minikube cluster to jenkins pipeline...?

Hi@Moonty, To connect your Minikube, you have to ...READ MORE

answered Aug 26 in Kubernetes by MD
• 77,940 points
136 views