Skip to content

Commit 150029b

Browse files
committed
update defaults for node pools
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 087634c commit 150029b

File tree

7 files changed

+16
-29
lines changed

7 files changed

+16
-29
lines changed

cluster-tools.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module "cluster-tools" {
4646
## Grafana
4747
grafana_enabled = var.grafana_enabled
4848

49-
depends_on = [module.oke, module.oke_node_pool, module.oke_cluster_autoscaler]
49+
depends_on = [module.oke, module.oke_node_pools, module.oke_cluster_autoscaler]
5050
}
5151

5252
# Kubernetes Cluster Tools

datasources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ data "oci_core_services" "all_services_network" {
2525
values = ["All .* Services In Oracle Services Network"]
2626
regex = true
2727
}
28-
}
28+
}

examples/5G-NF-Infra/networking.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ locals {
77
vcn_cidr_blocks = split(",", var.vcn_cidr_blocks)
88
network_cidrs = {
99
VCN-MAIN-CIDR = local.vcn_cidr_blocks[0] # e.g.: "10.75.0.0/16" = 65536 usable IPs
10-
VCN-NATIVE-POD-NETWORKING-REGIONAL-SUBNET-CIDR = cidrsubnet(local.vcn_cidr_blocks[0], 1, 1) # e.g.: "10.20.128.0/17" = 32766 usable IPs (10.20.128.0 - 10.20.255.255)
10+
VCN-NATIVE-POD-NETWORKING-REGIONAL-SUBNET-CIDR = cidrsubnet(local.vcn_cidr_blocks[0], 1, 1) # e.g.: "10.75.128.0/17" = 32766 usable IPs (10.20.128.0 - 10.20.255.255)
1111
SUBNET-5GC-OAM-CIDR = cidrsubnet(local.vcn_cidr_blocks[0], 9, 128) # e.g.: "10.75.64.0/25" = 128 usable IPs
1212
SUBNET-5GC-SIGNALLING-CIDR = cidrsubnet(local.vcn_cidr_blocks[0], 9, 129) # e.g.: "10.75.64.128/25" = 128 usable IPs
1313
SUBNET-5G-RAN-CIDR = cidrsubnet(local.vcn_cidr_blocks[0], 11, 520) # e.g.: "10.75.65.0/27" = 32 usable IPs

examples/5G-NF-Infra/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ variable "node_pool_instance_shape_1" {
3535
type = map(any)
3636
default = {
3737
"instanceShape" = "VM.Standard3.Flex"
38-
"ocpus" = 6
38+
"ocpus" = 8
3939
"memory" = 96
4040
}
41-
description = "Pooll: A shape is a template that determines the number of OCPUs, amount of memory, and other resources allocated to a newly created instance for the Worker Node. Select at least 2 OCPUs and 16GB of memory if using Flex shapes"
41+
description = "Pooll: A shape is a template that determines the number of OCPUs, amount of memory, and other resources allocated to a newly created instance for the Worker Node. Select at least 2 OCPUs and 16GB of memory if using Flex shapes."
4242
}

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module "oke" {
9393
################################################################################
9494
# Module: OKE Node Pool
9595
################################################################################
96-
module "oke_node_pool" {
96+
module "oke_node_pools" {
9797
for_each = { for map in local.node_pools : map.node_pool_name => map }
9898
source = "./modules/oke-node-pool"
9999

@@ -176,9 +176,9 @@ module "oke_cluster_autoscaler" {
176176

177177
## Enable Cluster Autoscaler
178178
cluster_autoscaler_enabled = var.cluster_autoscaler_enabled
179-
oke_node_pools = values(module.oke_node_pool)
179+
oke_node_pools = values(module.oke_node_pools)
180180

181-
depends_on = [module.oke, module.oke_node_pool]
181+
depends_on = [module.oke, module.oke_node_pools]
182182
}
183183

184184
resource "oci_identity_compartment" "oke_compartment" {

modules/oke/outputs.tf

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,3 @@ output "oke_cluster_compartment_ocid" {
3939
value = local.oke_compartment_ocid
4040
description = "Compartment OCID used by the OKE Cluster"
4141
}
42-
43-
# ### Important Security Notice ###
44-
# # The private key generated by this resource will be stored unencrypted in your Terraform state file.
45-
# # Use of this resource for production deployments is not recommended.
46-
# # Instead, generate a private key file outside of Terraform and distribute it securely to the system where Terraform will be run.
47-
# output "generated_private_key_pem" {
48-
# value = var.generate_public_ssh_key ? tls_private_key.oke_worker_node_ssh_key.private_key_pem : "No Keys Auto Generated"
49-
# sensitive = true
50-
# }
51-
52-
# output "oke_debug_oke_private_endpoint" {
53-
# value = oci_containerengine_cluster.oke_cluster[0].endpoints.0.private_endpoint
54-
# }
55-
56-
# output "oke_debug_orm_private_endpoint_reachable_ip" {
57-
# value = data.oci_resourcemanager_private_endpoint_reachable_ip.private_kubernetes_endpoint.0.ip_address
58-
# }
59-
60-
# output "oke_debug_oke_endpoints" {
61-
# value = oci_containerengine_cluster.oke_cluster.0.endpoints
62-
# }

outputs.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ output "kubeconfig_for_kubectl" {
2828
value = module.oke.kubeconfig_for_kubectl
2929
description = "If using Terraform locally, this command set KUBECONFIG environment variable to run kubectl locally"
3030
}
31+
output "oke_cluster_ocid" {
32+
value = module.oke.oke_cluster_ocid
33+
}
34+
output "oke_node_pools" {
35+
value = module.oke_node_pools
36+
}
37+
3138
output "dev" {
3239
value = module.oke.dev
3340
}
@@ -39,3 +46,4 @@ output "generated_private_key_pem" {
3946
value = var.generate_public_ssh_key ? tls_private_key.oke_worker_node_ssh_key.private_key_pem : "No Keys Auto Generated"
4047
sensitive = true
4148
}
49+

0 commit comments

Comments
 (0)