Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding init #592

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terraform/hub-network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ resource "azurerm_network_security_group" "hub-external_network_security_group"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_ranges = var.spoke-aks-node-image-gpu == true ? ["80", "443", "8080", "11434"] : ["80", "443"] #checkov:skip=CKV_AZURE_160: Allow HTTP redirects
destination_port_ranges = var.spoke-k8s-node-pool-gpu == true ? ["80", "443", "8080", "11434"] : ["80", "443"] #checkov:skip=CKV_AZURE_160: Allow HTTP redirects
source_address_prefix = "*"
destination_address_prefix = var.hub-nva-vip
}
Expand Down
5 changes: 3 additions & 2 deletions terraform/terraform.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ spoke-aks-subnet_prefix = "10.1.2.0/24"
spoke-aks_dns_service_ip = "10.1.2.10"
spoke-check-internet-up-ip = "8.8.8.8"
spoke-aks-node-ip = "10.1.1.4"
spoke-aks-node-image-gpu = false
spoke-k8s-node-pool-gpu = false
#spoke-aks-node-image-gpu = false
spoke-k8s-node-pool-gpu = true
subscription_id = "6dced100-9c31-416f-aed1-67e8cfc9fe5f"
19 changes: 9 additions & 10 deletions terraform/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ terraform {
source = "hashicorp/external"
version = "2.3.4"
}
#kubernetes = {
# source = "hashicorp/kubernetes"
# version = "2.31.0"
#}
}
# backend "azurerm" {}
}

data "azurerm_subscription" "current" {
}

data "azurerm_client_config" "current" {
}

provider "azurerm" {
features {
api_management {
Expand All @@ -51,15 +53,12 @@ provider "azurerm" {
prevent_deletion_if_contains_resources = false
}
}
skip_provider_registration = true
subscription_id = var.subscription_id
#resource_provider_registrations = "none"
}

provider "random" {}
provider "tls" {}
provider "http" {}
provider "local" {}
provider "git" {}
#provider "kubernetes" {
# config_path = local_file.kube_config.filename
#}

provider "git" {}
15 changes: 10 additions & 5 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "subscription_id" {
description = "Azure subscription ID"
type = string
}

variable "owner_email" {
default = "[email protected]"
description = "Email address for use with Owner tag."
Expand Down Expand Up @@ -222,11 +227,11 @@ variable "spoke-aks-node-image" {
type = string
}

variable "spoke-aks-node-image-gpu" {
default = false
description = "Set to true to enable GPU workloads"
type = bool
}
#variable "spoke-aks-node-image-gpu" {
# default = false
# description = "Set to true to enable GPU workloads"
# type = bool
#}

variable "spoke-k8s-node-pool-gpu" {
default = false
Expand Down
Loading