In this lab, you'll deploy the Thomasthorntoncloud app to your Azure Kubernetes Service (AKS) cluster using the prepared Kubernetes manifest.
- AKS cluster provisioned
- Kubernetes manifest prepared
- kubectl configured to communicate with your AKS cluster
- Navigate to the Kubernetes Manifest Directory
cd kubernetes_manifest
- Deploy the Application Components
- Install ALB Controller:
./scripts/1-install-alb-controller.sh
- Install Gateway API resources:
./scripts/2-install-gateway-api.sh
- Deploy the Thomasthorntoncloud app:
kubectl create -f deployment.yml
- Verify Deployment
Run the following command to confirm the deployment was successful:
kubectl get deployments
- Access the Thomasthornton.cloud App
To access the Thomasthorntoncloud app via Azure Application Gateway Controller for Containers, run the following command:
bash fqdn=$(kubectl get gateway gateway-01 -n thomasthorntoncloud -o jsonpath='{.status.addresses[0].value}') echo "http://$fqdn"
Access the Thomasthornton.cloud app using the address provided.
You've successfully deployed the Thomasthornton.cloud app to your AKS cluster using the Kubernetes manifest:
To ensure your application is deployed and running correctly:
- Check that all pods are in the 'Running' state: kubectl get pods
- Verify that the service is exposed: kubectl get services
- Test the application by accessing it through the provided URL
After deploying the application, consider these questions:
- What is the purpose of the ALB Controller in this deployment?
- How does the Gateway API enhance the application's accessibility?
- Why is it important to verify the deployment using
kubectl get deployments
?
Use Kubernetes namespaces to organise and isolate your resources, especially when deploying multiple applications or environments in the same cluster.