Before you start, ensure you have the following tools installed:
- Terraform
- Helm
- kubectl
- An active Azure account
k8c-cluster-azure
is a project designed to deploy Kubernetes clusters on Azure with ease and efficiency.
It utilizes Helm charts for easy and consistent application deployment and management within the Kubernetes cluster.
- Login to Azure CLI: az login
- Change directory to the Terraform configuration:cd terraform
- (Optional) Preview the Terraform plan: terraform plan
- Apply the Terraform configuration: terraform apply
- Retrieve credentials for the Kubernetes cluster: az aks get-credentials --name my-cluster --resource-group home-assignment Note: At this point, your cluster and resource group should be visible in the Azure portal.
- (Optional) Verify the current context is set to the new cluster: kubectl config current-context
- Return to the previous directory:cd ..
- Apply the Kubernetes Ingress NGINX controller: kubkubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yamlectl
- Install the Helm chart: helm install releaset ./chart
- Retrieve the IP address for accessing the applications: kubectl get ingress -n namespace1 The IP address is located in the "ADDRESS" field.
- You can access the applications through:
http://<ip>/service-a
andhttp://<ip>/service-b