
The /etc/sysctl.d/k8s.conf file is missing the below iptable config values which causes the error in kubeadm init - "/proc/sys/net/ipv6/conf/default/forwarding was not set to 1" during optimized BnR opearion. net.ipv4.ip_forward = 1 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.all.rp_filter = 0 net.ipv6.conf.all.forwarding = 1 Recent changes in the below review modified the way Kubernetes is restored. It exposes the incorrect kernel parameters in stx-puppet. https://review.opendev.org/c/starlingx/ansible-playbooks/+/890370 This change updates the correct iptable configuration values in the file /etc/sysctl.d/k8s.conf during bootstrap which fixes the optimized BnR operation failure. These settings are intended to exactly align with the settings already being configured by the bringup-kubemaster task in the ansible-playbooks. Test Plan: PASS: Fresh install ISO as AIO-SX. Verify that /etc/sysctl.d/k8s.conf have the correct configuration values. PASS: Performed optimized BnR on IPv4 enabled AIO-SX. PASS: Performed optimized BnR on IPv6 enabled AIO-SX. Closes-Bug: 2038545 Change-Id: I585117190b2372cfd7c978eff9bd9ff6da61a88f Signed-off-by: Ramesh Kumar Sivanandam <rameshkumar.sivanandam@windriver.com>
stx-puppet
The starlingx/stx-puppet repository handles the Puppet service1.
The Puppet service runs during bootstrap, and at every reboot, to provide a consistent configuration across the StarlingX system nodes.
This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest2.
References
Description
Languages
Puppet
58.7%
Python
21.2%
HTML
7.6%
Shell
7.1%
Ruby
4.7%
Other
0.7%