1.14.2. Resolving the problem: Troubleshooting local cluster not selected
To resolve this issue, you need to grant the deployable administrative permission in the local-cluster
namespace. Complete the following steps:
Confirm that the list of managed clusters does include
local-cluster
, and that the placement ruledecisions
list does not display the local cluster. Run the following command and view the results:% oc get managedclusters
% oc get managedclusters
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NAME HUB ACCEPTED MANAGED CLUSTER URLS JOINED AVAILABLE AGE local-cluster true True True 56d cluster1 true True True 16h
NAME HUB ACCEPTED MANAGED CLUSTER URLS JOINED AVAILABLE AGE local-cluster true True True 56d cluster1 true True True 16h
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
Role
in your.yaml
file to grant the deployable administrative permission in thelocal-cluster
namespace. See the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
RoleBinding
resource to grant the placement rule user access to thelocal-cluster
namespace. See the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow