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,870 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,460 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
15,476 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,396 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,460 points
2,938 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