Commit Graph

2228 Commits (a58d9f6a70c7c861df29aef9c8ba3045eacc3f75)

Author SHA1 Message Date
Derek Nola a58d9f6a70
[Release-1.22] Testing Directory rework and cert rotation test (#5761)
* Testing directory rework
* New cert rotation test
* Remove unnecessary e2e go.mod
* Move cgroup and install tests out of the vagrant directory
* Remove unit test from Drone

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-06-28 10:37:41 -07:00
Nikolai Shields bb0cdd929a
Merge pull request #5752 from galal-hussein/v1.22.11-k3s1
Update to v1.22.11-k3s1
2022-06-22 13:03:21 -05:00
galal-hussein cb9143dfb1 Update to v1.22.11
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2022-06-22 00:15:13 +02:00
Brad Davidson 8e35299b41 Bump helm-controller
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-16 14:40:29 -07:00
Roberto Bonafiglia 6856e6f07b
Merge pull request #5722 from rbrtbnfgl/release1.22-flannelupdate
[Release 1.22] Flannel version update to 0.18.1 and added the ability to configure additional options for wireguard backend
2022-06-16 11:31:18 +02:00
Roberto Bonafiglia 6155a17f31 Update flannel to 0.18.1
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
2022-06-16 10:02:57 +02:00
Sjoerd Simons 94dbfebfc2 Add ability to pass configuration options to flannel backend
Allow the flannel backend to be specified as
backend=option=val,option2=val2 to select a given backend with extra options.

In particular this adds the following options to wireguard-native
backend:
* Mode - flannel wireguard tunnel mode
* PersistentKeepaliveInterval- wireguard persistent keepalive interval

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2022-06-16 10:02:12 +02:00
Brad Davidson be4b14e501 Only listen on loopback when resetting
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-15 14:28:01 -07:00
Derek Nola c9a44790e1
Delay service readiness until after startuphooks have finished (#5724)
* Move startup hooks wg into a runtime pointer, check before notifying systemd
* Switch default systemd notification to server
* Add 1 sec delay to allow etcd to write to disk
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-06-15 13:45:26 -07:00
Brad Davidson edd2fb9535 Ensure that CONTAINERD_ variables are not shadowed by later entries
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-15 10:58:29 -07:00
Brad Davidson 71cb8994fd Sanitize filenames for use in configmap keys
If the user points S3 backups at a bucket containing other files, those
file names may not be valid configmap keys.

For example, RKE1 generates backup files with names like
`s3-c-zrjnb-rs-6hxpk_2022-05-05T12:05:15Z.zip`; the semicolons in the
timestamp portion of the name are not allowed for use in configmap keys.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-15 10:55:58 -07:00
Brad Davidson 952f068a70 Disable urfave markdown/man docs generation
From https://github.com/urfave/cli/pull/1383 :
> This removes the resulting binary dependency on cpuguy83/md2man and
> russross/blackfriday (and a few more packages imported by those),
> which saves more than 400 KB (more than 300 KB
> once stripped) from the resulting binary.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-15 10:54:01 -07:00
Manuel Buil bf272ab137
Merge pull request #5684 from manuelbuil/flannelCNIconf122
[Release 1.22] Add FlannelConfCNI flag
2022-06-15 10:18:39 +02:00
Manuel Buil 4045f026eb
Merge pull request #5679 from manuelbuil/ipvs0-if-remove-122
[Release 1.22] Remove kube-ipvs0 interface when cleaning up
2022-06-15 10:17:49 +02:00
Derek Nola 74c940ddc3
[Release-1.22] Integration and E2E test improvements (#5685)
* Integration Test: Startup (#5630)

* New startup integration test
* Add testing section to PR template
* Move helper functions to direct k8s client calls

Signed-off-by: Derek Nola <derek.nola@suse.com>

* E2E Improvements and groundwork for test-pad tool (#5593)

* Add rancher install sript, taints to cp/etcd roles
* Revert back to generic/ubuntu2004, libvirt networking is unreliable on opensuse
* Added support for alpine
* Rancher deployment script
* Refactor installType into function
* Cleanup splitserver test
Signed-off-by: Derek Nola <derek.nola@suse.com>

* E2E: Dualstack test (#5617)

* E2E dualstack test
* Improve testing documentation

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Fix import

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-06-14 17:51:20 -07:00
Derek Nola dd3485c202
add support for pprof server (#5527) (#5691)
Signed-off-by: igor <igor@igor.io>
Signed-off-by: Derek Nola <derek.nola@suse.com>

Co-authored-by: Igor <igorwwwwwwwwwwwwwwwwwwww@users.noreply.github.com>
2022-06-14 17:50:21 -07:00
Manuel Buil 05592ad015 Add FlannelConfCNI flag
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-06-14 10:27:22 +02:00
Manuel Buil e6e2fdaf51 Remove kube-ipvs0 interface when cleaning up
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-06-14 10:18:43 +02:00
Brad Davidson b004f4d578 Set default egress-selector-mode to agent
... until QA flakes can be addressed.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-10 10:14:51 -07:00
Brad Davidson bc726e2cba Remove control-plane egress context and fix agent mode.
The control-plane context handles requests outside the cluster and
should not be sent to the proxy.

In agent mode, we don't watch pods and just direct-dial any request for
a non-node address, which is the original behavior.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-10 10:14:51 -07:00
Brad Davidson 28eb743905 Refactor egress-selector pods mode to watch pods
Watching pods appears to be the most reliable way to ensure that the
proxy routes and authorizes connections.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-08 09:35:56 -07:00
Brad Davidson 571e4812db Bump containerd and runc
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-06-07 13:40:28 -07:00
Hussein Galal 8dc262ead8
Update to v1.22.10 (#5612)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2022-05-26 01:34:23 +02:00
Derek Nola b1a3ad0aa2
Add new `k3s completion` command for shell completion (#5592)
* Add shell completion CLI
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-05-23 08:36:15 -07:00
Brad Davidson 244c56eb65 Bump dynamiclistener to v0.3.3
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1ef34728c9)
2022-05-20 16:39:13 -07:00
Donnie Adams 3be8dda856 Remove objects when removed from manifests (#5560)
* 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 c38a8c3b43)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-05-20 16:39:13 -07:00
Brad Davidson b24c7e2330 Update CNI version in config file
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e6385b2341)
2022-05-20 16:39:13 -07:00
Brad Davidson dfe5ec7367 Fix typo in image scan script
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e4369ce0a8)
2022-05-20 16:39:13 -07:00
Brad Davidson aaeb37b506 Move auto-generated resolv.conf out of /tmp to prevent accidental cleanup
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1d4f995edd)
2022-05-20 16:39:13 -07:00
Brad Davidson b330ce340a Add support for configuring the EgressSelector mode
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 9d7230496d)
2022-05-20 16:39:13 -07:00
Brad Davidson 3fa5619d73 Replace DefaultProxyDialerFn dialer injection with EgressSelector support
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit ce5b9347c9)
2022-05-20 16:39:13 -07:00
Brad Davidson ea09106737 Ensure that WaitForAPIServerReady always re-dials through the loadbalancer
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit e763fadbba)
2022-05-20 16:39:13 -07:00
Brad Davidson b158411687 Don't start embedded kubelet until after apiserver is up
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit d93b750326)
2022-05-20 16:39:13 -07:00
Brad Davidson 2217002c8f Use ListWatch helpers instead of bare List/Watch
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 13ca10664f)
2022-05-20 16:39:13 -07:00
Brad Davidson 55b6d42153 Bump kine to v0.9.1 for nats.io support
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit c9badb4fd7)
2022-05-20 16:39:13 -07:00
Brad Davidson 4f78499cd4 Make supervisor errors parsable by Kubernetes client libs
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 3d01ca1309)
2022-05-20 16:39:13 -07:00
Brad Davidson e1ba7a299f Drop unnecessary intermediate variable
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit a69d635c9b)
2022-05-20 16:39:13 -07:00
Brad Davidson c1d1ab674d Add systemd cgroup controller support
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 333311c7ee)
2022-05-20 16:39:13 -07:00
Brad Davidson 4943071aa0 Add CNI Plugins and Flannel version to build scripts
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1caae63140)
2022-05-20 16:39:13 -07:00
Brad Davidson 7168f7282c Move IPv4/v6 selection into helpers
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit b12cd62935)
2022-05-20 16:39:13 -07:00
Brad Davidson f5b8f4b46c Use core constants for cert user/group values
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 99851b0f84)
2022-05-20 16:39:13 -07:00
Brad Davidson 6a83c1e1b0 Fix log spam due to servicelb event recorder namespace conflict
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 965d0a08ef)
2022-05-20 16:39:13 -07:00
Brad Davidson e17ba49641 Support MixedProtocolLBService and clean up Daemonsets on type change.
Also add event support to increase visibility of change events.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 44c53743dd)
2022-05-20 16:39:13 -07:00
Derek Nola 0663681a3d
Replace rancher with k3s-io (#5585)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-05-19 15:54:21 -07:00
Hussein Galal beaed3c5ed
[Release-1.22] Add systemd cgroup controller support (#5555)
* Add systemd cgroup controller support

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>

* Drop unnecessary intermediate variable

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>

Co-authored-by: Brad Davidson <brad.davidson@rancher.com>
2022-05-12 22:20:50 +02:00
Manuel Buil 811e1bee8a
Merge pull request #5537 from manuelbuil/traefik-dualStack-122
[Release 1.22] Add "ipFamilyPolicy: PreferDualStack" to have dual-stack ingress support
2022-05-05 07:51:59 +02:00
Manuel Buil 329b0c3f45 Add "ipFamilyPolicy: PreferDualStack" to have dual-stack ingress support
Signed-off-by: Manuel Buil <mbuil@suse.com>
2022-05-04 18:38:23 +02:00
Brad Davidson 8b0b50a5e8
[release-1.22] Fix issue with datastore corruption on cluster-reset (#5517)
* Bump etcd to v3.5.4-k3s1
* Fix issue with datastore corruption on cluster-reset
* Disable unnecessary components during cluster reset

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-04-27 15:11:41 -07:00
Roberto Bonafiglia e2c3b89ee5
Added default endpoint for IPv6 (#5510)
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
2022-04-26 09:16:36 -07:00
Brad Davidson 909d037757
Bump containerd for selinux fix (#5508)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-04-25 14:25:56 -07:00