```> kubectl logs -n cattle-fleet-system fleet-con...
# fleet
s
Copy code
> kubectl logs -n cattle-fleet-system fleet-controller-8899ffb8b-pxzll fleet-agentmanagement
I0317 00:08:21.889371       1 leaderelection.go:254] attempting to acquire leader lease cattle-fleet-system/fleet-agentmanagement-lock...
I0317 00:08:21.914314       1 leaderelection.go:268] successfully acquired lease cattle-fleet-system/fleet-agentmanagement-lock
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=GitRepo controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting /v1, Kind=Namespace controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting rbac.authorization.k8s.io/v1, Kind=Role controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting rbac.authorization.k8s.io/v1, Kind=RoleBinding controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=Bundle controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=BundleDeployment controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=ClusterRegistration controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=ClusterGroup controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=Cluster controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting /v1, Kind=ConfigMap controller"
time="2025-03-17T00:08:22Z" level=info msg="Update agent bundle for cluster fleet-default/c-rmgff"
time="2025-03-17T00:08:22Z" level=info msg="Starting fleet.cattle.io/v1alpha1, Kind=ClusterRegistrationToken controller"
time="2025-03-17T00:08:22Z" level=info msg="Update agent bundle for cluster fleet-local/local"
time="2025-03-17T00:08:22Z" level=info msg="Starting rbac.authorization.k8s.io/v1, Kind=ClusterRole controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting /v1, Kind=Secret controller"
time="2025-03-17T00:08:22Z" level=info msg="Starting /v1, Kind=ServiceAccount controller"
time="2025-03-17T00:08:22Z" level=info msg="Update agent bundle for cluster fleet-default/c-p552p"
time="2025-03-17T00:08:22Z" level=info msg="API server config changed, trigger cluster import for cluster fleet-default/c-rmgff"
time="2025-03-17T00:08:22Z" level=info msg="API server config changed, trigger cluster import for cluster fleet-local/local"
time="2025-03-17T00:09:07Z" level=error msg="Cluster import for 'fleet-default/c-rmgff'. Smoke test failed: Get \"<https://172.20.150.246/k8s/clusters/c-rmgff/version?timeout=15s>\": context deadline exceeded"
time="2025-03-17T00:09:07Z" level=error msg="Cluster import for 'fleet-default/c-p552p'. Smoke test failed: Get \"<https://172.20.150.246/k8s/clusters/c-p552p/version?timeout=15s>\": context deadline exceeded"
time="2025-03-17T00:09:07Z" level=error msg="error syncing 'fleet-default/c-p552p': handler import-cluster: Get \"<https://172.20.150.246/k8s/clusters/c-p552p/version?timeout=15s>\": context deadline exceeded, requeuing"
time="2025-03-17T00:09:07Z" level=error msg="error syncing 'fleet-default/c-rmgff': handler import-cluster: Get \"<https://172.20.150.246/k8s/clusters/c-rmgff/version?timeout=15s>\": context deadline exceeded, requeuing"

> curl '<https://xxxxxxxxxxxxx/k8s/clusters/c-p552p/version?timeout=15s>'
{
  "major": "1",
  "minor": "31",
  "gitVersion": "v1.31.6-eks-bc803b4",
  "gitCommit": "7555883c9fd5b1ff4a68ad9feb15f9727bfa4b4a",
  "gitTreeState": "clean",
  "buildDate": "2025-02-17T20:40:26Z",
  "goVersion": "go1.22.12",
  "compiler": "gc",
  "platform": "linux/amd64"
}%

> kubectl describe configmap -n cattle-fleet-system fleet-controller
Name:         fleet-controller
Namespace:    cattle-fleet-system
Labels:       app.kubernetes.io/managed-by=Helm
Annotations:  meta.helm.sh/release-name: fleet
              meta.helm.sh/release-namespace: cattle-fleet-system

Data
====
config:
----
{
  "systemDefaultRegistry": "",
  "agentImage": "rancher/fleet-agent:v0.11.4",
  "agentImagePullPolicy": "IfNotPresent",
  "apiServerURL": "<https://xxxxx>", // is domain not a ip
  "apiServerCA": 

....
The requested address should be a domain name, I built the relevant ConfigMap with the domain name stored in it, but the actual fleet-controller requested the ip causing the fleet cluster to remain unready. How can I solve this problem?
After checking, I found that the serverUrl in the read configuration is an ip address, so I manually changed it to a domain name to restore it to normal. Does anyone know how the c-xxxx-kubeconfig configuration change from the fleet-default namespace gets the serverUrl when creating it?
kubectl edit <http://settings.management.cattle.io/internal-server-url|settings.management.cattle.io/internal-server-url>