Skip to content

Commit ad38db4

Browse files
committed
5G NF Infra example shape adjustments
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 8d6369b commit ad38db4

File tree

3 files changed

+15
-52
lines changed

3 files changed

+15
-52
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ locals {
7272
icmp_options = null
7373
}, {
7474
description = "Allow 5G RAN to pod communication"
75-
source = lookup(local.network_cidrs, "SUBNET-5G-RAN-CIDR ")
75+
source = lookup(local.network_cidrs, "SUBNET-5G-RAN-CIDR")
7676
source_type = "CIDR_BLOCK"
7777
protocol = local.security_list_ports.all_protocols
7878
stateless = false
@@ -90,7 +90,7 @@ locals {
9090
icmp_options = null
9191
}, {
9292
description = "Allow 5G EPC to pod communication"
93-
source = lookup(local.network_cidrs, "SUBNET-5G-EPC-CIDR ")
93+
source = lookup(local.network_cidrs, "SUBNET-5G-EPC-CIDR")
9494
source_type = "CIDR_BLOCK"
9595
protocol = local.security_list_ports.all_protocols
9696
stateless = false
@@ -141,7 +141,7 @@ locals {
141141
}]
142142
temp_all_vcn_security_list_ingress_rules = [{
143143
description = "Allow all from VCN"
144-
source = lookup(local.network_cidrs, "ALL-CIDR")
144+
source = lookup(local.network_cidrs, "VCN-MAIN-CIDR")
145145
source_type = "CIDR_BLOCK"
146146
protocol = local.security_list_ports.all_protocols
147147
stateless = false
@@ -151,7 +151,7 @@ locals {
151151
}]
152152
temp_all_vcn_security_list_egress_rules = [{
153153
description = "Allow all to VCN"
154-
destination = lookup(local.network_cidrs, "ALL-CIDR")
154+
destination = lookup(local.network_cidrs, "VCN-MAIN-CIDR")
155155
destination_type = "CIDR_BLOCK"
156156
protocol = local.security_list_ports.all_protocols
157157
stateless = false

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ module "oke-quickstart" {
2626
extra_subnets = local.extra_subnets
2727

2828
# OKE Node Pool 1 arguments
29-
node_pool_cni_type_1 = "OCI_VCN_IP_NATIVE" # Use "FLANNEL_OVERLAY" for overlay network or "OCI_VCN_IP_NATIVE" for VCN Native PODs Network. If the node pool 1 uses the OCI_VCN_IP_NATIVE, the cluster will also be configured with same cni
30-
cluster_autoscaler_enabled = true
31-
node_pool_name_1 = "pool1"
32-
node_pool_initial_num_worker_nodes_1 = 5 # Minimum number of nodes in the node pool
33-
node_pool_max_num_worker_nodes_1 = 10 # Maximum number of nodes in the node pool
34-
node_pool_instance_shape_1 = var.node_pool_instance_shape_1
35-
extra_security_list_name_for_nodes = "5g_for_pods_security_list"
29+
node_pool_cni_type_1 = "OCI_VCN_IP_NATIVE" # Use "FLANNEL_OVERLAY" for overlay network or "OCI_VCN_IP_NATIVE" for VCN Native PODs Network. If the node pool 1 uses the OCI_VCN_IP_NATIVE, the cluster will also be configured with same cni
30+
cluster_autoscaler_enabled = true
31+
node_pool_name_1 = "pool1"
32+
node_pool_initial_num_worker_nodes_1 = 5 # Minimum number of nodes in the node pool
33+
node_pool_max_num_worker_nodes_1 = 10 # Maximum number of nodes in the node pool
34+
node_pool_instance_shape_1 = var.node_pool_instance_shape_1
35+
extra_security_list_name_for_nodes = "5g_for_pods_security_list"
3636
extra_security_list_name_for_vcn_native_pod_networking = "5g_for_pods_security_list"
3737

3838
# Cluster Tools

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

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -34,46 +34,9 @@ variable "vcn_cidr_blocks" {
3434
variable "node_pool_instance_shape_1" {
3535
type = map(any)
3636
default = {
37-
"instanceShape" = "VM.Standard.E4.Flex"
38-
"ocpus" = 4
39-
"memory" = 64
37+
"instanceShape" = "VM.Standard3.Flex"
38+
"ocpus" = 6
39+
"memory" = 96
4040
}
41-
description = "Default Node Pool: 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
}
43-
variable "node_pool_instance_shape_turn" {
44-
type = map(any)
45-
default = {
46-
"instanceShape" = "VM.Standard.E4.Flex"
47-
"ocpus" = 4
48-
"memory" = 64
49-
}
50-
description = "Turn Node Pool: 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"
51-
}
52-
variable "node_pool_instance_shape_gpu" {
53-
type = map(any)
54-
default = {
55-
"instanceShape" = "BM.GPU.A10.4"
56-
"ocpus" = 64
57-
"memory" = 1024
58-
}
59-
description = "GPU Node Pool: 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"
60-
}
61-
variable "node_pool_shape_specific_ad_gpu" {
62-
description = "The number of the AD to get the shape for the node pool"
63-
type = number
64-
default = 0
65-
66-
validation {
67-
condition = var.node_pool_shape_specific_ad_gpu >= 0 && var.node_pool_shape_specific_ad_gpu <= 3
68-
error_message = "Invalid AD number, should be 0 to get all ADs or 1, 2 or 3 to be a specific AD."
69-
}
70-
}
71-
72-
################################################################################
73-
# Variables: Unreal Pixel Streaming
74-
################################################################################
75-
variable "unreal_pixel_streaming_demo" {
76-
type = bool
77-
default = true
78-
description = "Deploys Unreal Pixel Streaming Demo deployment helm chart - demo.yaml"
79-
}

0 commit comments

Comments
 (0)