Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bootstrap clusters with Rancher v2.7.5-rc2 #30

Open
bk201 opened this issue May 30, 2023 · 0 comments
Open

Can't bootstrap clusters with Rancher v2.7.5-rc2 #30

bk201 opened this issue May 30, 2023 · 0 comments

Comments

@bk201
Copy link
Member

bk201 commented May 30, 2023

We can't bootstrap a cluster when integrating Rancher v2.7.5-rc2.

To reproduce:

Analysis

Keep seeing this log in rancher pod:

│ 2023/05/30 09:10:09 [INFO] [planner] rkecluster fleet-local/local: waiting: waiting for at least one control plane, etcd, and worker node to be registered                                │

There is no "machine" object created.

Rancherd bootstrap procedure:

Rancherd creates this resources after deploying Rancher chart and wait for rancher services ready.

---
apiVersion: v1
kind: Node
metadata:
  labels:
    node-role.kubernetes.io/etcd: "true"
  name: node1

---
apiVersion: v1
kind: Namespace
metadata:
  name: fleet-local

---
apiVersion: provisioning.cattle.io/v1
kind: Cluster
metadata:
  name: local
  namespace: fleet-local
spec:
  kubernetesVersion: v1.25.9+rke2r1
  rkeConfig:
    controlPlaneConfig:
      disable:
      - rke2-snapshot-controller
      - rke2-snapshot-controller-crd
      - rke2-snapshot-validation-webhook

---
apiVersion: v1
data:
  agentToken: YWEgYmIgY2M=
  serverToken: YWEgYmIgY2M=
kind: Secret
metadata:
  name: local-rke-state
  namespace: fleet-local
type: rke.cattle.io/cluster-state

---
apiVersion: management.cattle.io/v3
kind: ClusterRegistrationToken
metadata:
  name: default-token
  namespace: local
spec:
  clusterName: local
status:
  token: aa bb cc

---
apiVersion: catalog.cattle.io/v1
kind: ClusterRepo
metadata:
  name: rancher-stable
spec:
  url: https://releases.rancher.com/server-charts/stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant