Commit Graph

2519 Commits (abb8d7d44e4370f2a4ed2378debbc37907090295)

Author SHA1 Message Date
Matt Trachier abb8d7d44e
Update to v1.23.17-k3s1 (#7005)
* Update to v1.23.17
* update workflows and dockerfiles to proper go version
* add changes to go.mod and go.sum from the go mod tidy command
------
Signed-off-by: matttrach <matttrach@gmail.com>
2023-03-01 14:38:07 -06:00
Brad Davidson f43b19ab25 Bump kine to v0.9.9
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-23 17:20:11 -08:00
Brad Davidson 314b2f56d7 Add test for filterByIPFamily
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-21 14:14:24 -08:00
Brad Davidson 1e2dacf7dd Fix ServiceLB dual-stack ingress IP listing
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-21 14:14:24 -08:00
Roberto Bonafiglia bbd7fecf58 Update flannel to v0.21.1
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
2023-02-15 18:18:48 +01:00
Brad Davidson 52e7a47e1a Improve default umask for certs.sh
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-14 13:20:52 -08:00
Brad Davidson beb9c727c0 Fix CACertPath stripping trailing path components
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-14 13:20:52 -08:00
Brad Davidson 2fa8a7ef43 Fix etcd member deletion
Turns out etcd-only nodes were never running **any** of the controllers,
so allowing multiple controllers didn't really fix things.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-14 13:20:52 -08:00
Brad Davidson 0f7514e08f Allow for multiple sets of leader-elected controllers
Addresses an issue where etcd controllers did not run on etcd-only nodes

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-10 14:04:01 -08:00
Paul Donohue 40c99b21fa Fix access to hostNetwork port on NodeIP when egress-selector-mode=agent
Signed-off-by: Paul Donohue <git@PaulSD.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-10 09:44:05 -08:00
Brad Davidson 15286c1a68 Wait for server to become ready before creating token
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-10 09:34:57 -08:00
Brad Davidson 02300d8ee3 Add CI test
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit b43dd7746d)
2023-02-10 09:34:57 -08:00
Brad Davidson f4fa2d8885 Add ADR
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit c900089e88)
2023-02-10 09:34:57 -08:00
Brad Davidson 0e210807fa Ensure that node exists when using node auth
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 87f9c4ab11)
2023-02-10 09:34:57 -08:00
Brad Davidson fe1be2b3dc Add support for kubeadm token and client certificate auth
Allow bootstrapping with kubeadm bootstrap token strings or existing
Kubelet certs. This allows agents to join the cluster using kubeadm
bootstrap tokens, as created with the `k3s token create` command.

When the token expires or is deleted, agents can successfully restart by
authenticating with their kubelet certificate via node authentication.
If the token is gone and the node is deleted from the cluster, node auth
will fail and they will be prevented from rejoining the cluster until
provided with a valid token.

Servers still must be bootstrapped with the static cluster token, as
they will need to know it to decrypt the bootstrap data.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 992e64993d)
2023-02-10 09:34:57 -08:00
Brad Davidson 0208f16b5f Add support for `k3s token` command
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 373df1c8b0)
2023-02-10 09:34:57 -08:00
Brad Davidson a337aa09a2 Add e2e tests for CA cert rotation
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit be7f751863)
2023-02-10 09:34:57 -08:00
Brad Davidson 8869a24179 Add basic test for custom CA certs
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 8a6404f97c)
2023-02-10 09:34:57 -08:00
Brad Davidson 818bd446a7 Clarify ADR based on design review feedback
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 9b6b72941f)
2023-02-10 09:34:57 -08:00
Brad Davidson 656d20b67a Add ADR
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f13768c247)
2023-02-10 09:34:57 -08:00
Brad Davidson 0b34f62e76 Add `certificate rotate-ca` to write updated CA certs to datastore
This command must be run on a server while the service is running. After this command completes, all the servers in the cluster should be restarted to load the new CA files.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 215fb157ff)
2023-02-10 09:34:57 -08:00
Brad Davidson 565f40efa6 Add utility functions for getting kubernetes client
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 3c324335b2)
2023-02-10 09:34:57 -08:00
Brad Davidson 2b76d471f1 Fix CA cert hash for root certs
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 58d40327b4)
2023-02-10 09:34:57 -08:00
Brad Davidson 4f312e0ab2 Ensure cluster-signing CA files contain only a single CA cert
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0919ec6755)
2023-02-10 09:34:57 -08:00
Brad Davidson b17caf3cdc Add example certificate generation script
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1ec242d816)
2023-02-10 09:34:57 -08:00
Brad Davidson fa2ca3e63d go generate
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-10 07:27:44 -08:00
Brad Davidson a9e5a49b3a Check for existing resources before creating them
Prevents errors when starting with fail-closed webhooks

Also, use panic instead of Fatalf so that the CloudControllerManager rescue can handle the error

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-10 07:27:44 -08:00
Brad Davidson f924827819 go generate
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 1c6fde9a52)
2023-02-09 15:18:25 -08:00
Brad Davidson 19ed35540a Honor Service ExternalTrafficPolicy
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 369b81b45e)
2023-02-09 15:18:25 -08:00
Brad Davidson ca8a716524 Bump wrangler version for EndpointSlice support
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 94d1a87509)
2023-02-09 15:18:25 -08:00
Brad Davidson 208486323b Use default address family when adding kubernetes service address to SAN list
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-09 11:55:27 -08:00
Derek Nola 566975533d
Ignore value conflicts when reencrypting secrets (#6917)
* Ignore conflict secrets

Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-02-08 10:44:53 -08:00
Derek Nola f19152cf2a
Bump vagrant boxes to fedora37 (#6910)
* Bump to generic/fedora37
* Disable sonobuoy on rootless

Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-02-07 13:56:11 -08:00
Derek Nola 73a9f5dd7e
[Release-1.23] Consolidate E2E tests (#6889)
* Consolidate E2E tests and GH Actions (#6772)

* Consolidate cluster reset and snapshot E2E tests
* Add more context to secrets-encryption test
* Reuse build workflow
* Convert updatecli to job level permissions
* Remove dweomer microos from E2E and install testing

Signed-off-by: Derek Nola <derek.nola@suse.com>

* E2E: Consoldiate docker and prefer bundled tests into new startup test (#6851)

* Convert docker E2E to startup E2E
* Move preferedbundled into the e2e startup test

Signed-off-by: Derek Nola <derek.nola@suse.com>

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-02-06 15:53:19 -08:00
Derek Nola 88b9d29d72
Fix cron example (#6866)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-01-31 13:04:41 -08:00
Silvio Moioli 05545fc017 Bugfix: do not break cert-manager when pprof is enabled (#6635)
Signed-off-by: Silvio Moioli <silvio@moioli.net>
(cherry picked from commit 23c1040adb)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-26 17:37:20 -08:00
Brad Davidson 99b534a5e3 Add jitter to scheduled snapshots and retry harder on conflicts
Also ensure that the snapshot job does not attempt to trigger multiple concurrent runs, as this is not supported.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-26 14:31:45 -08:00
Brad Davidson 64b0feeb36 Bump containerd to v1.5.16-k3s2-1-22
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-23 15:28:32 -08:00
Brooks Newberry edc0795686
Update to v1.23.16+k3s1 (#6776) 2023-01-19 11:06:57 -08:00
Brooks Newberry 7d45f1fbbf
drone correct plugins/docker tag supporting linux/arm (#6766) 2023-01-18 14:15:32 -08:00
Brad Davidson d745f8558d Fix CI tests
* General cleanup of test-helpers functions to address CI failures
* Install awscli in test image
* Log containerd output to file even when running with --debug

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f54b5e4fa0)
2023-01-17 18:15:42 -08:00
github-actions[bot] f64d7817a4 chore: Bump golang:alpine version (#6683)
Made with ❤️️ by updatecli

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit a4549cf989)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-17 18:15:42 -08:00
dependabot[bot] 2f189fa285 Bump ubuntu from 20.04 to 22.04 in /tests/e2e/scripts (#6686)
Bumps ubuntu from 20.04 to 22.04.

---
updated-dependencies:
- dependency-name: ubuntu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit d85952d6a0)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-17 18:15:42 -08:00
dependabot[bot] 6cefca4a58 Bump alpine from 3.16 to 3.17 in /conformance (#6687)
Bumps alpine from 3.16 to 3.17.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit e53500f37f)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-17 18:15:42 -08:00
dependabot[bot] 540bf423b7 Bump alpine from 3.16 to 3.17 in /package (#6688)
Bumps alpine from 3.16 to 3.17.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit c7151e8b61)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-17 18:15:42 -08:00
Derek Nola 1aae060f69
Bump download artifact to v3 (#6749)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-01-17 09:40:48 -08:00
Brad Davidson 27f8fe7d02 Pass through default tls-cipher-suites
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-01-13 22:15:11 -08:00
Derek Nola 71a09aaba9
[Release-1.23] Backport missing E2E test commits (#6699)
* Backport PR 6131

Signed-off-by: Derek Nola <derek.nola@suse.com>

* Add cluster reset test to nightly builds
* Add journalctl logs to E2E tests
* Expand nightly E2E tests (#6354)
* Add snapshot restore e2e test (#6396)
* Convert test output  to JSON format (#6410)
* Fix E2E test for prefer-bundled-bin
* Fix external ip test

Signed-off-by: Shylaja Devadiga <shylaja@rancher.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-01-12 09:00:38 -08:00
Brad Davidson 50cab3b326 Bump k3s-root version to v0.12.1
Adds support for loading compressed kernel modules

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-12-13 19:18:44 -08:00
Brad Davidson e41a76520c Preload iptable_filter/ip6table_filter
ServiceLB now requires this module, but it will not get autoloaded by the kubelet if the host is using nftables.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2022-12-13 19:18:44 -08:00