diff --git a/README.md b/README.md index b06649f20..9551e5351 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,7 @@ Similar to above, `ipRanges` can be used for configuring DualStack ### Fast IPAM Configuration +``` apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: @@ -215,10 +216,10 @@ spec: "type": "whereabouts", "range": "192.168.2.0/24", "fast_ipam": true, - "node_slice size": "/22", - "namespace": "namespace of network attachment definitions and whereabouts deployment" - } -}' + "node_slice size": "/22" + } + }' +``` This setup enables the fast IPAM feature to optimize IP allocation for nodes, improving network performance in clusters with high pod density. Please note, you must run a whereabouts controller for this to work. Manifest can be found in doc/crds/node-slice-controller.yaml. diff --git a/pkg/types/types.go b/pkg/types/types.go index 764b4b9ef..8bd80bc59 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -83,7 +83,6 @@ func (ic *IPAMConfig) UnmarshalJSON(data []byte) error { Addresses []Address `json:"addresses,omitempty"` IPRanges []RangeConfiguration `json:"ipRanges"` NodeSliceSize string `json:"node_slice_size"` - Namespace string `json:"namespace"` //TODO: best way to get namespace of the NAD? OmitRanges []string `json:"exclude,omitempty"` DNS cnitypes.DNS `json:"dns"` Range string `json:"range"`