Utah Tech Logo

IT3300

DevOps virtualization

Microservice Application on a VM

Goal

Create a microservice based application on a vm. Later we will compare this with running the same app containerized.

Instructions

Clone my repo instead of the one in the instructions below. Here it is.

Complete all of step 1 on this page.

Make sure you stop when you get to step 2.

To Pass off

In class:

Demonstrate that you can view sentiment when accessing the single ip that hosts this application.

Hints

Here is the quick and dirty to get part 1 done. Note:if you are re-using a vm that has apache installed on it, you will need to disable apache as it could conflict with nginx.

git clone https://github.com/nachofree/k8s-mastery.git

Now when you load your web interface, the sentiment app should work. Note: If you are running this on a remote vm, you will have to construct a few tunnels to make everything work. My command was something like this: ssh jfrancom@ssh.cs.utahtech.edu -L 8888:144.38.193.248:80 -L 8080:144.38.193.248:8080. Then you will visit http://localhost:8888 in the browser. So, nginx is hosting the frontend at port 80, it then sends some information to the python module on port 8080. A video here might also help.