Roberto Bonafiglia
cfb2ef5e3a
Fixed tailscale node IP dualstack mode in case of IPv4 only node
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2023-10-10 10:37:54 +02:00
Manuel Buil
8869aab229
Take IPFamily precedence based on order
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-10-02 18:40:30 +02:00
Manuel Buil
915120c1f0
ipFamilyPolicy:PreferDualStack for coredns and metrics-server
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-10-02 11:34:55 +02:00
Manuel Buil
3483aa87e7
Merge pull request #8465 from manuelbuil/vpnExtraArgs126
...
[Release-1.26] Add extraArgs to tailscale
2023-09-28 10:05:48 +02:00
Vitor Savian
3dd36d2012
Added error when cluster reset while using server flag
...
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2023-09-27 16:42:36 -03:00
Manuel Buil
76bee4bd55
Add extraArgs to tailscale
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-09-27 11:38:38 +02:00
Manuel Buil
f8f888f4b6
Include the interface name in the error message
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-09-26 11:07:44 +02:00
Brad Davidson
685aadb8ed
Add new CLI flag to enable TLS SAN CN filtering
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-08-29 08:35:09 -07:00
Vitor Savian
bd98112cbd
Fix for cluster-reset backup from s3 when etcd snapshots are disabled ( #8155 )
...
* Fixed when the user disable the etcd snapshots, but want to backup from s3
Signed-off-by: Vitor <vitor.savian@suse.com >
2023-08-10 16:34:08 -03:00
Derek Nola
60bd5c5b3f
[Release-1.26] August Test Backports ( #8126 )
...
* Unit test for MustFindString (#8013 )
* Consolidate CopyFile functions (#8079 )
* Remove unnecessary E2E envs
* Cleanup unnecessary "sudo" in commands
* Add additonal s3 coverage clause
Signed-off-by: Derek Nola <derek.nola@suse.com >
2023-08-04 11:39:01 -07:00
Manuel Buil
a1ff4612e8
Fix tailscale bug with ip modes
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-08-02 11:43:08 +02:00
Vitor Savian
e200425876
Adding cli to custom klipper helm image ( #7682 )
...
Adding cli to custom klipper helm image
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
(cherry picked from commit 0809187cff )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-07-07 16:28:01 -07:00
LeiLei
a704a12e23
Add --data-dir to the k3s certificate rotate-ca cli ( #7791 )
...
Need to add a cli flag for this. Also, should probably have config file loading support for the certificate commands.
Signed-off-by: leilei.zhai <leilei.zhai@qingteng.cn >
(cherry picked from commit 72d50b1f7c )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-07-07 13:18:45 -07:00
Denys Smirnov
729ce73fca
Support setting control server URL for Tailscale.
...
This change enables the use of Headscale - open source implementation of the Tailscale control server.
Signed-off-by: Denys Smirnov <dennwc@pm.me >
2023-07-07 12:30:43 +02:00
Manuel Buil
3ee5c0c39d
Check if we are on ipv4, ipv6 or dualStack when doing tailscale
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-07-06 11:12:30 +02:00
Brad Davidson
1853afe124
Create new kubeconfig for supervisor use
...
Only actual admin actions should use the admin kubeconfig; everything done by the supervisor/deploy/helm controllers will now use a distinct account for audit purposes.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 64a5f58f1e )
2023-06-12 10:53:09 -07:00
Manuel Buil
ab07b36ccd
VPN PoC
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-06-09 19:11:36 +02:00
Brad Davidson
14ebfa814f
Improve egress selector handling on agentless servers
...
Don't set up the agent tunnel authorizer on agentless servers, and warn when agentless servers won't have a way to reach in-cluster endpoints.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 31a6386994 )
2023-05-10 17:37:14 -07:00
Manuel Buil
b8619527a2
Migrate netutil methods into /utils/net.go
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2023-05-05 07:23:41 +02:00
Derek Nola
5ddb3ccaff
[Release-1.26] CLI + Config Enhancement ( #7403 )
...
* Handle multiple arguments with StringSlice flags (#7380 )
* Cleanup server setup with util function
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Enable FindString to search dotD config files (#7323 )
* Address multiple arg cases
Signed-off-by: Derek Nola <derek.nola@suse.com >
2023-05-02 15:09:35 -07:00
Roberto Bonafiglia
15ee88964b
Added multiClusterCidr feature
...
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com >
2023-03-14 18:30:52 +01:00
Brad Davidson
23d98cec22
Fix CACertPath stripping trailing path components
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-02-14 09:39:41 -08:00
Brad Davidson
3d146d2f1b
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 10:46:48 -08:00
Brad Davidson
32d62c5786
Use default address family when adding kubernetes service address to SAN list
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-02-09 15:17:21 -08:00
Byron Ruth
a92f163c9d
Add NATS to the list of supported data stores ( #6876 )
...
Signed-off-by: Byron Ruth <byron@nats.io >
2023-02-08 09:37:23 -08:00
Brad Davidson
992e64993d
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 >
2023-02-07 14:55:04 -08:00
Brad Davidson
373df1c8b0
Add support for k3s token command
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-02-07 14:55:04 -08:00
Brad Davidson
215fb157ff
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 >
2023-02-06 15:09:31 -08:00
Derek Nola
32086717fc
Ensure flag type consistency ( #6852 )
...
* Convert all flags to pointers for consistency
Signed-off-by: Derek Nola <derek.nola@suse.com >
2023-01-31 12:57:48 -08:00
Akos Elek
9fcc7c0db8
Fix cronjob example ( #6707 )
...
Related PR:
https://github.com/rancher/rke2-docs/pull/38
Signed-off-by: Akos Elek <akose73@tazerve.hu >
2023-01-30 10:52:22 -08:00
Brad Davidson
8340b54309
Pass through default tls-cipher-suites
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2023-01-12 14:51:04 -08:00
Derek Nola
b5d39df929
Deprecation of etcd-snapshot command in v1.26 ( #6575 )
...
* Consolidate etcd snapshot commands
* Consolidate secrets encryption commands
* Move etcd-snapshot to fatal error stage.
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-12-05 15:28:01 -08:00
Derek Nola
d723775792
Remove deprecated flags in v1.26 ( #6574 )
...
* Remove NoFlannel
* Remove cluster-secret
* Remove no-deploy
* Remove disable-selinux
* Convert wireguard to fatal error
* Remove reference to no-op K3S_CLUSTER_SECRET
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-12-05 14:01:01 -08:00
Brad Davidson
2835368ecb
Bump k3s-root and remove embedded strongswan support
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-12-01 12:40:40 -08:00
Derek Nola
af8f101bdc
Mark secrets-encryption flag as GA ( #6582 )
...
* Mark secrets-encrypt flag as GA
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-12-01 08:50:51 -08:00
Derek Nola
614da78e43
Add prefer-bundled-bin as an agent flag ( #6545 )
...
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-11-22 13:43:16 -08:00
Brad Davidson
56bf7d6ad3
Allow agent to run rootless
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-11-21 15:23:30 -08:00
Brad Davidson
6f2b21c5cd
Add rootless IPv6 support
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-11-21 15:23:30 -08:00
Derek Nola
0f52088cd3
Add new prefer-bundled-bin experimental flag ( #6420 )
...
* initial prefer-bundled-bin ci change
* Add startup testlet
* Convert parsing to pflag library
* Fix code validation
* go mod tidy
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-11-21 13:01:36 -08:00
Brad Davidson
f2585c1671
Add --flannel-external-ip flag
...
Using the node external IP address for all CNI traffic is a breaking change from previous versions; we should make it an opt-in for distributed clusters instead of default behavior.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-10-24 10:10:49 -07:00
Derek Nola
06d81cb936
Replace deprecated ioutil package ( #6230 )
...
* Replace ioutil package
* check integration test null pointer
* Remove rotate retries
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-10-07 17:36:57 -07:00
Brad Davidson
d963cb2f70
Disable cloud-node and cloud-node-lifecycle if CCM is disabled
...
If CCM and ServiceLB are both disabled, don't run the cloud-controller-manager at all;
this should provide the same CLI flag behavior as previous releases, and not create
problems when users disable the CCM but still want ServiceLB.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-09-30 08:17:20 -07:00
Brad Davidson
a15e7e8b68
Move DisableServiceLB/Rootless/ServiceLBNamespace into config.Control
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-09-30 08:17:20 -07:00
Derek Nola
1d46841d80
Fix deprecation message
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-09-09 09:07:40 -07:00
Derek Nola
cd49101fc8
Convert deprecated flags to fatal errors for v1.25 ( #6069 )
...
* Replace warning with fatal errors.
* Group system-default-registry under (agent/runtime)
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-09-01 09:33:59 -07:00
Hussein Galal
ba62c79f9b
Update to v1.25.0-k3s1 ( #6040 )
...
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2022-08-27 03:33:13 +02:00
Brad Davidson
4aca21a1f1
Add cri-dockerd support as backend for --docker flag
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-08-05 02:39:25 -07:00
Brad Davidson
b1fa63dfb7
Revert "Remove --docker/dockershim support"
...
This reverts commit 4a3d283bc1 .
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-08-05 02:39:25 -07:00
Derek Nola
118a68c913
Updates to CLI flag grouping + deprecated flag warnings. ( #5937 )
...
* Consolidate data dir flag
* Group cluster flags together
* Reorder and group agent flags
* Add additional info around vmodule flag
* Hide deprecated flags, and add warning about their removal
Signed-off-by: Derek Nola <derek.nola@suse.com >
2022-08-02 13:51:16 -07:00
Brad Davidson
5eaa0a9422
Replace getLocalhostIP with Loopback helper method
...
Requires tweaking existing method signature to allow specifying whether or not IPv6 addresses should be return URL-safe.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-07-21 16:51:57 -07:00