It's hard to tell without having a look at your app-deployment.yml, but my guess is : It seems that you have a step in your deployment to access swagger endpoint, but at that point the pod is not alive yet, so that's why it gives a 404. You may want to check kubernetes.io/docs/tasks/configure...
I'm a Full Stack Software Engineer during the day and a technology instructor at night. I love providing optimal solutions for common problems using code as a main tool.
I'm a Full Stack Software Engineer during the day and a technology instructor at night. I love providing optimal solutions for common problems using code as a main tool.
I'll tell you what the problem really is:
This is my local enviroment:
Ubuntu server
I have the following installed on the server:
Docker
Minikube and kubectl http://172.27.136.180:30000
Jenkins http://172.27.136.180:8080
I made kubectl and minikube installation following the official documentation: Kubernetes documentation . The same with Jenkins
The idea is to create a CI and cd with a Jenkins pipeline. You can see the project structure here, in Kubernetes setup pipeline you can see that I execute sh("kubectl get nodes -v=8") for a simple test, I got the same error: Error from server (NotFound): the server could not find the requested resource
It's hard to tell without having a look at your app-deployment.yml, but my guess is : It seems that you have a step in your deployment to access swagger endpoint, but at that point the pod is not alive yet, so that's why it gives a 404. You may want to check kubernetes.io/docs/tasks/configure...
Here an example of my app-deployment.yml
I apreciate your help :(
I still don't see swagger here. Can you maybe search in that directory for "swagger" to see where this
comes from ?
I'll tell you what the problem really is:
This is my local enviroment:
http://172.27.136.180:30000
http://172.27.136.180:8080
I made kubectl and minikube installation following the official documentation: Kubernetes documentation . The same with Jenkins
The idea is to create a CI and cd with a Jenkins pipeline. You can see the project structure here, in
Kubernetes setup
pipeline you can see that I executesh("kubectl get nodes -v=8")
for a simple test, I got the same error: Error from server (NotFound): the server could not find the requested resourceThis is the log Jenkins Pipeline log:
Thanks for your atention!