Using Terraform to push a distributed application
Now that you have EKS deployed, we will use a separate set of Terraform IaC to deploy the distributed application itself.
Components
- Kubernetes deployments – Three deployments in separate namespaces and with separate node taints. This will force pods to deploy to either the parent region, the Local Zone, or the Wavelength Zone, as appropriate.
- Kubernetes services – A simple
NodePort
service will allow traffic from each node’s public IP address into those locations. This will allow you to test accessing containers in EKS via three different paths into AWS.
Deploying the distributed application
In this section, you will initialize and deploy the Terraform IaC in the distributed-application/kubernetes-config
directory of the repository you downloaded.
NOTE:
You must replace <your_edge_city>
with the same value you used in the previous section when you deployed the EKS cluster.