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

[release-1.22] Backport bugfixes and enhancements from master #5586

Merged
merged 19 commits into from
May 20, 2022

Conversation

brandond
Copy link
Member

@brandond brandond commented May 19, 2022

Proposed Changes

Backport bugfixes and enhancements from master to release-1.22

Types of Changes

backports

Verification

See linked issues

Linked Issues

User-Facing Change

The embedded ServiceLB LoadBalancer controller now supports mixed-protocol Services, and will clean up daemonsets when the Service type changes.
CNI plugins binaries now output the correct versions when queried on the command line
CNI plugins have been bumped to v1.1.1
K3s now uses the systemd cgroup driver instead of cgroupfs when running under systemd 244 or later.
K3s supervisor status errors are now wrapped in Kubernetes API error types, for improved compatibility with Kubernetes client libraries.
K3s now supports [NATS JetStream](https://docs.nats.io/nats-concepts/jetstream) as a datastore backend
The embedded kubelet now waits for the apiserver to become available before starting.
The K3s supervisor now implements a [KEP-1281](https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1281-network-proxy) compliant apiserver network proxy.
The integrated apiserver network proxy's operational mode can now be set with `--egress-selector-mode`.
When generating a replacement resolv.conf due to potentially unsuitable nameservers in the host resolv.conf, k3s now logs a warning, and stores the autogenerated configuration file in a more durable location.
Objects will be removed from Kubernetes when they are removed from manifest files.

Further Comments

@brandond brandond requested a review from a team as a code owner May 19, 2022 23:55
Also add event support to increase visibility of change events.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 44c5374)
Don't hardcode the event namespace when creating event recorders; some controllers want to create events in other namespaces.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 965d0a0)
Also update cert gen to ensure leaf certs are regenerated if other key fields change.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 99851b0)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit b12cd62)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1caae63)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 333311c)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit a69d635)
This gives nicer errors from Kubernetes components during startup, and
reduces LOC a bit by using the upstream responsewriters module instead
of writing the headers and body by hand.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 3d01ca1)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit c9badb4)
Reduces code complexity a bit and ensures we don't  have to handle closed watch channels on our own

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 13ca106)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit d93b750)
…ancer

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e763fad)
…port

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit ce5b934)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 9d72304)
…anup

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1d4f995)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e4369ce)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e6385b2)
@brandond brandond force-pushed the 2022-05-backports_release-1.22 branch from ace2353 to 4952b26 Compare May 20, 2022 00:13
* Remove objects when removed from manifests

If a user puts a file in /var/lib/rancher/k3s/server/manifests/ then the
objects contained therein are deployed to the cluster. If the objects
are removed from that file, they are not removed from the cluster.

This change tracks the GVKs in the files and will remove objects when
there are removed from the cluster.

Signed-off-by: Donnie Adams <donnie.adams@suse.com>
(cherry picked from commit c38a8c3)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the 2022-05-backports_release-1.22 branch from 4952b26 to 17835e0 Compare May 20, 2022 04:25
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1ef3472)
@brandond brandond merged commit 244c56e into k3s-io:release-1.22 May 20, 2022
@brandond brandond deleted the 2022-05-backports_release-1.22 branch June 6, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants