Skip to content

Testing

ykalidin edited this page Jul 12, 2021 · 7 revisions

Key points

  • To list all kubernetes objects, run below command

      kubectl get all
    
  • To list pods and check pod logs, run below command

      kubectl get pods
      # pod logs
      kubectl logs -f <podName>
    
  • To get node IP, run below command

      kubectl get nodes -o wide
    

Note:

For AWS Fargate cluster

  • Expose the Application using one of the below options:

    • Option 1: Test the running application using port forwarding(Not for use in production):

             kubectl port-forward service/<release-name>-beservice <nodeport>:<nodeport>
      
    • Option 2: Create Load Balancer and target groups for beservice from here

      • In configuring Target Group section ,set Target type to IP.
      • While configuring Targets, Register targets for IP using the beservice endpoint.Run kubectl describe service/beservice Endpoints.
      • Configure the Load balancer security group and Cluster security group for allowing traffic.

Notes:

  • If the beservice port type is Nodeport, application is accessed with <k8s-node-ip>:<external-be-serviceport>

      example:     192.168.0.100:3xxxx
    
  • If beservice port type is LoadBalancer, application is accessed with <be-service-external-IP>:<be-serviceport>

      example:     10.0.100.1:8xxx
    
  • How to test BE Application?

    • If you are testing an BE example application, Refer to readme.html available in example folder

    • Test the application by using the external IP obtained. For example, if you have deployed the FraudDetectionStore example application with the shared all persistence, you can use the sample readme.html application. Use the obtained external IP in the readme.html file and follow the instructions in it to run the application.

    • However, if you have deployed any other sample application then update its readme.html file to test the application. Update the server address in application readme.html file from localhost to the external IP obtained. Now, follow the instructions in the readme.html file for testing the application.

  • How to test RMS Application?

    • Use the RMS external IP obtained as hostname in the Webstudio Url. Your Webstudio Url will be http://:8090/WebStudio/. Use the JMX host and port of BE application in the WebStudio deployment settings.

    • For testing RMS example, Refer to readme.html available in example/standard/WebStudio folder.

    • Verify the RMS deployment in BE application logs.

Clone this wiki locally