Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PSUPCLPL-9776] change default podSubnet for IPv6 #174

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

n549
Copy link
Collaborator

@n549 n549 commented Jun 3, 2022

Description

In case of ipv6 usage kubernetes uses /64 for pod subnet per node by default. Accordingly pod subnet for the cluster should be not less than pod subnet per node. Current default podSubnet is fd02::/80 which leads to error during installation procedure.
There are flags for controller-manager which allow to reduce this network but kubeadm fails to run some command during cluster installation. So it's better to use the default kubernetes settings.

Fixes # (issue)
PSUPCLPL-9776

Solution

  • change mask for ipv6 default podSubnet from /80 to /48.
  • adjust default setting for CALICO_ROUTER_ID so it would be hash in case of ipv6 podSubnet (this setting is already described in the installation documentation, but making it default helps to avoid errors in case users don't read all the documentation).

How to apply

Deploy cluster in ipv6 network environment.

Test Cases

  1. Deploy cluster in ipv6 network environment.
    Check that no errors about podSubnet appear during the installation and calico is up&running.

  2. Deploy cluster with default calico settings in ipv4 environment.
    Check that calico-node pods are up&running.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Integration CI passed
  • Unit tests. If Yes list of new/changed tests with brief description
  • There is no merge conflicts

Unit tests

Indicate new or changed unit tests and what they do, if any.

Reviewers

@koryaga @iLeonidze @Zaborin @alexarefev @Yaroslav-Lahtachev @dmyar21

@n549 n549 added the bug Something isn't working label Jun 3, 2022
@koryaga koryaga merged commit d1a023a into main Jun 6, 2022
@koryaga koryaga deleted the change_default_ipv6_podsubnet branch June 6, 2022 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants