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, 2020 in Kubernetes by Aryan
• 190 points
1,619 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, 2020 by MD
• 95,440 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
14,581 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 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,060 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, 2020 in Kubernetes by MD
• 95,440 points
2,454 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP