Skip to content

Commit

Permalink
feat:create new files and delete main.tf (#19)
Browse files Browse the repository at this point in the history
* feat:create new files and delete main.tf

* Add new variables and modify role.tf

* update the format

* fix:modify default node pool

* fix:readd default_node_pool in example.tf & add new roles in role.tf

* fix:rechange the resource_group name
  • Loading branch information
Rupalgw authored May 16, 2024
1 parent 2ad8407 commit 2170c26
Show file tree
Hide file tree
Showing 12 changed files with 1,186 additions and 1,310 deletions.
2 changes: 2 additions & 0 deletions _examples/aks_with_microsoft_entra_id/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module "aks" {

kubernetes_version = "1.27.7"
private_cluster_enabled = false

default_node_pool = {
name = "agentpool1"
max_pods = 200
Expand All @@ -108,6 +109,7 @@ module "aks" {
enable_node_public_ip = false
}


##### if requred more than one node group.
nodes_pools = [
{
Expand Down
11 changes: 1 addition & 10 deletions _examples/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ module "aks" {
location = "Central India"

kubernetes_version = "1.27"
default_node_pool = {
name = "agentpool"
max_pods = 200
os_disk_size_gb = 64
vm_size = "Standard_B2s"
count = 1
enable_node_public_ip = false
}


##### if requred more than one node group.
nodes_pools = [
Expand All @@ -31,7 +22,7 @@ module "aks" {
count = 2
enable_node_public_ip = false
mode = "User"
},
}
]

#networking
Expand Down
3 changes: 2 additions & 1 deletion _examples/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module "vault" {
}

module "aks" {
source = "../.."
source = "../../"
name = "app1"
environment = "test"

Expand All @@ -99,6 +99,7 @@ module "aks" {

kubernetes_version = "1.27.7"
private_cluster_enabled = false

default_node_pool = {
name = "agentpool1"
max_pods = 200
Expand Down
5 changes: 3 additions & 2 deletions _examples/private_cluster/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ module "aks" {
location = module.resource_group.resource_group_location

kubernetes_version = "1.27"

default_node_pool = {
name = "agentpool"
name = "agentpool1"
max_pods = 200
os_disk_size_gb = 64
vm_size = "Standard_B2s"
vm_size = "Standard_B4ms"
count = 1
enable_node_public_ip = false
}
Expand Down
2 changes: 1 addition & 1 deletion _examples/public_cluster/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module "aks" {

kubernetes_version = "1.27.7"
private_cluster_enabled = false

default_node_pool = {
name = "agentpool1"
max_pods = 200
Expand All @@ -108,7 +109,6 @@ module "aks" {
enable_node_public_ip = false
}


##### if requred more than one node group.
nodes_pools = [
{
Expand Down
Loading

0 comments on commit 2170c26

Please sign in to comment.