I have deployed my webservice in openshift (tomcat) and every time I request my services sometimes it works and sometimes it doesn't work. it was working perfectly before, number of pod is 1 no logs for failure
Error is
Application is not available The application is currently not serving requests at this endpoint. It may not have been started or is still starting.
Possible reasons you are seeing this page: The host doesn't exist. Make sure the hostname was typed correctly and that a route matching this hostname exists.
The host exists, but doesn't have a matching path. Check if the URL path was typed correctly and that the route was created using the desired path.
Route and path matches, but all pods are down. Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.
O/P of oc describe routes
Name: mysample
Namespace: enzen
Created: 12 days ago
Labels: app=mysample
Annotations: openshift.io/host.generated=true
Requested Host: mysample-enzen.193b.starter-ca-central-1.openshiftapps.com
exposed on router router (host elb.193b.starter-ca-central-1.openshiftapps.com) 12 days ago
Path: <none>
TLS Termination: <none>
Insecure Policy: <none>
Endpoint Port: 8080-tcp
Service: mysample
Weight: 100 (100%)
Endpoints: 10.128.18.210:8080
O/P of oc describe services
Name: mysample
Namespace: enzen
Labels: app=mysample
Annotations: openshift.io/generated-by=OpenShiftNewApp
Selector: app=mysample,deploymentconfig=mysample
Type: ClusterIP
IP: 172.30.145.245
Port: 8080-tcp 8080/TCP
TargetPort: 8080/TCP
Endpoints: 10.128.18.210:8080
Session Affinity: None
Events: <none>
curl
ing your endpoint from your machine, and then alsocurl
ing the localhost (127.0.0.1) from the pod terminal. If the localhost always succeeds, and your machine's curl is still showing intermittent failures, then it's probably an issue with the router. For infrastructure issues, like a bad router, you can reach out to the OpenShift Online community team at help.openshift.com – Will Gordon