Rate This Document
Findability
Accuracy
Completeness
Readability

Adding an IP Address Pool

  1. Edit the YAML file of the new IP address pool.

    Configure a new IP address pool. Ensure that the name and CIDR of the IP address pool cannot conflict with those of existing IP address pools.

    1
    2
    3
    4
    5
    6
    7
    8
    apiVersion: projectcalico.org/v3
    kind: IPPool
    metadata:
    name: ippool-vxlan
    spec:
    cidr: 192.144.0.0/16
    vxlanMode: Always
    natOutgoing: true
    

    For details about parameter settings, see https://docs.projectcalico.org/reference/resources/ippool.

  2. Add an IP address pool.
    $ calicoctl apply -f - < ipPool.yaml

    The following information indicates that the IP address pool is successfully added:

    Successfully applied 1 'IPPool' resource(s)
  3. Run the following command to view the added IP address pool:
    calicoctl get ipPool -o wide
    NAME                 CIDR            NAT    IPIPMODE    VXLANMODE    DiSAblED    SELECTOR
    default-ipv4-ippool  10.244.0.0/16   true   Always      Never        false       all()
    ippool-vxlan         192.144.0.0/16  true   Never       Always       false       all()