Brad Davidson
f55f09672e
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:09:00 -07:00
Brad Davidson
ee4c209df9
Remove unnecessary copies of etcdconfig struct
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit a1b800f0bf )
2022-03-15 18:09:00 -07:00
Brad Davidson
58fe28b500
Fix cluster bootstrap test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 54bb65064e )
2022-03-15 18:09:00 -07:00
Brad Davidson
a18c38d63d
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:09:00 -07:00
Brian Downs
86559341a4
remove unused code ( #5247 )
2022-03-09 16:33:16 -07:00
Brian Downs
d0be109e7c
add net util funcs ( #5244 )
2022-03-09 14:26:04 -07:00
Brian Downs
749d157d87
fix function arg call ( #5234 ) ( #5235 )
2022-03-09 08:00:06 -07:00
Derek Nola
6211a979a9
[Engine-1.21] Populate EtcdConfig in runtime from datastore when etcd is disabled ( #5230 )
...
* Populate EtcdConfig in runtime from datastore when etcd is disabled (#5222 )
Fixes issue with secrets-encrypt rotate not having any etcd endpoints
available on nodes without a local etcd server.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
* Revert naming to old Kine
Signed-off-by: Derek Nola <derek.nola@suse.com >
Co-authored-by: Brad Davidson <brad.davidson@rancher.com >
2022-03-08 12:07:18 -08:00
Derek Nola
a8e7e287fb
Add --json flag for k3s secrets-encrypt status ( #5127 ) ( #5199 )
...
* Add json flag for secrets-encrypt status
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-03-03 10:25:36 -08:00
Derek Nola
b2222d0f0e
Create encryption hash file if it doesn't exist ( #5170 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-02-28 09:05:51 -08:00
Brian Downs
343c7ceb6b
add ability to specify etcd snapshot list output format ( #5132 ) ( #5181 )
2022-02-26 12:29:17 -07:00
Derek Nola
70304e030a
Add server flag to access nonlocal/nondefault k3s server ( #5016 ) ( #5055 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-01-31 15:58:05 -08:00
Brad Davidson
d3189ad239
Move containerd wait into exported function
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-25 13:10:00 -08:00
Brad Davidson
290fb7484c
go generate
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-18 17:38:54 -08:00
Brad Davidson
4b442e7bd3
Update packaged components
...
Update images and manifests/charts for coredns, local-path-provisioner, traefik, and pause
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-18 17:38:54 -08:00
Manuel Buil
0d76df93ac
Allow svclb pod to enable ipv6 forwarding
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2022-01-18 17:38:54 -08:00
Brad Davidson
53b10471c4
Bump klipper-lb image for arm fix
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-18 17:38:54 -08:00
Manuel Buil
4f1fd7b30f
Dual-stack support LB controller
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2022-01-18 17:38:54 -08:00
Brian Downs
8755fd45f6
[Engine-1.21] Adds the ability to compress etcd snapshots ( #4866 ) ( #4958 )
2022-01-18 11:08:54 -07:00
Brad Davidson
8fe79bfe7a
Skip CGroup v2 evac when agent is disabled
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-14 13:25:31 -08:00
Derek Nola
43e1f40800
Enable logging on all subcommands ( #4921 ) ( #4933 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-01-14 09:21:44 -08:00
Brad Davidson
f1f4ad64f3
Move ClusterResetRestore handling ControlConfig setup
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-12 10:46:33 -08:00
Brad Davidson
0a1f013f68
Fix handling of agent-token fallback to token
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-07 10:15:17 -08:00
Brad Davidson
4decce56a3
Fix use of agent creds for secrets-encrypt and config validate
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-01-06 14:17:03 -08:00
Luther Monson
3970bc001a
[engine-1.21] Remove the Vendor Directory ( #4825 )
...
* code to remove vendor dir
Signed-off-by: Luther Monson <luther.monson@gmail.com >
2021-12-27 14:32:00 -07:00
Brad Davidson
b38ef3a6aa
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 12:41:36 -08:00
Brad Davidson
cf3e02acea
Fix panic checking name of uninitialized etcd member
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-12-21 23:39:03 -08:00
Brian Downs
5b0c1661f1
Update bootstrap logic to output all changed files on disk ( #4800 ) ( #4810 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com >
2021-12-21 16:22:23 -07:00
Hussein Galal
bcd63e54dd
[Engine-1.21] Close agentReady channel only in k3s ( #4795 )
...
* 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:28:57 +02:00
Manuel Buil
5d673f4cdd
Remove Disables, Skips and DisableKubeProxy from the comparing configs
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-12-17 18:24:24 +01:00
Derek Nola
962113d4a0
[Engine-1.21] Fix cold boot and reconcilation on secondary servers ( #4754 )
...
* Fix cold boot restarts on secondary servers
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-12-15 16:12:07 -08:00
Hussein Galal
9b67692414
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:38 -07:00
Brian Downs
bc84ded38c
Resolve Bootstrap Migration Edge Case ( #4730 )
...
Signed-off-by: Brian Downs <brian.downs@gmail.com >
2021-12-13 13:09:28 -07:00
Brian Downs
50b358048b
Resolve restore bootstrap ( #4704 ) ( #4717 )
2021-12-09 17:54:43 -07:00
Brad Davidson
c7e4790aa6
Update wharfie usage in windows code path
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2021-12-09 13:25:16 -08:00
Hussein Galal
572ef9cb90
Add validation to certificate rotation ( #4699 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2021-12-09 02:45:56 +02:00
Brad Davidson
1d9e78ae9c
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 13:33:23 -08:00
Alexey Medvedchikov
bee0e661b1
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:24 -08:00
Manuel Buil
b6e176f6a0
Check HA network parameters
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2021-12-08 14:42:20 +01:00
Derek Nola
e7fe71ea1e
[Engine-1.21] Secrets-encryption rotation ( #4656 )
...
* Backport secrets encrypt rotation
* Backport integration fixes for custom etcd args
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-12-07 21:55:00 -08:00
Hussein Galal
5153c527eb
[Engine-1.21] Add cert rotation command ( #4634 )
...
* Add cert rotation command (#4495 )
* 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 >
* Upgrade dynamic listener
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
Co-authored-by: Brian Downs <brian.downs@gmail.com >
2021-12-06 19:44:28 +02:00
Derek Nola
9efdec3287
[Engine-1.21] Expose default parser ( #4613 )
...
* Changed to exposing the default parser
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-12-01 11:25:42 -08:00
Derek Nola
bd9fca62d1
Improved cleanup for etcd unit test ( #4537 ) ( #4609 )
...
* Improved cleanup for etcd unit test
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-30 11:05:09 -08:00
Chris Kim
4e3a074c11
[engine-1.21] etcd snapshot functionality enhancements ( #4607 )
...
* etcd snapshot functionality enhancements (#4453 )
Signed-off-by: Chris Kim <oats87g@gmail.com >
* feat: add option to disable s3 over https
Signed-off-by: Chris Kim <oats87g@gmail.com >
Co-authored-by: Devin Buhl <devin.kray@gmail.com >
2021-11-29 13:30:12 -08:00
Hussein Galal
006b753a62
Fix regression with cluster reset ( #4525 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2021-11-18 00:08:04 +02:00
Derek Nola
404f6f94ad
Improved regex for double equals arguments ( #4506 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-16 12:40:40 -08:00
Derek Nola
6e4cc7c29f
[Engine-1.21] Removed value in warning about skipping flags ( #4494 )
...
* Remove skip warning
* Add warning back in but without value
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-15 13:20:02 -07:00
Derek Nola
d5a4147762
[Engine-1.21] Parser improvements, allow config values to be used with etcd-snapshot ( #4477 )
...
* Match to last After keyword for parser (#4383 )
* Made parser able to skip over subcommands
* Fix to allow etcd-snapshot to use config file with flags that are only used with k3s server. (#4464 )
Signed-off-by: Derek Nola <derek.nola@suse.com >
2021-11-11 22:18:10 -08:00
Chris Kim
381d086cf0
[engine-1.21] Add etcd extra args support for K3s ( #4470 )
...
* 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 >
* Redux: Enable K3s integration test to run on existing cluster (#3905 )
* Made it possible to run int tests on existing cluster
Signed-off-by: dereknola <derek.nola@suse.com >
Signed-off-by: Chris Kim <oats87g@gmail.com >
Co-authored-by: Derek Nola <derek.nola@suse.com >
2021-11-11 19:53:20 -08:00
Brad Davidson
8f82ae0749
Increase agent's apiserver ready timeout ( #4456 )
...
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:03:30 -07:00