Skip to content

Commit

Permalink
Formatting the files
Browse files Browse the repository at this point in the history
  • Loading branch information
VaijanathB committed Jan 8, 2019
1 parent ea4d4ac commit 839e9d2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 34 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ locals {
http_setting_name = "${azurerm_virtual_network.test.name}-be-htst"
listener_name = "${azurerm_virtual_network.test.name}-httplstn"
request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt"

#networkContributorRole = "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '4d97b98b-1d4f-4787-a291-c67834d212e7')]"

app_gateway_subnet_name = "appgwsubnet"
}

#Resources
data "azurerm_resource_group" "rg" {
name = "${var.resource_group_name}"
name = "${var.resource_group_name}"
}

# User Assigned Idntities
Expand Down Expand Up @@ -208,4 +209,3 @@ resource "azurerm_kubernetes_cluster" "test" {
depends_on = ["azurerm_virtual_network.test", "azurerm_application_gateway.network"]
tags = "${var.tags}"
}

61 changes: 29 additions & 32 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,82 +1,79 @@
variable "aks_service_principal_app_id" {
description = "Application ID/Client ID of the service principal. Used by AKS to manage AKS related resources on Azure like vms, subnets."
default = ""

description = "Application ID/Client ID of the service principal. Used by AKS to manage AKS related resources on Azure like vms, subnets."
default = ""
}

variable "aks_service_principal_client_secret" {
description = "Secret of the service principal. Used by AKS to manage Azure."
default = ""
description = "Secret of the service principal. Used by AKS to manage Azure."
default = ""
}

variable "aks_service_principal_object_id" {
description = "Object ID of the service principal."
default = ""

description = "Object ID of the service principal."
default = ""
}

variable "virtual_network_address_prefix" {
description ="Containers DNS server IP address."
default = "15.0.0.0/8"
description = "Containers DNS server IP address."
default = "15.0.0.0/8"
}

variable "aks_subnet_address_prefix" {
description = "Containers DNS server IP address."
default = "15.0.0.0/16"
variable "aks_subnet_address_prefix" {
description = "Containers DNS server IP address."
default = "15.0.0.0/16"
}

variable "app_gateway_subnet_address_prefix" {
description = "Containers DNS server IP address."
default = "15.1.0.0/16"
description = "Containers DNS server IP address."
default = "15.1.0.0/16"
}

variable "aks_dns_prefix" {
description = "Optional DNS prefix to use with hosted Kubernetes API server FQDN."
default = "aks"
description = "Optional DNS prefix to use with hosted Kubernetes API server FQDN."
default = "aks"
}

variable "aks_agent_os_disk_size" {
description = "Disk size (in GB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize."
default = 40
default = 40
}

variable "aks_agent_count" {
description = "The number of agent nodes for the cluster."
default = 3
default = 3
}

variable "aks_agent_vm_size" {
description = "The size of the Virtual Machine."
default = "Standard_D3_v2"
description = "The size of the Virtual Machine."
default = "Standard_D3_v2"
}

variable "kubernetes_version" {
description = "The version of Kubernetes."
default = "1.11.5"
default = "1.11.5"
}

variable "aks_service_cidr" {
description = "A CIDR notation IP range from which to assign service cluster IPs."
default = "10.0.0.0/16"
default = "10.0.0.0/16"
}

variable "aks_dns_service_ip" {
description = "Containers DNS server IP address."
default = "10.0.0.10"
description = "Containers DNS server IP address."
default = "10.0.0.10"
}

variable "aks_docker_bridge_cidr" {
description = "A CIDR notation IP for Docker bridge."
default = "172.17.0.1/16"
description = "A CIDR notation IP for Docker bridge."
default = "172.17.0.1/16"
}

variable "aks_enable_rbac" {
description = "Enable RBAC on the AKS cluster. Defaults to false."
default = "false"
description = "Enable RBAC on the AKS cluster. Defaults to false."
default = "false"
}

variable "public_ssh_key_path" {
description = "Public key path for SSH."
default = "~/.ssh/id_rsa.pub"
description = "Public key path for SSH."
default = "~/.ssh/id_rsa.pub"
}

0 comments on commit 839e9d2

Please sign in to comment.