Deploy application

Deploy application to EKS cluster

  1. Deploy a static Website to the EKS Cluster we just created. To deploy, first we will run the following command:
kubectl create deployment fcj-workshop --image=awsfcj/000062

Deploywebsite

awsfcj/00062 is a pre-built image to use in this lab

Deploywebsite

  1. To be able to access the Website from outside the EKS cluster, we will have to deploy a LoadBalancer Service to the cluster using the following command:
kubectl expose deployments/fcj-workshop --type=LoadBalancer --port=80

Deploywebsite

  1. To view information about the above LoadBalancer, we will run the following command:
kubectl get svc

Deploywebsite

  1. Copy and paste the link in EXTERNAL-IP into the browser to access the website

Deploywebsite

  1. Access the website (remember to access using http instead of https)

Deploywebsite