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

docs: Automated CherryPick Update for release-v4.4 #3990

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

sealos-ci-robot
Copy link
Member

@sealos-ci-robot sealos-ci-robot commented Sep 25, 2023

🤖 Generated by Copilot at 4a26b63

Summary

🛠️🚀🐳

This pull request adds IPVS load balancing and a default domain name for the k3s API server using the lvscare static pod and the k3s bootstrap module. It also refactors and fixes some code in the k3s, kubeadm, and template packages, and updates the test cases and the rootfs dockerfile accordingly.

Sing, O Muse, of the mighty deeds of sealos, the tool of k3s
That changes paths and ports and pods with skill and ease
And adds new features and functions to the k3s bootstrap module
To make the cluster more robust and flexible with IPVS and domain

Walkthrough

  • Add functions to update /etc/hosts file on master nodes with default API server domain name and host IP address (link, link)
  • Add functions to get API server port, master IP list and port, and VIP and port from k3s configuration or default values (link)
  • Add function to create IPVS rules on joining nodes using remoteUtil.IPVS (link)
  • Replace 0.0.0.0 address with default API server domain name in admin.config file on master0 node (link)
  • Implement SyncNodeIPVS method to update lvscare static pod on each node with latest master IP list and port using errgroup (link)
  • Implement deleteNode method to remove master node from k3s cluster using kubectl delete node (link)
  • Add path and options parameters to StaticPod function to customize static pod manifest template for different runtime environments and additional flags (link, link)
  • Change defaultPodManifestPath constant to use absolute path of pod-manifests directory for k3s agents (link)
  • Change base image for rootfs dockerfile to use specific version of k3s (link)
  • Replace hardcoded value of 6443 with DefaultAPIServerPort constant from constants package (link)
  • Remove unused function to get container runtime endpoint from k3s configuration (link)
  • Change variable name and error message in IPVSClean function to match function name and include node IP address (link)
  • Change test function to use static pod manifest template and RenderTemplate function instead of semverCompare and TryParse functions (link)
  • Add path parameter to StaticPod function call in runtime_getter.go to specify kubeadm static pod directory (link)

Automated changes by create-pull-request GitHub action

@cuisongliu cuisongliu merged commit ab27236 into release-v4.4 Sep 25, 2023
28 of 29 checks passed
@cuisongliu cuisongliu deleted the cherry-pick-release-v4.4-3944 branch September 25, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants