Checking if KOTS Jama Front End is Up via Application Server

Kellen Fields
Kellen Fields
  • Updated

Author: Kellen Fields

Updated: June 2024

Audience: Everyone

Environment: Self-hosted, Replicated - KOTS, all versions.

Summary

Sometimes, it can be worthwhile to see if the Jama Application login page runs from inside the Application server (without needing an outside browser).

Solution

To do that, we can curl the login webpage.

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

Remember to retrieve the IP address of the nginx web server running the application. You can find 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 use the curl command to access the login screen URL.

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

This output will provide an HTTP status code. If the status is 200, the application is running correctly.

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 about pod status.

 

 

 

Related to

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.