This commit is contained in:
burnettk 2024-02-12 19:16:13 -05:00
parent fb1380c72d
commit acb4ef9690
No known key found for this signature in database
3 changed files with 16 additions and 24 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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"
}
variable "k8s_version" {
type = string
default = "1.28.0"
}