Skip to content

Commit ce7862f

Browse files
authored
feat: added support for configuring the cni of admin and managed clusters (#23)
Users can now choose between flannel and NPN for their clusters Signed-off-by: Ali Mukadam <ali.mukadam@oracle.com>
1 parent 1d08ad7 commit ce7862f

File tree

21 files changed

+79
-3
lines changed

21 files changed

+79
-3
lines changed

admin.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module "admin" {
6464

6565
# oke cluster options
6666
cluster_name = lookup(var.admin_region, "admin_name")
67+
cni_type = var.preferred_cni
6768
control_plane_type = var.oke_control_plane
6869
control_plane_allowed_cidrs = ["0.0.0.0/0"]
6970
kubernetes_version = var.kubernetes_version
@@ -73,7 +74,7 @@ module "admin" {
7374

7475
# node pools
7576
kubeproxy_mode = "ipvs"
76-
node_pools = var.nodepools
77+
node_pools = var.nodepools
7778

7879
cloudinit_nodepool_common = var.cloudinit_nodepool_common
7980

docs/src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
- [With Private Endpoints](./multi/pri-ep.md)
1515
- [Advanced Customizations](./advanced/advanced.md)
1616
- [Control plane](./advanced/controlplane.md)
17-
- [Data plane]()
17+
- [Data plane](./advanced/dataplane.md)
1818
- [DNS](./advanced/dns.md)
1919
- [Terraform Options](./terraformoptions.md)

docs/src/advanced/controlplane.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ On OCI, the Verrazzano Control Plane is front-ended by an OCI Load Balancer and
88
2. shape: the load balancer shape can be configured including the bandwidth, security posture
99
3. DNS: the domain used to access the control plane services
1010

11-
Depending on the values you choose, your architecture and possibly other requirements, additional configuration may be necessary.
11+
Depending on the values you choose, your architecture and possibly other requirements, additional configuration may be necessary.
12+
13+
The following parameters configures the Verrazzano control plane:
14+
15+
| Parameter | Description | Default |
16+
| --------- | ----------- | ------- |
17+
| verrazzano_control_plane | Determines whether the load balancer used to access the control plane is public or private. | public |
18+
| verrazzano_load_balancer | Determines the shape of the load balancer | <pre>verrazzano_load_balancer = {<br> shape = "10Mbps"<br> flex_min = "50"<br> flex_max = "100" <br>}</pre>|

docs/src/advanced/dataplane.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Data plane
2+
3+
The data plane is where the workload are run. This is usually done as part of the service mesh (Istio).
4+
5+
Istio usually has an ingress gateway that allows incoming traffic into the mesh.
6+
7+
On OCI, the service mesh is front-ended by an OCI Load Balancer and Istio's ingress gateway.
8+
the ingress gateway is front-ended by an OCI Load Balancer. As such a number of configuration options are possible depending on the use case:
9+
10+
1. access: the control plane can be made public or private. By default, it is public.
11+
2. shape: the load balancer shape can be configured including the bandwidth, security posture
12+
3. DNS: the domain used to access the control plane services
13+
14+
Depending on the values you choose, your architecture and possibly other requirements, additional configuration may be necessary.
15+
16+
The following parameters configures the Verrazzano control plane:
17+
18+
| Parameter | Description | Default |
19+
| --------- | ----------- | ------- |
20+
| verrazzano_data_plane | Determines whether the load balancer used to access the control plane is public or private. | public |
21+
| verrazzano_load_balancer | Determines the shape of the load balancer | <pre>verrazzano_load_balancer = {<br> shape = "10Mbps"<br> flex_min = "50"<br> flex_max = "100" <br>}</pre>|

modules/clusters/africa.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
# # oke cluster options
5656
# allow_worker_ssh_access = false
5757
# cluster_name = "johannesburg"
58+
# cni_type = var.preferred_cni
5859
# control_plane_type = var.oke_control_plane
5960
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
# kubernetes_version = var.kubernetes_version

modules/clusters/australia.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module "melbourne" {
5555
# oke cluster options
5656
allow_worker_ssh_access = false
5757
cluster_name = "melbourne"
58+
cni_type = var.preferred_cni
5859
control_plane_type = var.oke_control_plane
5960
control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
kubernetes_version = var.kubernetes_version
@@ -142,6 +143,7 @@ module "melbourne" {
142143
# # oke cluster options
143144
# allow_worker_ssh_access = false
144145
# cluster_name = "sydney"
146+
# cni_type = var.preferred_cni
145147
# control_plane_type = var.oke_control_plane
146148
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
147149
# kubernetes_version = var.kubernetes_version

modules/clusters/brazil.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
# # oke cluster options
5656
# allow_worker_ssh_access = false
5757
# cluster_name = "saupaulo"
58+
# cni_type = var.preferred_cni
5859
# control_plane_type = var.oke_control_plane
5960
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
# kubernetes_version = var.kubernetes_version
@@ -140,6 +141,7 @@
140141
# # oke cluster options
141142
# allow_worker_ssh_access = false
142143
# cluster_name = "vinhedo"
144+
# cni_type = var.preferred_cni
143145
# control_plane_type = var.oke_control_plane
144146
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
145147
# kubernetes_version = var.kubernetes_version

modules/clusters/canada.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
# # oke cluster options
5656
# allow_worker_ssh_access = false
5757
# cluster_name = "toronto"
58+
# cni_type = var.preferred_cni
5859
# control_plane_type = var.oke_control_plane
5960
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
# kubernetes_version = var.kubernetes_version
@@ -140,6 +141,7 @@
140141
# # oke cluster options
141142
# allow_worker_ssh_access = false
142143
# cluster_name = "montreal"
144+
# cni_type = var.preferred_cni
143145
# control_plane_type = var.oke_control_plane
144146
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
145147
# kubernetes_version = var.kubernetes_version

modules/clusters/europe.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
# allow_worker_ssh_access = false
5757
# cluster_name = "frankfurt"
5858
# control_plane_type = var.oke_control_plane
59+
# cni_type = var.preferred_cni
5960
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
# kubernetes_version = var.kubernetes_version
6162
# pods_cidr = lookup(lookup(var.cidrs, lower("frankfurt")), "pods")
@@ -142,6 +143,7 @@
142143
# allow_worker_ssh_access = false
143144
# cluster_name = "amsterdam"
144145
# control_plane_type = var.oke_control_plane
146+
# cni_type = var.preferred_cni
145147
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
146148
# kubernetes_version = var.kubernetes_version
147149
# pods_cidr = lookup(lookup(var.cidrs, lower("amsterdam")), "pods")
@@ -228,6 +230,7 @@
228230
# allow_worker_ssh_access = false
229231
# cluster_name = "madrid"
230232
# control_plane_type = var.oke_control_plane
233+
# cni_type = var.preferred_cni
231234
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
232235
# kubernetes_version = var.kubernetes_version
233236
# pods_cidr = lookup(lookup(var.cidrs, lower("madrid")), "pods")
@@ -313,6 +316,7 @@
313316
# allow_worker_ssh_access = false
314317
# cluster_name = "milan"
315318
# control_plane_type = var.oke_control_plane
319+
# cni_type = var.preferred_cni
316320
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
317321
# kubernetes_version = var.kubernetes_version
318322
# pods_cidr = lookup(lookup(var.cidrs, lower("milan")), "pods")
@@ -398,6 +402,7 @@
398402
# allow_worker_ssh_access = false
399403
# cluster_name = "stockholm"
400404
# control_plane_type = var.oke_control_plane
405+
# cni_type = var.preferred_cni
401406
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
402407
# kubernetes_version = var.kubernetes_version
403408
# pods_cidr = lookup(lookup(var.cidrs, lower("stockholm")), "pods")
@@ -483,6 +488,7 @@
483488
# allow_worker_ssh_access = false
484489
# cluster_name = "zurich"
485490
# control_plane_type = var.oke_control_plane
491+
# cni_type = var.preferred_cni
486492
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
487493
# kubernetes_version = var.kubernetes_version
488494
# pods_cidr = lookup(lookup(var.cidrs, lower("zurich")), "pods")

modules/clusters/france.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
# allow_worker_ssh_access = false
5757
# cluster_name = "paris"
5858
# control_plane_type = var.oke_control_plane
59+
# cni_type = var.preferred_cni
5960
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
6061
# kubernetes_version = var.kubernetes_version
6162
# pods_cidr = lookup(lookup(var.cidrs, lower("paris")), "pods")
@@ -141,6 +142,7 @@
141142
# allow_worker_ssh_access = false
142143
# cluster_name = "marseille"
143144
# control_plane_type = var.oke_control_plane
145+
# cni_type = var.preferred_cni
144146
# control_plane_allowed_cidrs = ["0.0.0.0/0"]
145147
# kubernetes_version = var.kubernetes_version
146148
# pods_cidr = lookup(lookup(var.cidrs, lower("marseille")), "pods")

0 commit comments

Comments
 (0)