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
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
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
Michal Rostecki
33d61bdb26
netpol: Add dual-stack support
...
This change allows to define two cluster CIDRs for compatibility with
Kubernetes dual-stuck, with an assumption that two CIDRs are usually
IPv4 and IPv6.
It does that by levearaging changes in out kube-router fork, with the
following downstream release:
https://github.com/k3s-io/kube-router/releases/tag/v1.3.2%2Bk3s
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com >
2022-04-15 14:23:28 -07:00
Brad Davidson
c33aa20831
Fix issue with RKE2 servers hanging on listing apiserver addresses
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 7e447692c5 )
2022-04-15 11:15:00 -07:00
Brad Davidson
b61cdce8c6
Allow agents to query non-apiserver supervisors for apiserver endpoints
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 49544e0d49 )
2022-04-15 11:15:00 -07:00
Roberto Bonafiglia
d7e7ddf168
Updated wireguard-native options and added log message
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-11 09:54:42 +02:00
Roberto Bonafiglia
e24e6446fd
Added new flannel backend to use wireguard from flannel
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-11 09:54:26 +02:00
Euan Kemp
d4a3edf728
Allow using flannel wireguard backend in a custom config
...
Ideally we'd have fully fleshed out support for it (i.e. #5011 ), but
that's a potentially breaking change and taking a little while to merge.
This is a much simpler change which won't break anything, but will allow
a "Type": "wireguard" reference in the "--flannel-conf" custom config
file to work.
Signed-off-by: Euan Kemp <euank@euank.com >
2022-04-11 09:53:23 +02:00
Roberto Bonafiglia
ba0270c6bc
Fixed loadbalancer in case of IPv6 addresses
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-05 10:22:34 +02:00
Roberto Bonafiglia
a8fdf93e15
Updated localhost address on IPv6 only setup
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-05 10:18:58 +02:00
Luther Monson
4a97a7c8da
add a wrapper around the containerd.New call to fix and pass the proper npipe connector
...
Signed-off-by: Luther Monson <luther.monson@gmail.com >
2022-03-29 18:07:57 -07:00
Brad Davidson
11ac5a87b7
Bootstrap the executor even when the agent is disabled
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit f090bf2d5e )
2022-03-15 18:08:33 -07:00
Brad Davidson
5cb6b1ecbc
Fix adding etcd-only node to existing cluster
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 5014c9e0e8 )
2022-03-15 18:08:33 -07:00
Roberto Bonafiglia
7d555489c0
Changed ipv6 config on flannel setup
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Roberto Bonafiglia
82d5f52719
Added ipv6 only support with flannel
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Roberto Bonafiglia
7bae0481ef
Fixed log in case of ipv6 only config
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Roberto Bonafiglia
29324439b8
Added switch case to check netMode
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Roberto Bonafiglia
2b83753b3c
Fixed in case of empty address
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Roberto Bonafiglia
1187c3573d
Updated flannel to 0.17
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:49 +01:00
Olli Janatuinen
ec59241777
Add support for IPv6 only mode
...
Automatically switch to IPv6 only mode if first node-ip is IPv6 address
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com >
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:48 +01:00
Manuel Buil
1b29b96e49
Fix annoying netpol log
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2022-02-10 20:13:58 +01:00
Michal Rostecki
8798c42886
netpol: Use kube-router as a library
...
Before this change, we were copying a part of kube-router code to
pkg/agent/netpol directory with modifications, from which the biggest
one was consumption of k3s node config instead of kube-router config.
However, that approach made it hard to follow new upstream versions.
It's possible to use kube-router as a library, so it seems like a better
way to do that.
Instead of modifying kube-router network policy controller to comsume
k3s configuration, this change just converts k3s node config into
kube-router config. All the functionality of kube-router except netpol
is still disabled.
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org >
Signed-off-by: Manuel Buil <mbuil@suse.com >
2022-02-07 19:21:57 +01:00
Brad Davidson
4acbbcad01
Move containerd wait into exported function
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-25 13:09:48 -08:00
Manuel Buil
45365943e1
Move flannel logs to logrus
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2022-01-18 14:38:03 +01:00
Roberto Bonafiglia
db4d0466e5
Added debug log for IPv6 Masquerading rule
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com >
2022-01-18 13:10:38 +01:00
Roberto Bonafiglia
f5475bf6a8
Added flannel-ipv6-masq flag to enable IPv6 nat
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com >
2022-01-18 13:10:25 +01:00
Roberto Bonafiglia
4f7fa01730
Added iptables masquerade rules for ipv6 on flannel
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@gmail.com >
2022-01-18 13:10:14 +01:00
Brad Davidson
8b05c21d58
Update wharfie usage in windows code path
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-12-09 13:17:27 -08:00
Brad Davidson
3c0eaf2953
Bump wharfie to v0.5.1 and use shared decompression code
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 7d3447ceff )
2021-12-08 10:51:33 -08:00
Alexey Medvedchikov
968371014a
Include node-external-ip in serving-kubelet.crt SANs ( #4620 )
...
* Include node-external-ip in serving-kubelet.crt SANs
Signed-off-by: Alexey Medvedchikov <alexeymedvedchikov@improbable.io >
(cherry picked from commit 8f389ab030 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-12-08 10:49:06 -08:00
Manuel Buil
817188daa7
Improve flannel logging
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-12-01 18:25:45 +01:00
Manuel Buil
c974abd780
Allow svclb pod to enable ipv6 forwarding
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-11-17 19:35:37 +01:00
Brad Davidson
cee09930cd
Increase agent's apiserver ready timeout ( #4455 )
...
Since we now start the server's agent sooner and in the background, we
may need to wait longer than 30 seconds for the apiserver to become
ready on downstream projects such as RKE2.
Since this essentially just serves as an analogue for the server's
apiReady channel, there's little danger in setting it to something
relatively high.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-11-11 14:02:41 -07:00
Luther Monson
cb0918ae3c
[release-1.22] updating to new signals package in wrangler ( #4422 )
...
* updating to new signals package in wrangler
Signed-off-by: Luther Monson <luther.monson@gmail.com >
2021-11-08 11:52:54 -07:00
Brad Davidson
cc23fce0a7
Watch the local Node object instead of get/sleep looping
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 5acd0b9008 )
2021-10-29 16:44:38 -07:00
Brad Davidson
6349aed8e8
Block scheduler startup on untainted node when using embedded CCM
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3fe460d080 )
2021-10-29 16:44:38 -07:00
Brad Davidson
3988edef25
Add containerd ready channel to delay etcd node join
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 88178ae65e )
2021-10-20 13:05:40 -07:00
Manuel Buil
44013ae899
Enable the inheritance of settings for ipv6
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-09-28 18:28:01 +02:00
Joe Kralicky
debb508643
Nvidia container runtime discovery in containerd config template ( #3890 )
...
* Update the default containerd config template with support for adding extra container runtimes. Add logic to discover nvidia container runtimes installed via the the gpu operator or package manager.
Signed-off-by: Joe Kralicky <joe.kralicky@suse.com >
2021-09-15 14:31:11 -07:00
Manuel Buil
9fcd79baae
Add tests to the dual-stack PR and enable dual-stack with flannel backend
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-09-15 14:11:54 +02:00
Manuel Buil
681058bb40
Add dual-stack support
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-09-15 11:44:48 +02:00
Brad Davidson
3449d5b9f9
Wait for apiserver readyz instead of healthz
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-10 17:04:15 -07:00
Brad Davidson
29c8b238e5
Replace klog with non-exiting fork
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-10 09:36:16 -07:00
Kohei Tokunaga
8b857eef9c
Ship Stargz Snapshotter ( #2936 )
...
* Ship Stargz Snapshotter
Signed-off-by: ktock <ktokunaga.mail@gmail.com >
* Bump github.com/containerd/stargz-snapshotter to v0.8.0
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2021-09-01 16:27:42 -07:00
Brad Davidson
cf12a13175
Add missing node name entry to apiserver SAN list
...
Also honor node-ip when adding the node address to the SAN list, instead
of hardcoding the autodetected IP address.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-01 13:22:32 -07:00
Brad Davidson
e95b75409a
Fix lint failures
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-08-20 18:47:16 -07:00
Brad Davidson
641ab26fde
Update containerd to 1.5
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-08-20 18:47:16 -07:00
Brad Davidson
e204d863a5
Update Kubernetes to v1.22.1
...
* Update Kubernetes to v1.22.1
* Update dependent modules to track with upstream
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-08-20 18:47:16 -07:00