Luther Monson
c2ea4524b8
code to remove vendor dir
...
Signed-off-by: Luther Monson <luther.monson@gmail.com>
2021-12-27 14:58:44 -07:00
Brad Davidson
56e3b66b21
Close etcd clients to avoid leaking GRPC connections
...
If you don't explicitly close the etcd client when you're done with it,
the GRPC connection hangs around in the background. Normally this is
harmelss, but in the case of the temporary etcd we start up on 2399 to
reconcile bootstrap data, the client will start logging errors
afterwards when the server goes away.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 8ad7d141e8
)
2021-12-22 00:01:27 -08:00
Brad Davidson
2bfe752dc1
Fix panic checking name of uninitialized etcd member
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-12-21 23:38:44 -08:00
Brian Downs
8ab9a28edc
Update bootstrap logic to output all changed files on disk ( #4800 ) ( #4809 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2021-12-21 16:22:20 -07:00
Hussein Galal
05f1bc6e2a
[Release-1.22] Close agentReady channel only in k3s ( #4793 )
...
* Close agentReady channel only in k3s
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* codespell check
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-12-21 20:29:17 +02: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
Derek Nola
80577a1bd2
[Release-1.22] Fix cold boot and reconcilation on secondary servers ( #4755 )
...
* Fix cold boot restarts of secondary servers
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-15 15:45:25 -08:00
Hussein Galal
9400af4004
Fix snapshot restoration on fresh nodes ( #4737 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2021-12-13 18:14:18 -07:00
Brian Downs
7808ff9674
Resolve Bootstrap Migration Edge Case ( #4730 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2021-12-13 13:03:57 -07:00
Brian Downs
d64a8da871
Resolve restore bootstrap ( #4704 ) ( #4715 )
2021-12-09 17:54:34 -07: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
Hussein Galal
b38bc7ddaa
Add validation to certificate rotation ( #4700 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-12-09 02:46:24 +02: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
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
Hussein Galal
2dc4e2c3a0
Add cert rotation command ( #4495 ) ( #4635 )
...
* Add cert rotation command
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* add function to check for dynamic listener file
Signed-off-by: Brian Downs <brian.downs@gmail.com>
* Add dynamiclistener cert rotation support
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* fixes to the cert rotation
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* fix ci tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* fixes to certificate rotation command
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
* more fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
Co-authored-by: Brian Downs <brian.downs@gmail.com>
Co-authored-by: Brian Downs <brian.downs@gmail.com>
2021-12-06 20:53:29 +02:00
Manuel Buil
ace9db6e6a
Merge pull request #4614 from manuelbuil/loggingFlannel1.22
...
[Release 1.22] Improve flannel logging
2021-12-02 19:18:58 +01:00
Derek Nola
a122f635b7
Export default parser ( #4621 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-12-01 13:04:42 -08:00
Manuel Buil
817188daa7
Improve flannel logging
...
Signed-off-by: Manuel Buil <mbuil@suse.com>
2021-12-01 18:25:45 +01:00
Derek Nola
12581188e8
Improved cleanup for etcd unit test ( #4537 ) ( #4608 )
...
* Improved cleanup for etcd unit test
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-11-30 11:05:13 -08:00
Chris Kim
fdb335d7d8
etcd snapshot functionality enhancements ( #4453 ) ( #4605 )
...
Signed-off-by: Chris Kim <oats87g@gmail.com>
2021-11-29 13:29:51 -08:00
Brad Davidson
bec170bc81
go generate
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-11-23 16:39:14 -08:00
Hussein Galal
058f30de03
Fix regression with cluster reset ( #4523 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-11-18 02:15:08 +02: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
Derek Nola
03779ea486
Improved regex for double equals arguments ( #4507 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-11-16 12:11:23 -08:00
Derek Nola
f1b429f9ce
[Release-1.22] Removed value in warning about skipping flags ( #4492 )
...
* Remove skip warning
* Add warning back in, without value
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-11-15 13:18:33 -07: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
Derek Nola
b0cd1f6eb1
[Release-1.22] Parser improvements, allow config values to be used with etcd-snapshot ( #4475 )
...
* Match to last After keyword for parser (#4383 )
* Enabled skipping of unknown flags from config in parser
* Added new unit test, expanded existing
Signed-off-by: Derek Nola <derek.nola@suse.com>
2021-11-11 18:47:19 -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
Brad Davidson
38cf9a3bdf
go generate
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-11-10 17:36:18 -08: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
Derek Nola
586ed948dd
Improve error message when using a "K10" prefixed token ( #4180 ) ( #4430 )
...
* Add new error message with a K10 prefixed secret token
Signed-off-by: dereknola <derek.nola@suse.com>
2021-11-09 08:12:27 -08: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
e1883d0537
Bump klipper-lb image for arm fix
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-11-02 19:01:30 -07:00
Brad Davidson
5eb13b6ba6
Fix log/reap reexec
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-11-01 14:58:46 -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
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
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
9a4ca5978b
reset buffer after use ( #4279 ) ( #4329 )
2021-10-26 17:58:25 -07:00
Brian Downs
c9f6fa0be0
remove integration test
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2021-10-25 16:23:31 -07:00
Brian Downs
07f844cf95
Copy old bootstrap buffer data for use during migration ( #4215 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2021-10-25 16:23:31 -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
galal-hussein
84e9b829e0
Update peer address when running cluster-reset
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-10-25 15:43:45 -07:00
Derek Nola
f98934980d
Added configuration input to etcd-snapshot ( #4280 ) ( #4281 )
...
Signed-off-by: dereknola <derek.nola@suse.com>
2021-10-22 13:08:12 -07:00
Brad Davidson
971854c15b
Refactor log and reaper exec to omit MAINPID
...
Using MAINPID breaks systemd's exit detection, as it stops watching the
original pid, but is unable to watch the new pid as it is not a child
of systemd itself. The best we can do is just notify when execing the child
process.
We also need to consolidate forking into a sigle place so that we don't
end up with multiple levels of child processes if both redirecting log
output and reaping child processes.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit dc18ef2e51
)
2021-10-20 13:41:50 -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
0d6ccf4199
Merge pull request #4222 from manuelbuil/race_fix_1.22
...
[release-1.22] Race fix 1.22
2021-10-19 09:14:45 +02:00
Brian Downs
7c78e1c802
[Release-1.22] - Add etcd s3 timeout ( #4207 ) ( #4230 )
2021-10-18 10:45:56 -07:00