Test Your Sock Shop

To make sure our Sock Shop was deployed successfuly, we’ll open it in a browser. First, we need to find the URL by looking at the load balancer DNS name. Look for the steps for your corresponding setup:

If you are using the New EC2 Experience follow this:

If you are running this in an AWS event, visit the EC2 Console and log in to your bastion host EC2 instance. The name of your bastion host will end in -bastion. (Example: mod-f679f4081e7d405c-bastion). Bastion-ec2

Locate your bastion host and using the “Actions” dropdown select “Connect” and then select EC2 Instance Connect.

On the next page, go ahead and change the username from root to ec2-user and press Connect. A new browser tab will open.

ec2-change-username

Leave the AWS EC2 Console tab open, we will use it again

Run the following command in the console window to grab the load balancer IP:

kubectl get svc -o wide -n sock-shop | grep LoadBalancer

Copy the load balancer DNS name from the terminal and paste it.

Bastion-lb

Paste it into your web browser, and you should be good to go.

Bastion-sock

Also keep the sock shop browser tab open for the rest of today’s activities.

If you are using the Older EC2 Experience follow this:

AWS - EC2 - Old Experience

If you are running this in an AWS event, visit the EC2 Console and log in to your bastion host EC2 instance. The name of your bastion host will end in -bastion. (Example: mod-f679f4081e7d405c-bastion). Locate your bastion host and press “Connect”, a pop up screen will display as seen below:

AWS - EC2 - Old Experience

In the pop up select EC2 Instance Connect and a new browser window will open.

Keep this browser window open for the rest of today’s activities.

Run the following command in the console window to grab the load balancer IP:

kubectl get svc -o wide -n sock-shop | grep LoadBalancer

Copy the load balancer DNS name from the terminal and paste it.

Bastion-lb

Paste it into your web browser, and you should be good to go.

Bastion-sock

Also keep the sock shop browser tab open for the rest of today’s activities.

If you are running this workshop on your own, follow this:

Run the following command in your cloud9 terminal in order to grab the load balancer DNS name:

kubectl get svc -o wide -n sock-shop | grep LoadBalancer

Paste it into your web browser, and you should be good to go.

Keep this browser tab open for the rest of today’s activities.