Checking if KOTS Jama Front End is Up via Application Server

Kellen Fields
Kellen Fields
  • Updated

Author: Kellen Fields

Date: January 20, 2024

Audience: Everyone

Environmental details: Any KOTS version

Summary: 

Sometimes it can be worthwhile to see if the Jama Application login page is running from inside the Application server (without the need for any outside browser). To do that, we can curl the login webpage.

  1. At the command line of the Application server use command:
kubectl get svc nginx

to retrieve the IP of the ngnix webserver running the application. This will show you the IP address under the 'EXTERNAL-IP' section

support@support-app-server:~$ kubectl get svc nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx ClusterIP 10.110.1.103 <none> 80/TCP 3d7h

   2. Take the IP address (in this case 10.110.1.103) and curl the login screen address

curl -I -http://10.110.1.103/login.req

 

This output will return an HTTP status code. If the status is 200, the application is up:

support@aws-support-app-02:~$ curl -I -http://10.110.1.103/login.req
HTTP/1.1 200
Server: nginx
Date: Tues, 23 Jan 2024 17:16:18 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 8707
Connection: keep-alive

 

Use Case: This can be useful in troubleshooting to narrow down whether an inability to access the application via browser is networking related, or if the application is up at all in relation to pod status.

 

 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.