happy-tent-70860
01/24/2023, 9:27 PMfull-painter-23916
01/25/2023, 6:35 PMmanagement
and provisioning
types are synced both ways so that every cluster should have an entry in both, with the meat of the cluster spec in one and a stub in the other. This is specifically for only RKE2 in 2.6, other providers were supposed to be migrated over eventually but dunno if/when that's ever happening.
`fleet`: Keeps track of the clusters tied to fleet ("Continuous Delivery"). Fleet is (at least in theory) a standalone project so it has its own list, but will generally contain the same clusters as above with fleet-specific status.
`x-k8s.io`: The regular community k8s Cluster API. There's an RKE2 provider hooked up and provisioning
and its controllers ends up creating these (and a bunch of related types), which ultimately creates the actual cluster resources in $your_infra_provider.
`clusters.rancher.cattle.io`: Don't remember, and doesn't seem to exist in 2.6. Also weird, we usually avoided calling anything 'rancher' in the code/types… haven't upgraded my house to 2.7 yet.happy-tent-70860
01/25/2023, 10:58 PMclusters.provisioning
is identical with the number of clusters.management
. I have also observed that in the majority of the cases the name of the two resources is identical.
On the other hand I have also observed that there are some cluster.fleet
resources that don't have a pair of the other two types. In what case could these appear?full-painter-23916
01/25/2023, 11:05 PMhappy-tent-70860
01/26/2023, 2:36 PM<http://clusters.xxx.cattle.io|clusters.xxx.cattle.io>
have been removed? I'm in a situation when I can see a set of such namespaces being present, and also p-HASH
named ones (I have observed that these are created for the projects), but there are no clusters
resources and the rancher controller keeps logging messages like:
2023/02/01 05:52:05 [ERROR] error syncing 'c-ccr94/creator-cluster-owner': handler mgmt-auth-crtb-controller: <http://clusters.management.cattle.io|clusters.management.cattle.io> "c-ccr94" not found, requeuing
2023/02/01 05:52:08 [ERROR] error syncing 'c-djqr8/m-511b509b0c73': handler rke-worker-upgrader: <http://clusters.management.cattle.io|clusters.management.cattle.io> "c-djqr8" not found, requeuing