Skip to content

Commit f6bdd76

Browse files
authored
Add a common OCM setup troubleshooting guide (#51)
Signed-off-by: Mike Ng <[email protected]>
1 parent 973aff8 commit f6bdd76

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

troubleshooting/setup-ocm.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Troubleshooting for setting up OCM
2+
3+
### I am getting an error about "Error: no CSR to approve for cluster <cluster-name>" when running the "clusteradm accept" command.
4+
5+
On the managed cluster, check the `klusterlet-registration-agent` pod log by using:
6+
7+
```
8+
kubectl -n open-cluster-management-agent get pod
9+
kubectl -n open-cluster-management-agent logs pod/klusterlet-registration-agent-<suffix> # Replace <suffix> with output from the "get pod" command.
10+
```
11+
12+
If you are using `KinD` clusters to setup OCM, ensure you use the `--force-internal-endpoint-lookup` flag when you join the cluster using the `clusteradm join` command. For example:
13+
14+
```
15+
clusteradm join --force-internal-endpoint-lookup --wait --hub-token <hub-token> --hub-apiserver <hub-apiserver> --cluster-name <cluster-name>
16+
```

0 commit comments

Comments
 (0)