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 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 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.
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.
Paste it into your web browser, and you should be good to go.
Also keep the sock shop browser tab open for the rest of today’s activities.
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:
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.
Paste it into your web browser, and you should be good to go.
Also keep the sock shop browser tab open for the rest of today’s activities.
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.