Skip to content

Commit b5b9110

Browse files
authored
Merge pull request #16 from junior/5G-example
Small fix - 0.8.4
2 parents 7e03b68 + 7148cde commit b5b9110

32 files changed

+26
-780
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.3
1+
0.8.4

cluster-tools.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module "cluster-tools" {
5252
# Kubernetes Cluster Tools
5353
## IngressController/LoadBalancer
5454
variable "ingress_nginx_enabled" {
55-
default = true
55+
default = false
5656
description = "Enable Ingress Nginx for Kubernetes Services (This option provision a Load Balancer)"
5757
}
5858
variable "ingress_load_balancer_shape" {
@@ -95,7 +95,7 @@ variable "ingress_email_issuer" {
9595

9696
## Cert Manager
9797
variable "cert_manager_enabled" {
98-
default = true
98+
default = false
9999
description = "Enable x509 Certificate Management"
100100
}
101101

@@ -107,13 +107,13 @@ variable "metrics_server_enabled" {
107107

108108
## Prometheus
109109
variable "prometheus_enabled" {
110-
default = true
110+
default = false
111111
description = "Enable Prometheus"
112112
}
113113

114114
## Grafana
115115
variable "grafana_enabled" {
116-
default = true
116+
default = false
117117
description = "Enable Grafana Dashboards. Includes example dashboards and Prometheus, OCI Logging and OCI Metrics datasources"
118118
}
119119

defaults.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
################################################################################
2121
locals {
2222
deploy_id = random_string.deploy_id.result
23-
deploy_tags = { "DeploymentID" = local.deploy_id, "AppName" = local.app_name, "Quickstart" = "oke_base" }
23+
deploy_tags = { "DeploymentID" = local.deploy_id, "AppName" = local.app_name, "Quickstart" = "terraform-oci-oke-quickstart" }
2424
oci_tag_values = {
2525
"freeformTags" = merge(var.tag_values.freeformTags, local.deploy_tags),
2626
"definedTags" = var.tag_values.definedTags

examples/basic-cluster/oke.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "oke-quickstart" {
2-
source = "github.com/oracle-quickstart/terraform-oci-oke-quickstart?ref=0.8.2"
2+
source = "github.com/oracle-quickstart/terraform-oci-oke-quickstart?ref=0.8.3"
33

44
# Oracle Cloud Infrastructure Tenancy and Compartment OCID
55
tenancy_ocid = var.tenancy_ocid
@@ -11,7 +11,7 @@ module "oke-quickstart" {
1111
app_name = "Basic"
1212

1313
# Freeform Tags + Defined Tags. Tags are applied to all resources.
14-
tag_values = { "freeformTags" = { "Environment" = "Development", "DeploymentType" = "basic" }, "definedTags" = {} }
14+
tag_values = { "freeformTags" = { "Environment" = "Development", "DeploymentType" = "basic", "QuickstartExample" = "basic-cluster" }, "definedTags" = {} }
1515

1616
# OKE Node Pool 1 arguments
1717
node_pool_cni_type_1 = "FLANNEL_OVERLAY" # Use "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

examples/basic-cluster/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Deployment outputs
66
output "deploy_id" {
7-
value = local.deploy_id
7+
value = module.oke-quickstart.deploy_id
88
}
99

1010
# OKE Outputs
@@ -33,6 +33,6 @@ output "dev" {
3333
# Use of this resource for production deployments is not recommended.
3434
# Instead, generate a private key file outside of Terraform and distribute it securely to the system where Terraform will be run.
3535
output "generated_private_key_pem" {
36-
value = var.generate_public_ssh_key ? tls_private_key.oke_worker_node_ssh_key.private_key_pem : "No Keys Auto Generated"
36+
value = module.oke-quickstart.generated_private_key_pem
3737
sensitive = true
3838
}

main.tf

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ locals {
408408
udp_options = { max = -1, min = -1, source_port_range = null }
409409
icmp_options = null
410410
}, {
411-
description = "Path discovery"
411+
description = "Path discovery - Kubernetes API Endpoint"
412412
source = lookup(local.network_cidrs, "ENDPOINT-REGIONAL-SUBNET-CIDR")
413413
source_type = "CIDR_BLOCK"
414414
protocol = local.security_list_ports.icmp_protocol_number
@@ -417,6 +417,15 @@ locals {
417417
udp_options = { max = -1, min = -1, source_port_range = null }
418418
icmp_options = { type = "3", code = "4" }
419419
}, {
420+
description = "Path discovery"
421+
source = lookup(local.network_cidrs, "ALL-CIDR")
422+
source_type = "CIDR_BLOCK"
423+
protocol = local.security_list_ports.icmp_protocol_number
424+
stateless = false
425+
tcp_options = { max = -1, min = -1, source_port_range = null }
426+
udp_options = { max = -1, min = -1, source_port_range = null }
427+
icmp_options = { type = "3", code = "4" }
428+
}, {
420429
description = "Load Balancer to Worker nodes node ports"
421430
source = lookup(local.network_cidrs, "LB-REGIONAL-SUBNET-CIDR")
422431
source_type = "CIDR_BLOCK"
@@ -435,7 +444,7 @@ locals {
435444
description = "Allow traffic to worker nodes"
436445
destination = lookup(local.network_cidrs, "ALL-CIDR")
437446
destination_type = "CIDR_BLOCK"
438-
protocol = local.security_list_ports.tcp_protocol_number # all_protocols
447+
protocol = local.security_list_ports.all_protocols
439448
stateless = false
440449
tcp_options = { max = 32767, min = 30000, source_port_range = null }
441450
udp_options = { max = -1, min = -1, source_port_range = null }

modules/cluster-tools/cluster-tools.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ locals {
2525
metrics_server = "https://kubernetes-sigs.github.io/metrics-server"
2626
metrics_server_version = "3.8.2"
2727
}
28-
use_cluster_tools_namespace = (var.grafana_enabled || var.ingress_nginx_enabled || var.cert_manager_enabled || var.prometheus_enabled) ? true : false
28+
use_cluster_tools_namespace = anytrue([var.grafana_enabled,var.ingress_nginx_enabled,var.cert_manager_enabled,var.prometheus_enabled]) ? true : false
2929
}
3030

3131
# OCI Provider

modules/oci-networking/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# OCI Networking module
2+
3+
> __Warning__: Moved to [oracle-quickstart/terraform-oci-networking](https://github.com/oracle-quickstart/terraform-oci-networking). Sub modules with specific OCI Networking resource also available. example: [Virtual Cloud Network](https://github.com/oracle-quickstart/terraform-oci-networking/tree/main/modules/vcn).

modules/oci-networking/modules/gateways/datasources.tf

Lines changed: 0 additions & 12 deletions
This file was deleted.

modules/oci-networking/modules/gateways/main.tf

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)