-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update local-rke2-state secret type and configure API URLs in client secret #31
Conversation
Signed-off-by: Kiefer Chang <[email protected]>
Update these fields: apiServerURL: value of Rancher setting "internal-server-url". apiServerCA: value of Rancher setting "internal-cacerts". Fleet needs these values to be set after Rancher v2.7.5 to provision a local cluster Signed-off-by: Kiefer Chang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Testing this PR with the customized rancherd and encountering the following error:
config.yaml
|
It seems related to the calico provision:
maybe we can test by specifying canal like Harvester:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this works well with the Canal
network, the default Calico network will encounter rancher/rancher#41191 with Rancher v2.7+.
os1:/etc/rancher/rke2 # ks get node
NAME STATUS ROLES AGE VERSION
os1 Ready control-plane,etcd,master 7m4s v1.25.9+rke2r1
os1:/etc/rancher/rke2 # ks get machines -A
NAMESPACE NAME CLUSTER NODENAME PROVIDERID PHASE AGE VERSION
fleet-local custom-ba180b5832ac local os1 rke2://os1 Running 60s
os1:/etc/rancher/rke2 # ks get clusters -A
NAMESPACE NAME READY KUBECONFIG
fleet-local local true local-kubeconfig
os1:/etc/rancher/rke2 # ks get pod -n cattle-system
NAME READY STATUS RESTARTS AGE
apply-system-agent-upgrader-on-os1-with-ec2ce2f8ad2d7b9ad-x45xt 0/1 Completed 0 76s
helm-operation-lrfcn 0/2 Completed 0 4m23s
helm-operation-pxwfg 0/2 Completed 0 5m2s
helm-operation-zsgfk 0/2 Completed 0 4m32s
rancher-64d44d6788-dctqw 1/1 Running 0 7m1s
rancher-webhook-5d9dd9cc94-kxmx9 1/1 Running 0 4m19s
system-upgrade-controller-74db4c9dd-725j8 1/1 Running 0 113s
Fixes:
apiServerURL
: value of Rancher setting "internal-api-url"apiServerCA
: value of Rancher setting "internal-cacerts"local-rke-state
secret as typeOpaque
instead of the correct typerke.cattle.io/cluster-state
#29