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
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
Brad Davidson
8408d19bd6
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-04-15 11:15:00 -07:00
Brad Davidson
ff36514249
Add client certificate authentication support to core Authenticator
...
This is required to make the websocket tunnel server functional on
etcd-only nodes, and will save some code on the RKE2 side once pulled
through.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit af0b496ef3 )
2022-04-15 11:15:00 -07:00
Brad Davidson
e0fa2972da
Redact datastore and etcd snapshot config from serialization
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit e7437d4ad8 )
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
Roberto Bonafiglia
15472506e1
Fixed gofmt format
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-05 12:55:27 +02:00
Roberto Bonafiglia
27264a45cb
Fixed included modules
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-05 11:05:18 +02:00
Roberto Bonafiglia
5df127ec72
Fixed client URL
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-04-05 10:19:21 +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
Brad Davidson
26ddaec248
Ensure that apiserver ready channel checks re-dial every time
...
Closing idle connections isn't guaranteed to close out a pooled connection to a
loadbalancer endpoint that has been removed. Instead, ensure that requests used
to wait for the apiserver to become ready aren't reused.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-03-23 13:23:07 -07:00
Brad Davidson
83d858a169
Move temporary etcd startup into etcd module
...
Reuse the existing etcd library code to start up the temporary etcd
server for bootstrap reconcile. This allows us to do proper
health-checking of the datastore on startup, including handling of
alarms.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit e4846c92b4 )
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
Brad Davidson
1da571ff69
Remove unnecessary copies of etcdconfig struct
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit a1b800f0bf )
2022-03-15 18:08:33 -07:00
Brad Davidson
ce890d626d
Remove unnecessary copies of runtime struct
...
Several types contained redundant references to ControlRuntime data. Switch to consistently accessing this via config.Runtime instead.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 2989b8b2c5 )
2022-03-15 18:08:33 -07:00
Brian Downs
6bf86c5b33
fix function arg call ( #5234 )
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2022-03-14 11:57:48 +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
Brian Downs
b988e34c4b
Release 1.22 fix 700 ( #5246 )
2022-03-09 16:33:07 -07:00
Brian Downs
d00666d50d
fix function arg call ( #5234 ) ( #5236 )
2022-03-09 08:00:01 -07:00
Derek Nola
e3d5310b5f
Reset to lastest release-1.22 ( #5169 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-02-28 10:39:17 -08:00
Brian Downs
551cdde8cb
add ability to specify etcd snapshot list output format ( #5132 ) ( #5179 )
2022-02-26 12:29:03 -07:00
Roberto Bonafiglia
43f130b965
Merge pull request #4983 from rbrtbnfgl/ipv6-nat_release-1.22
...
[Release 1.22] Add IPv6 NAT
2022-01-19 08:46:15 +01:00
Brian Downs
354477adbf
Adds the ability to compress etcd snapshots ( #4866 ) ( #4960 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com >
2022-01-18 11:08:37 -07: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
Manuel Buil
638dd36ade
Remove Disables, Skips and DisableKubeProxy from the comparing configs
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-12-17 19:11:36 +01:00
Manuel Buil
3d16d94b39
Check HA network parameters
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-12-08 11:00:54 +01:00
Derek Nola
2561285e8e
Backport of https://github.com/k3s-io/k3s/pull/4372 ( #4654 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-12-07 15:29:31 -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
Chris Kim
a1f490df9c
[release-1.22] Add etcd extra args support for K3s ( #4469 )
...
* Add etcd extra args support for K3s
Signed-off-by: Chris Kim <oats87g@gmail.com >
* Add etcd custom argument integration test
Signed-off-by: Chris Kim <oats87g@gmail.com >
2021-11-11 20:22:12 -08: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
Brian Downs
97f494a24d
[Release-1.22] All bootstrap backport ( #4448 )
...
Add ability to reconcile bootstrap data between datastore and disk (#3398 )
2021-11-10 16:20:20 -07:00
Brad Davidson
259ceb452c
Fix other uses of NewForConfigOrDie in contexts where we could return err
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3da1bb3af2 )
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
46eea2f10a
Revert "Add ability to reconcile bootstrap data between datastore and disk ( #3398 )"
...
This reverts commits
9a4ca5978b
c9f6fa0be0
07f844cf95
48355dce10
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-10-27 14:17:12 -07:00
Brian Downs
48355dce10
Add ability to reconcile bootstrap data between datastore and disk ( #3398 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com >
2021-10-25 16:23:31 -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
Brian Downs
7c78e1c802
[Release-1.22] - Add etcd s3 timeout ( #4207 ) ( #4230 )
2021-10-18 10:45:56 -07:00
Hussein Galal
7826407a2e
Make sure there are no duplicates in etcd member list ( #4025 )
...
* Make sure there are no duplicates in etcd member list
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix node names with hyphens
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* use full server name for etcd node name
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2021-09-18 00:51:18 +02:00
Brad Davidson
753e11ee3c
Enable JobTrackingWithFinalizers FeatureGate
...
Works around issue with Job controller not tracking job pods that
are in CrashloopBackoff during upgrade from 1.21 to 1.22.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-17 11:26:45 -07:00
Brad Davidson
b72306ce3d
Return the error since it just gets logged and retried anyways
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-14 16:41:27 -07:00
Brad Davidson
5986898419
Use SubjectAccessReview to validate CCM RBAC
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-14 16:41:27 -07:00
Brad Davidson
dc556cbb72
Set controller authn/authz kubeconfigs
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-14 16:41:27 -07:00
Brad Davidson
199424b608
Pass context into all Executor functions
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-09-14 16:41:27 -07:00
Chris Kim
928b8531c3
[master] Add etcd-member-management controller to K3s ( #4001 )
...
* Initial leader elected etcd member management controller
* Bump etcd to v3.5.0-k3s2
Signed-off-by: Chris Kim <oats87g@gmail.com >
2021-09-14 08:20:38 -07: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