Brad Davidson
9fe37e1dff
Bump metrics-server to v0.7.0
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Vitor Savian
932665c076
Fix wildcard with embbeded registry test
...
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 59c724f7a6 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Flavio Castelli
355f62fd7d
fix: use correct wasm shims names
...
Fix the wasm shim detection and the containerd configuration generation.
Prior to this commit, the binary and the `RuntimeType` values were not
correct.
Signed-off-by: Flavio Castelli <fcastelli@suse.com >
(cherry picked from commit 64e4f0e6e7 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
d80aa3686b
Don't register embedded registry address as an upstream registry
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 091a5c8965 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
051802ceec
Remove filtering of wildcard mirror entry
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit b5a4846e9d )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
11e0543e30
Add env var to allow spegel mirroring of latest tag
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 84a071a81e )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Philip Laine
c02677f16e
Bump spegel to v0.0.18-k3s4
...
Signed-off-by: Philip Laine <philip.laine@gmail.com >
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 26feb25c40 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
0f21471d95
Move snapshot-retention to EtcdSnapshotFlags in order to support loading from config
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 0b3593205a )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
8a24a2b39f
Clean up snapshotDir create/exists logic
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3576ed4327 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
a7318dffb9
Fix additional corner cases in registries handling
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit b164d7a270 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
dbfb77c43c
Fix issue with etcd node name missing hostname
...
* Set ServerNodeName in snapshot CLI setup
* Raise errer if ServerNodeName ends up empty some other way
* Fix status controller to use etcd node name annotation instead of prefix checking
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 82432a2df7 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
13d28efea7
Tweak netpol node wait logs
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 513c3416e7 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Brad Davidson
fbe1ed0dc6
Fix NodeHosts on dual-stack clusters
...
* Add both dual-stack addresses to the node hosts file
* Add hostname to hosts file as alias for node name to ensure consistent resolution
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit be569f65a9 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Edgar Lee
e639f4f32b
Rootless mode also bind service nodePort to host for LoadBalancer type
...
Signed-off-by: Edgar Lee <edgarhinshunlee@gmail.com >
(cherry picked from commit 8c83b5e0f3 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-03-07 17:25:43 -08:00
Roberto Bonafiglia
be5d577d1d
Adjust first node-ip based on configured clusterCIDR
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2024-03-06 11:13:28 +01:00
Manuel Buil
1ada5776cf
Update klipper-lb image version
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2024-03-01 11:33:54 +01:00
Brad Davidson
c7e6922aa8
Fix netpol startup when flannel is disabled
...
Don't break out of the poll loop if we can't get the node, RBAC might not be ready yet.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-26 20:58:25 -08:00
Derek Nola
1c3795d1cf
Rename AgentReady to ContainerRuntimeReady for better clarity
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-21 14:21:18 -08:00
Derek Nola
96df99113a
Restore original order of agent startup functions
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-21 14:21:18 -08:00
Brooks Newberry
37a4429519
Update Kubernetes to v1.26.14 ( #9490 )
...
Signed-off-by: Brooks Newberry <brooks@newberry.com >
2024-02-15 13:14:17 -08:00
Derek Nola
c74395c1a6
[Release-1.26] Test_UnitApplyContainerdQoSClassConfigFileIfPresent ( #9442 )
...
* [Testing]: Test_UnitApplyContainerdQoSClassConfigFileIfPresent (Created) (#8945 )
Problem:
Function not tested.
Solution:
Unit test added.
Signed-off-by: Oliver Larsson <larsson.e.oliver@gmail.com >
--------
Signed-off-by: Oliver Larsson <larsson.e.oliver@gmail.com >
Signed-off-by: Derek Nola <derek.nola@suse.com >
Co-authored-by: Oliver Larsson <larsson.e.oliver@gmail.com >
2024-02-12 09:34:08 -08:00
Derek Nola
e78053e27b
[Release-1.26] Enable longer http timeout requests ( #9446 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-12 09:31:51 -08:00
Hussein Galal
62448e1e27
Update flannel to v0.24.0 and remove multiclustercidr flag ( #9075 )
...
* update flannel to v0.24.0
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* remove multiclustercidr flag
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2024-02-11 17:14:47 +01:00
Brad Davidson
4379b27314
Bump kine and set NotifyInterval to what the apiserver expects
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit de825845b2 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Edgar Lee
c10b6baf8d
Expose rootless containerd socket directories for external access
...
Signed-off-by: Edgar Lee <edgarhinshunlee@gmail.com >
(cherry picked from commit 0ac4c6a056 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Edgar Lee
ef2064000c
Expose rootless state dir under ~/.rancher/k3s/rootless
...
Signed-off-by: Edgar Lee <edgarhinshunlee@gmail.com >
(cherry picked from commit 14c6c63b30 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Oleg Matskiv
e60f7ecc19
Don't verify the node password if the local host is not running an agent
...
Signed-off-by: Oleg Matskiv <oleg.matskiv@gmail.com >
(cherry picked from commit e3b237fc35 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Brad Davidson
b1453351e0
Fix ipv6 endpoint address selection for on-demand snapshots
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 8224a3a7f6 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Brad Davidson
c03fdb8432
Fix issue with coredns node hosts controller
...
The nodes controller was reading from the configmaps cache, but doesn't add any handlers, so if no other controller added configmap handlers, the cache would remain empty.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 888f866dae )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Brad Davidson
fa34aa3ba4
Add check for etcd-snapshot-dir and fix panic in Walk
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 6ec1926f88 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Brad Davidson
14439fb583
Retry startup snapshot reconcile
...
The reconcile may run before the kubelet has created the node object; retry until it succeeds
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 82e3c32c9f )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Brad Davidson
7be68173ee
Fix excessive retry on snapshot reconcile
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 4005600d4e )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-10 00:49:54 -08:00
Harrison Affel
35e68b7fd4
allow executors to define containerd and docker behavior
...
Signed-off-by: Harrison Affel <harrisonaffel@gmail.com >
2024-02-09 16:05:38 -03:00
Vitor Savian
a311ce5d8c
Changed how lastHeartBeatTime works in the etcd condition
...
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2024-02-08 04:54:49 -03:00
Vitor Savian
5abe46642d
Runtimes refactor using exec.LookPath
...
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2024-02-08 04:53:23 -03:00
Brad Davidson
c190124a46
Consistently handle component exit on shutdown
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-07 19:58:07 -08:00
Matt Trachier
34b0d79604
Bump Local Path Provisioner version ( #8953 ) ( #9428 )
...
* chore: Bump Local Path Provisioner version
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-07 21:23:44 -06:00
Brad Davidson
893eabd128
Bump runc and helm-controller versions
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-01 18:52:32 -08:00
Brad Davidson
9b8c0afb76
gofmt config_test.go
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-01 18:52:32 -08:00
Brad Davidson
52bcba296d
Fix issues with certs.d template generation
...
* Fix issue with bare host or IP as endpoint
* Fix issue with localhost registries not defaulting to http.
* Move the registry template prep to a separate function,
and adds tests of that function so that we can ensure we're
generating the correct content.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-02-01 18:52:32 -08:00
Aofei Sheng
65495bb65e
Use ipFamilyPolicy: RequireDualStack for dual-stack kube-dns ( #8984 )
...
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com >
(cherry picked from commit 8d2c40cdac )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-18 13:52:28 -08:00
Vitor Savian
3d70c8ad8e
Error getting node in setEtcdStatusCondition
...
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
Added retry and changed nodes for
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2024-01-12 18:45:34 -03:00
Derek Nola
f0175cc73c
Move proxy dialer out of init() and fix crash ( #9221 )
...
* Fixes issue where proxy support only honored server address via K3S_URL, not CLI or config.
* Fixes crash when agent proxy is enabled, but proxy env vars do not return a proxy URL for the server address (server URL is in NO_PROXY list).
* Adds tests
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
Co-authored-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-12 08:15:26 -08:00
Brad Davidson
e49ed4dbf4
Enable network policy controller metrics
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit ab8d2f55b9 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
d6355d7bea
Add embedded registry implementation
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 37e9b87f62 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
d15bd074f4
Add server CLI flag and config fields for embedded registry
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit ef90da5c6e )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
693809e937
Propagate errors up from config.Get
...
Fixes crash when killing agent while waiting for config from server
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 77846d63c1 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
999bba5b67
Move registries.yaml load into agent config
...
Moving it into config.Agent so that we can use or modify it outside the context of containerd setup
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 16d29398ad )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
aa76c77b30
Pin images instead of locking layers with lease
...
Layer leases never did what we wanted anyways, and this is the new approved interface for ensuring that images do not get GCd
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 5c99bdd9bd )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00
Brad Davidson
bbcf71315b
Add runtime checking of golang version
...
Forces other groups packaging k3s to intentionally choose to build k3s with an unvalidated golang version
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit b297996b92 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-01-11 19:10:42 -08:00