This message was deleted.
# general
a
This message was deleted.
r
I attempted to make the cluster role and binding necessary, but it did not help. I don't understand why I'm having this problem. I did no custom weirdness, and this is just a helm install.
Copy code
# kubectl get clusterrole rancher-cluster-role -o yaml
apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
kind: ClusterRole
metadata:
  annotations:
    <http://kubectl.kubernetes.io/last-applied-configuration|kubectl.kubernetes.io/last-applied-configuration>: |
      {"apiVersion":"<http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>","kind":"ClusterRole","metadata":{"annotations":{},"name":"rancher-cluster-role"},"rules":[{"apiGroups":["<http://management.cattle.io|management.cattle.io>"],"resources":["clusters"],"verbs":["list"]}]}
  creationTimestamp: "2024-01-19T16:40:36Z"
  name: rancher-cluster-role
  resourceVersion: "498726"
  uid: 4b830d1a-18cf-4faa-b731-bc75856c6c46
rules:
- apiGroups:
  - <http://management.cattle.io|management.cattle.io>
  resources:
  - clusters
  verbs:
  - list

# kubectl get clusterrolebinding rancher-cluster-role-binding -o yaml
apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
kind: ClusterRoleBinding
metadata:
  annotations:
    <http://kubectl.kubernetes.io/last-applied-configuration|kubectl.kubernetes.io/last-applied-configuration>: |
      {"apiVersion":"<http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>","kind":"ClusterRoleBinding","metadata":{"annotations":{},"name":"rancher-cluster-role-binding"},"roleRef":{"apiGroup":"<http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>","kind":"ClusterRole","name":"rancher-cluster-role"},"subjects":[{"kind":"ServiceAccount","name":"rancher","namespace":"cattle-system"}]}
  creationTimestamp: "2024-01-19T16:40:36Z"
  name: rancher-cluster-role-binding
  resourceVersion: "498727"
  uid: 336d3e44-dde1-40d9-a70b-a8186ff44d3e
roleRef:
  apiGroup: <http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>
  kind: ClusterRole
  name: rancher-cluster-role
subjects:
- kind: ServiceAccount
  name: rancher
  namespace: cattle-system
Ubuntu 22.04.3 LTS rke2 version v1.26.12+rke2r1 (10683d5a09610873f643ada416b97eb01859108d) go version go1.20.12 X:boringcrypto Helm version v3.13.1+g3547a4b
Uninstalled and reinstalled about 5 times. Last time, cordoned all but one node before install, and it worked. Uncordoned another node, drained the one with rancher, and it still works. Uncordoned all, and it's still working. No idea what that was about...