Skip to content

Commit

Permalink
fix readme formatting, remove unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelichkovich committed Jul 24, 2024
1 parent f1a7e7a commit 7924e4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down
1 change: 0 additions & 1 deletion pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 7924e4f

Please sign in to comment.