Calico IP range should be a config option

Bug #1809355 reported by Tim Van Steenburgh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Calico Charm
Fix Released
Undecided
George Kraft

Bug Description

Opened by Cynerva on 2017-02-02 18:31:13+00:00 at https://github.com/juju-solutions/layer-calico/issues/4

------------------------------------------------------------

We're using a hardcoded 192.168.0.0/16 range right now. It needs to be a config option.
From #1:

Config would be better extended to specify the IP range (default is 192.168.0.0/16). To change this, configure_calico_pool() should delete the existing pool and create a new one with the IPIP/nat-outgoing options.

Tags: cpe-onsite
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

It should be a bit more elaborate as there can be many pools per a single Calico deployment:

https://docs.projectcalico.org/v3.5/reference/calicoctl/resources/ippool

I would suggest making the configuration of an out-of-the-box pool optional and making pool management doable via actions as this is something user-defined. Calico charm could warn a user that there are no pools configured via charm status.

tags: added: cpe-onsite
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

Dmitrii what's the urgency on this?

Revision history for this message
George Kraft (cynerva) wrote :

Fixed by https://github.com/charmed-kubernetes/layer-calico/pull/33, which is available with cs:~containers/calico-630 in the edge channel.

The fix makes the CIDR configurable:

juju config calico cidr=192.168.0.0/16

And makes it possible to bypass charm pool management so you can manually configure multiple pools if needed:

juju config calico manage-pools=false
juju ssh calico/0 calicoctl apply -f - << EOF
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
  name: my-pool
spec:
  cidr: 192.168.0.0/24
  ipipMode: Never
  natOutgoing: true
EOF

Changed in charm-calico:
assignee: nobody → George Kraft (cynerva)
status: New → Fix Committed
Changed in charm-calico:
milestone: none → 1.15
Changed in charm-calico:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.