|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/terraform-aks-baseline-clusters-deployment-walkthrough/
课程评论:没有评论
课程名称:Terraform AKS 基线集群 - 部署 walkthrough 概述:在本课程中,我们将使用不同的基础设施即代码(Infrastructure as Code)方法部署 AKS 集群。课程主要涵盖以下关键主题: 1. 使用 Azure CLI 创建集群,并以幂等的方式使用 Azure CLI,从而可以反复运行代码而不会生成警告和错误。 2. 切换到使用 Terraform,探索 Azure AKS 的模块,助您快速构建测试集群。 3. 主要精力将集中在根据 Azure 架构中心的 AKS 基线集群,将一个庞大的 Azure Bicep 文件转换为易于理解的单独 Terraform 资源,使您可以使用 Terraform 变量来切换所需资源的创建。 4. 使用 Azure CLI 在 15 分钟内启动您的第一个 AKS 集群。课程将把 Azure 快速入门教程的步骤转换为幂等的 bash shell 脚本,以便您可以多次运行。包括在集群中部署应用程序,以及删除集群、资源组和 Kubernetes 上下文的全流程。 5. 创建 Azure 存储帐户和容器以存储 Terraform 状态。将使用 bash shell 脚本封装 Azure CLI 命令,创建一个 Terraform 后端,并设置存储防火墙以允许从您的 IP 地址访问。 6. 在 Terraform 中创建最小可行产品,使用远程后端维护状态,通过 Terraform 生命周期的初始化、规划、应用和销毁 Azure 资源组。 7. 再次在 15 分钟内通过 Terraform 创建集群。使用官方的 Azure Terraform 模块快速创建集群。与使用 Azure CLI 创建集群类似,Terraform 代码将创建资源组、虚拟网络、子网和 AKS 集群。 8. 将代码拆分为订阅、枢纽、 spoke 和集群。利用 Terraform 的计数关键词和布尔变量控制资源创建。通过将关注点分离到枢纽和 spoke 网络中来准备您的代码以投入生产,并选择是否使用昂贵的 Azure 防火墙进行出站路由。
In this course, we're going to deploy AKS clusters using different Infrastructure as Code approaches. Some of the key topics that we'll cover include:Creating a cluster with Azure CLIUsing the Azure CLI in an idempotent way, so you can run and re-run the code without generating warnings and errorsWe'll switch to using Terraform, and see how useful the module for Azure AKS is, which may be all you need to spin up some test clustersWe'll spend the bulk of the course on walking through the AKS Baseline Cluster from the Azure Architecture Centre, but converted from a massive Azure Bicep file into individual Terraform resources which are considerably easier to understand. This will enable you to use Terraform variables to toggle the creation of the resources you need in your own context.Launch your first AKS cluster in 15 minutes with Azure CLI. We turn the steps in the Azure quickstart tutorial into idempotent bash shell scripts, so you can run them again and again. We'll run through the full process, including deploying an application to the cluster, and then deleting the cluster, resource group and Kubernetes context.Create an Azure storage account and container to store Terraform state. We'll use bash shell scripts to wrap Azure CLI commands to create a backend for Terraform, and set up the storage firewall to allow access from your IP address.Create the Minimum Viable Product in Terraform - using a remote backend to maintain state, take an Azure resource group through the Terraform lifecycle of init, plan, apply, destroy.A cluster in 15 minutes - this time via Terraform. Use the official Azure Terraform Module to create a cluster in minutes. Similar to creating a cluster with Azure CLI, the Terraform code will create a resource group, virtual network, subnet, and AKS cluster.Split code into subscription, hub, spoke, and cluster. Use Terraform's count keyword, combined with boolean variables to control the creation of resources. Prepare your code for production by a separation of concerns into hub and spoke networking, and choose whether to use the expensive Azure Firewall for your outbound routing.