From acb4ef9690ca3a86298a845dded9dd1567f6e1c4 Mon Sep 17 00:00:00 2001 From: burnettk Date: Mon, 12 Feb 2024 19:16:13 -0500 Subject: [PATCH] reformat --- .github/workflows/terraformaks_2.yml | 11 +---------- aks_2/main.tf | 12 ++++++------ aks_2/variables.tf | 17 +++++++++-------- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/.github/workflows/terraformaks_2.yml b/.github/workflows/terraformaks_2.yml index b7376ed..bd8b64c 100644 --- a/.github/workflows/terraformaks_2.yml +++ b/.github/workflows/terraformaks_2.yml @@ -1,3 +1,4 @@ +# originally from AdminTurnedDevOps/kubernetes-real-world-course name: "aks_2 Deployment" on: @@ -25,16 +26,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - # - name: "Az CLI login" - # uses: azure/login@v1 - # env: - # AZURE_CORE_OUTPUT: none - # with: - # client-id: ${{ secrets.AZURE_CLIENT_ID }} - # tenant-id: ${{ secrets.AZURE_TENANT_ID }} - # subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - # - name: Setup Terraform - # uses: hashicorp/setup-terraform@v1 - name: Terraform Init working-directory: aks_2 diff --git a/aks_2/main.tf b/aks_2/main.tf index 305a894..435f34a 100644 --- a/aks_2/main.tf +++ b/aks_2/main.tf @@ -10,7 +10,7 @@ terraform { terraform { required_providers { azurerm = { - source = "hashicorp/azurerm" + source = "hashicorp/azurerm" } } } @@ -27,17 +27,17 @@ resource "azurerm_kubernetes_cluster" "k8squickstart" { kubernetes_version = var.k8s_version - + network_profile { - network_plugin = "azure" - network_policy = "azure" -} + network_plugin = "azure" + network_policy = "azure" + } default_node_pool { name = "default" node_count = var.node_count vm_size = "Standard_A2_v2" - + } identity { diff --git a/aks_2/variables.tf b/aks_2/variables.tf index f393a11..f503c5c 100644 --- a/aks_2/variables.tf +++ b/aks_2/variables.tf @@ -1,24 +1,25 @@ variable "name" { - type = string + type = string default = "aksenvironment01" } variable "resource_group_name" { - type = string + type = string default = "rg-k8s" } variable "location" { - type = string + type = string default = "eastus" } variable "node_count" { - type = string + type = string default = 3 } - variable "k8s_version" { - type = string - default = "1.28.0" - } \ No newline at end of file +variable "k8s_version" { + type = string + default = "1.28.0" +} +