Study guide

5.2 OKE Networking: VCN-Native Pod Networking vs. Flannel, Subnet Sizing & Load Balancers

OCI 2026 Architect Professional 1Z0-997-26

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Exam Overview & Architecture Foundations

1.1 Exam Logistics, the 2026 Blueprint & How to Use This Guide 1.2 The OCI Well-Architected Framework & Architectural Tradeoffs

2 Chapter 2: High Availability & Resilient Design

2.1 Availability Domains, Fault Domains, Instance Pools & Load Balancers 2.2 OCI DNS Traffic Steering, Geolocation & Health Checks 2.3 Block Volume Replication, Volume Groups & Backup Policies 2.4 Object Storage Replication, Versioning & Retention Rules (WORM)

3 Chapter 3: Full Stack Disaster Recovery

3.1 Full Stack Disaster Recovery: Protection Groups, Members & Permissions 3.2 DR Plans: Switchover, Failover, Prechecks & Plan Execution 3.3 DR Drills, Plan Customization & Operational Readiness

4 Chapter 4: Container Instances, OCIR & OCI DevOps

4.1 Containerization, Microservices & OCI Container Instances 4.2 OCI Container Registry: Repositories, Push & Pull, and Image Management 4.3 OCI DevOps: Code Repositories, Build Pipelines & Deployment Strategies

5 Chapter 5: OCI Kubernetes Engine (OKE)

5.1 OKE Cluster Types, Node Options & Cluster Creation 5.2 OKE Networking: VCN-Native Pod Networking vs. Flannel, Subnet Sizing & Load Balancers 5.3 OKE Workload Identity, Secrets & Persistent Storage

6 Chapter 6: Serverless Functions & API Gateway

6.1 OCI Functions: Concepts, Invocation Modes, Integrations & Image Security 6.2 API Gateway: Authentication, JWT Validation, Rate Limiting & Usage Plans

7 Chapter 7: Messaging & Event-Driven Design

7.1 OCI Streaming, OCI Queue & Messaging Patterns for Microservices 7.2 OCI Events, Event Rules & OCI Notifications Fan-Out

8 Chapter 8: Infrastructure as Code with Terraform & Resource Manager

8.1 Infrastructure as Code with Terraform and the OCI Provider 8.2 OCI Resource Manager: Stacks, Jobs, Drift Detection & Private Endpoints

9 Chapter 9: Identity & Multi-Tenancy Governance

9.1 IAM Policy Design: Verbs, Conditions, Dynamic Groups & Principals 9.2 Organizations Management, Governance Rules & Compartment Quotas

10 Chapter 10: Security Posture with Cloud Guard & Security Zones

10.1 Cloud Guard: Detector Recipes, Problems, Scores & Responders 10.2 Security Zones & Vulnerability Scanning

11 Chapter 11: Secure Access & Network Protection

11.1 Layered Network Security: Security Lists, NSGs & Private Access to Services 11.2 OCI Bastion: Managed SSH, Port Forwarding & SOCKS5 Sessions 11.3 Zero Trust Packet Routing (ZPR): Security Attributes & Intent-Based Policy 11.4 OCI Network Firewall: Policies, Inspection Routing, Tunnel Inspection & Private NAT

12 Chapter 12: Application & Data Protection: WAF, Certificates & Vault

12.1 OCI Web Application Firewall: Policies, Modules, Actions & Enforcement Points 12.2 OCI Certificates: Private CAs, TLS Certificates, Renewal & Integrations 12.3 OCI Vault Key Management: Vault Types, Protection Modes, Dedicated KMS & External KMS 12.4 Vault Secrets: Versions, Rotation States, Automatic Generation & Rotation

13 Chapter 13: Base Database Service & Autonomous AI Database

13.1 Base Database Service: DB Systems, RAC, Data Guard, Cloning & Maintenance 13.2 Autonomous AI Database: Workload Types, Deployment Options, Services & Connectivity 13.3 Operating Autonomous AI Database: Scaling, Cloning, Backups, Patching & Self-Tuning 13.4 Autonomous Data Guard & Backup-Based Disaster Recovery for Autonomous AI Database

14 Chapter 14: Recovery Service, Global Distribution & OCI Cache

14.1 Autonomous Recovery Service: Protection Policies, Real-Time Protection & Retention Lock 14.2 Globally Distributed Autonomous AI Database: Sharding, Data Placement & Replication 14.3 OCI Cache: Valkey and Redis Clusters, Sharding, Security & Cross-Region Replication

15 Chapter 15: Monitoring, Alarms & Notifications

15.1 OCI Monitoring: Metrics, Namespaces, Custom Metrics & Monitoring Query Language 15.2 Alarms & Notifications: Trigger Rules, Absence Alarms, Split Messages, Suppression & Delivery

16 Chapter 16: Logging, Audit, Connector Hub & Search

16.1 OCI Logging: Log Groups, Service Logs, Custom Logs & the Unified Monitoring Agent 16.2 Logging Search, the Logging Query Language & OCI Audit 16.3 Connector Hub: Moving Logs, Metrics, Queue Messages & Streams Between Services 16.4 OCI Search with OpenSearch & Resource Search for Observability

5.2 OKE Networking: VCN-Native Pod Networking vs. Flannel, Subnet Sizing & Load Balancers

Key Takeaways Explain This Topic AI

OCI-VCN CNI provisions routable VCN private IP addresses directly to pods from a dedicated pod subnet, eliminating overlay packet encapsulation overhead.

The CNI plugin is chosen when the cluster is created and cannot be changed afterward; VCN-native is the Console default, while flannel is the API default.

With VCN-native networking, the maximum pods per node is MIN((number of VNICs − 1) × 31, 256), and security rules on the pod subnet apply to all pods of the node pool.

Virtual nodes require VCN-native pod networking, while flannel works only with managed and self-managed nodes.

Kubernetes Services of type LoadBalancer can provision an OCI Load Balancer or, with the annotation oci.oraclecloud.com/load-balancer-type: "nlb", a Network Load Balancer.

Last updated: October 2026

  • 10.2 OKE Networking: VCN-Native Pod Networking (OCI-VCN CNI) vs Flannel
  • Container Network Interface (CNI) Architecture in OKE

Networking represents one of the most consequential architectural decisions when provisioning an OKE cluster. The Container Network Interface (CNI) plugin dictates how IP addresses are assigned to pods, how packets traverse the cluster fabric, how microservices communicate with external cloud and on-premises resources, and how security policies are enforced at the network boundary.

OKE supports two networking architectures: OCI VCN-Native Pod Networking and flannel overlay networking. Key rules:

The network type is chosen when the cluster is created, and you cannot change the CNI plugin afterward . All node pools in a cluster use the same plugin.

The Console uses VCN-native networking by default (Kubernetes 1.22 or later); the API defaults to flannel unless you choose otherwise.

Virtual node pools require VCN-native networking. Flannel works only with managed and self-managed nodes.

Calico can be installed to enforce Kubernetes NetworkPolicy with either plugin, and Oracle recommends the Cilium CNI for very large clusters (more than 5,000 nodes).

Choosing between the models affects IP address consumption, routability, and how security rules are applied.

OCI-VCN CNI (VCN-Native Pod Networking) Architecture

In the OCI-VCN CNI plugin model, Kubernetes pods are first-class citizens of the OCI Virtual Cloud Network (VCN):

Direct VCN IP Allocation

Every pod is allocated a private IP address from a VCN subnet, the pod subnet , which must be private and regional . Worker nodes use a primary VNIC for node traffic and one or more secondary VNICs whose secondary private IPs are handed to pods. The worker node subnet and the pod subnet must be in the same VCN; in some cases they can even be the same subnet.

No Overlay Encapsulation

Because pod IP addresses belong natively to the VCN, packets travel across the physical OCI fabric without software overlay encapsulation (such as VXLAN or Geneve). Pods therefore avoid the CPU overhead and extra headers of overlay encapsulation and can use the VCN's standard 9,000-byte MTU for traffic inside the VCN.

Direct Hybrid & Peering Routability

Because pod IPs reside within the VCN's routable address space, pods can directly communicate with:

Other VCN subnets and peered VCNs via Local Peering Gateways (LPG) or Dynamic Routing Gateways (DRG v2).

On-premises data centers traversing OCI FastConnect or Site-to-Site IPsec VPN without requiring Network Address Translation (NAT) or Ingress proxy hops.

Autonomous Databases and Base DB systems residing in private DB subnets.

External corporate systems that require initiating inbound TCP connections directly to specific pod IP addresses.

Security Rules for Pods

With VCN-native networking you control pod traffic with NSGs (recommended) or security lists defined for the pod subnet of a node pool. Those rules apply to all pods on the worker nodes attached to that pod subnet, so put workloads with different security needs into different node pools and pod subnets. For rules between individual pods inside the cluster, add Kubernetes NetworkPolicy enforcement, for example with Calico. Because pods have real VCN addresses, VCN Flow Logs show traffic by pod IP. Note that pod IPs are not persistent: a recreated pod usually gets a new address, so on-premises systems should target a Service or load balancer rather than a pod IP.

In clusters that use the VCN-native plugin, managed and self-managed nodes can also carry Zero Trust Packet Routing (ZPR) security attributes, which adds intent-based policy on top of NSGs and security lists (ZPR is not supported for virtual node pools or flannel clusters).

Flannel Overlay Network Architecture

Flannel is a mature, host-local overlay networking plugin that creates an isolated virtual network on top of the OCI VCN:

VXLAN Encapsulation

Flannel assigns each worker node a slice of an internal, cluster-wide private CIDR block (default 10.244.0.0/16 ). Pods receive IP addresses from this overlay range. When a pod communicates with a pod on another worker node, the Flannel daemon encapsulates the inner Ethernet frame inside a standard UDP packet (port 8472) on the sending node and decapsulates it on the receiving node.

IP Address Conservation

The primary advantage of Flannel is IP space conservation. In corporate environments where the network team has allocated a very small VCN CIDR block (such as a /24 allowing only 256 addresses), deploying hundreds of pods with OCI-VCN CNI would result in rapid IP exhaustion. Flannel consumes only one primary private VCN IP address per worker node, regardless of whether that node hosts 10 or 100 pods.

Operational Limitations of Flannel

Encapsulation Overhead : The VXLAN header adds about 50 bytes to every packet, so the pod interface MTU must be 50 bytes smaller than the node's MTU (for example, 8,950 bytes on a 9,000-byte VCN). Encapsulation and decapsulation also consume worker CPU.

Non-Routable Pod IPs : Flannel pod IPs are completely invisible and unroutable outside the Kubernetes cluster. On-premises systems or external VCN instances cannot route directly to a pod.

Egress SNAT : When a pod initiates a connection to an external resource (such as an Autonomous Database or on-premises server), the worker node applies Source Network Address Translation (SNAT), replacing the pod IP with the node's primary private IP. Consequently, target systems and VCN Flow Logs see only the host node IP, eliminating pod-level attribution for security auditing.

Subnet CIDR Sizing & Capacity Planning

When implementing OCI-VCN CNI, inadequate subnet sizing can halt cluster scaling. Architects must calculate required address space for both the Node Subnet and the Pod Subnet .

Sizing Formula for OCI-VCN CNI Pod Subnets

The required pod subnet CIDR capacity is governed by the maximum anticipated cluster scale: Required Pod Subnet IPs = (Max Worker Nodes * Max Pods Per Node) + OCI Reserved IPs

The maximum pods per node depends on the shape's VNIC limit: MIN((number of VNICs − 1) × 31, 256) . Lowering the configured maximum pods per node reduces the number of IP addresses pre-allocated in the pod subnet.

OCI permanently reserves 3 IP addresses in every subnet (the network address, default gateway, and broadcast address).

Sizing Example

Consider an enterprise cluster designed to scale to a maximum of 100 worker nodes , with each node's shape supporting two VNICs, which allows up to 31 pods per node ((2 − 1) × 31):

Active pod capacity: 100 nodes multiplied by 31 pods = 3,100 IP addresses.

Rolling node replacement buffer: During a Kubernetes version upgrade, new nodes are provisioned before old nodes are terminated. A 20% surge requires 20 additional nodes: 20 nodes multiplied by 31 pods = 620 additional pod IPs.

Total required IPs: 3,100 + 620 + 3 = 3,723 IP addresses.

Subnet selection: A /21 subnet provides 2,048 addresses (insufficient). The architect must provision a /20 subnet , which provides 4,096 IP addresses , ensuring adequate headroom for scaling and non-disruptive upgrades.

Ingress & Service Load Balancing: OCI NLB vs. Flexible ALB

Exposing microservices to external consumers or internal VCN clients is managed by the OKE OCI Cloud Controller Manager (CCM) through Kubernetes type: Service LoadBalancer definitions. Architects control load balancer provisioning using declarative annotations:

1. OCI Network Load Balancer (NLB) — Layer 4

The OCI Network Load Balancer provides non-terminating, pass-through Layer 4 (TCP/UDP) routing engineered for extreme performance:

Throughput & Latency : Designed for high-throughput, low-latency Layer 4 load balancing of TCP and UDP traffic.

Source IP Preservation : Natively preserves the client's original source IP address without requiring HTTP X-Forwarded-For headers or Proxy Protocol injection.

Annotation : Enabled by specifying oci.oraclecloud.com/load-balancer-type: "nlb" in the Service manifest.

2. OCI Flexible Load Balancer (ALB) — Layer 7

The OCI Flexible Load Balancer provides comprehensive Layer 7 HTTP/HTTPS application routing:

Advanced Traffic Routing : Supports SSL/TLS termination, HTTP path-based and host-based routing, cookie-based session persistence, and integration with OCI Web Application Firewall (WAF).

Dynamic Bandwidth : Configured with dynamic minimum and maximum bandwidth limits (e.g., min 10 Mbps, max 400 Mbps) to scale automatically with incoming request volume.

Annotations : Enabled with service.beta.kubernetes.io/oci-load-balancer-shape: "flexible" along with flex-min and flex-max bandwidth specifications.

Networking Architectural Tradeoff Matrix

  • Feature OCI-VCN CNI (VCN-Native) Flannel Overlay Network
  • Pod IP Addressing Native routable VCN private IPs Isolated overlay CIDR (e.g., 10.244.0.0/16)
  • Network Performance No encapsulation overhead Slight CPU overhead from VXLAN encapsulation
  • Packet MTU Full VCN MTU Node MTU minus about 50 bytes of VXLAN overhead

Hybrid Connectivity Direct bidirectional routing across FastConnect/VPN Requires Ingress controllers or NodePort services

Security Enforcement NSGs or security lists on the pod subnet (per node pool), plus NetworkPolicy Rules on worker node subnets, plus NetworkPolicy

  • VCN Flow Log Visibility Exact pod IP tracked in flow logs Obscured by worker node SNAT IP
  • VCN IP Consumption High (1 VCN IP per pod + node IPs) Low (1 VCN IP per worker node only)

Loading diagram... OCI-VCN CNI Native Routing vs Flannel Overlay Packet Traversal