Deploying the application

Deploy application to EKS cluster

  1. Deploy a static Website to the EKS Cluster you just created. To deploy, we will first 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 with the following command:
kubectl expose deployments/fcj-workshop --type=LoadBalancer --port=80

Deploywebsite

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

Deploywebsite

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

Deploywebsite

  1. Visit the website

Deploywebsite