Skip to content

Service address pools

First we need to create a pool of ips designated for use as service addresses.

see Cilium for details.

Click the for more information.

cat <<EOF | kubectl apply -f -
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
  name: "default-pool"
  namespace: kube-system
spec:
  allowFirstLastIPs: "Yes" (1)
  blocks:
  - cidr:  "192.168.249.0/24" (2)
  - start: "192.168.22.100"  (3)
    stop:  "192.168.22.150"  (4)
EOF
  1. Allow use of .0 and .255, usually reserved.
  2. Accepts full CIDR notation
  3. Also accepts a range, definining start and stop.
  4. Also accepts a range, definining start and stop.