Building Kubernetes Services in Azure Cloud A Step-by-Step Guide Presented by: Budi Setiawan Date: 07232024
Agenda Introduction to Kubernetes Why Azure for Kubernetes? Setting Up Azure Kubernetes Service (AKS) Deploying Applications Managing and Scaling Monitoring and Logging Conclusion and Q&A
Introduction to Kubernetes Definition of Kubernetes Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available. The name Kubernetes originates from Greek, meaning helmsman or pilot. K8s as an abbreviation results from counting the eight letters between the "K" and the "s". Google open-sourced the Kubernetes project in 2014.
Introduction to Kubernetes Overview of container orchestration Container orchestration automates the deployment, management, scaling, and networking of containers. Enterprises that need to deploy and manage hundreds or thousands of Linux® containers and hosts can benefit from container orchestration. Kubernetes orchestration allows you to build application services that span multiple containers, schedule containers across a cluster, scale those containers, and manage their health over time.
Introduction to Kubernetes Benefits of using Kubernetes
Why Azure for Kubernetes? Azure Kubernetes Service (AKS) Overview Benefits of using AKS (Managed Service, Integration with Azure tools, Security, and Compliance) Cost-efficiency and scalability
Setting Up Azure Kubernetes Service (AKS) Prerequisites: Azure account Azure CLI installed 2. Creating an AKS Cluster: Using Azure Portal Using Azure CLI (Example command: ' az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 3 --enable-addons monitoring --generate-ssh-keys’) 3. Configuring kubectl : Connecting to the cluster (Example command: ' az aks get-credentials --resource-group myResourceGroup --name myAKSCluster ' )
Deploying Applications on AKS Creating a Kubernetes Deployment YAML file Example Deployment file (nginx) Applying the Deployment ( ‘ kubectl apply -f deployment.yaml ’ ) Exposing the Deployment ( ‘ kubectl expose deployment nginx-deployment --type= LoadBalancer --name=nginx-service’ )
Managing and Scaling Applications Scaling Deployments (Example command: ‘ kubectl scale --replicas=5 deployment/nginx-deployment’) Updating Applications Rolling Updates Rollbacks Managing resources and quotas
Monitoring and Logging Azure Monitor for Containers Viewing Logs and Metrics Using Azure Portal Using kubectl commands (Example command: ‘ kubectl logs <pod-name>’) Setting up alerts and notifications