Skip to content

Commit

Permalink
Blocksize for calico default pool should be configurable (#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirwan authored and k8s-ci-robot committed Sep 25, 2019
1 parent 2fc02ed commit f18e77f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions inventory/sample/group_vars/k8s-cluster/k8s-net-calico.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# add default ippool name
# calico_pool_name: "default-pool"

# add default ippool blockSize (defaults kube_network_node_prefix)
# calico_pool_blocksize: 24

# add default ippool CIDR (must be inside kube_pods_subnet, defaults to kube_pods_subnet otherwise)
# calico_pool_cidr: 1.2.3.4/5

Expand Down
2 changes: 1 addition & 1 deletion roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"name": "{{ calico_pool_name }}",
},
"spec": {
"blockSize": "{{ kube_network_node_prefix }}",
"blockSize": "{{ calico_pool_blocksize | default(kube_network_node_prefix) }}",
"cidr": "{{ calico_pool_cidr | default(kube_pods_subnet) }}",
"ipipMode": "{{ ipip_mode }}",
"natOutgoing": {{ nat_outgoing|default(false) and not peer_with_router|default(false) }} }} " | {{ bin_dir }}/calicoctl.sh apply -f -
Expand Down

0 comments on commit f18e77f

Please sign in to comment.