# Cluster Networking

Kubernetes networking consists of several key components that enable seamless communication between pods, services, and external clients.

## Pod-to-Pod Communication

* Kubernetes assigns each pod a unique IP from the containerCIDR.
* Pods within the same node communicate via the local bridge network.
* Inter-node pod communication is enabled through an overlay network (VXLAN, IP-in-IP) or direct routing.

## Service Networking

* Services expose workloads internally using a virtual IP assigned from the servicesCIDR.
* kube-proxy manages traffic routing using iptables generally.
* External access is provided via LoadBalancer (cloud provider integration), NodePort, or Ingress.

## ContainerCIDR and ServicesCIDR

* Container CIDR defines the range of IPs allocated to pods.
  * The **default** **pod CIDR** for PCD Kubernetes cluster is **10.244.0.0/16**
  * **Must not overlap with PCD Virtualization private networks.**
* Service CIDR defines the range of virtual IPs assigned to services.
  * The **default** **service CIDR** for PCD Kubernetes cluster is **10.96.0.0/16**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/private-cloud-director/kubernetes-clusters/pcd-kubernetes-clusters/kubernetes-cluster-networking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
