https://rancher.com/ logo
#fleet
Title
# fleet
n

nutritious-application-85076

05/13/2022, 9:45 AM
How can I fix such an issue
There are no clusters available
using rancher 2.6 and fleet ?
Fixed afte changing
fleet-default
to
fleet-local
1
c

careful-piano-35019

05/13/2022, 9:48 AM
Have you deployed Rancher Manager in a docker container or on a k8s cluster (K3s for ex.) ?
n

nutritious-application-85076

05/13/2022, 9:48 AM
Rancher has been installed using these steps: https://github.com/halkyonio/rancher#install-rancher
c

careful-piano-35019

05/13/2022, 9:49 AM
ok K3s
n

nutritious-application-85076

05/13/2022, 10:10 AM
I'm a bit lost with all the acronyms: RKE, k3s, RKE1,2,3
c

careful-piano-35019

05/13/2022, 10:12 AM
the short story: RKE: legacy kubernetes engine, docker based RKE2 new kubernetes engine architecture (inspiured by K3s architecture) and containerd based K3s lightweight Kubernetes engine
if you start, stay away from rke, choose between K3s and RKE2 whether you prefer 'lightweight' or 'full' K8s
n

nutritious-application-85076

05/13/2022, 10:20 AM
So, when I execute
curl -sfL <https://get.k3s.io> | sh -s - server
I install a k3s server (+ tools + service) and k3s agent (= what is used to create on different providers additonal k8s clusters) - correct ?
c

careful-piano-35019

05/13/2022, 10:26 AM
k3s server is for the control plane of the cluster and k3s agent are 'workload only' nodes
g

great-bear-19718

05/16/2022, 12:40 AM
i think you need to specify a cluster selector.. the default behaviour is nil.. https://fleet.rancher.io/gitrepo-structure/#per-cluster-customization
n

nutritious-application-85076

05/16/2022, 6:49 AM
Thanks
t

thousands-painter-75216

05/17/2022, 7:20 PM
We're also having the same problem. The repos and clusters are in the same NS, and I've added clusterSelector: {} , but each repo in Fleet is showing "There are no clusters available"
g

great-bear-19718

05/17/2022, 11:34 PM
what does the bundle look like? also what is response of
kubectl get clusters.fleet -A
t

thousands-painter-75216

05/18/2022, 1:46 PM
Many apologies! I did eventually fix the problem. We are moving to a new install of Rancher and did have the git credentials/URIs exactly the same. Once I fixed that up, it started to work. Thanks for the reply, though!
322 Views