Skip to content

Commit

Permalink
Merge pull request k0sproject#3731 from ncopa/fix-network-docs
Browse files Browse the repository at this point in the history
Minor clarification/consistency fixes in network docs
  • Loading branch information
twz123 authored Nov 27, 2023
2 parents 5a2444e + 8d25ae1 commit 9096897
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docs/networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ One goal of k0s is to allow for the deployment of an isolated control plane, whi

## Required ports and protocols

| Protocol | Port | Service | Direction | Notes
|-----------|-----------|---------------------------|-----------------------------|--------
| TCP | 2380 | etcd peers | controller <-> controller |
| TCP | 6443 | kube-apiserver | Worker, CLI => controller | Authenticated Kube API using Kube TLS client certs, ServiceAccount tokens with RBAC
| TCP | 179 | kube-router | worker <-> worker | BGP routing sessions between peers
| UDP | 4789 | Calico | worker <-> worker | Calico VXLAN overlay
| TCP | 10250 | kubelet | Master, Worker => Host `*` | Authenticated kubelet API for the master node `kube-apiserver` (and `heapster`/`metrics-server` addons) using TLS client certs
| TCP | 9443 | k0s-api | controller <-> controller | k0s controller join API, TLS with token auth
| TCP | 8132 | konnectivity | worker <-> controller | Konnectivity is used as "reverse" tunnel between kube-apiserver and worker kubelets
| Protocol | Port | Service | Direction | Notes
|----------|-------|----------------|--------------------------------|--------
| TCP | 2380 | etcd peers | controller <-> controller |
| TCP | 6443 | kube-apiserver | worker, CLI => controller | Authenticated Kube API using Kube TLS client certs, ServiceAccount tokens with RBAC
| TCP | 179 | kube-router | worker <-> worker | BGP routing sessions between peers
| UDP | 4789 | Calico | worker <-> worker | Calico VXLAN overlay
| TCP | 10250 | kubelet | controller, worker => host `*` | Authenticated kubelet API for the controller node `kube-apiserver` (and `heapster`/`metrics-server` addons) using TLS client certs
| TCP | 9443 | k0s-api | controller <-> controller | k0s controller join API, TLS with token auth
| TCP | 8132 | konnectivity | worker <-> controller | Konnectivity is used as "reverse" tunnel between kube-apiserver and worker kubelets

You also need enable all traffic to and from the [podCIDR and serviceCIDR] subnets on nodes with a worker role.

[podCIDR and serviceCIDR]: configuration.md#specnetwork

## iptables

Expand Down

0 comments on commit 9096897

Please sign in to comment.