Skip to content

Commit

Permalink
Adjust Troubleshooting guide to reflect EndpointSlice changes
Browse files Browse the repository at this point in the history
The name no longer has the format:

  <service-name>-<service-namespace>-<cluster-id>

Also specify the "multicluster.kubernetes.io/service-name" label with
the "kubectl get" so it only retrieves EndpointSlices created by
Lighthouse.

Fixes #1001

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Oct 9, 2023
1 parent ee116ca commit ed828a9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/content/operations/troubleshooting/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,11 @@ service. As described earlier, it will most commonly be an issue with RBAC other
##### Check EndpointSlice resources

If the ServiceImport resources are correct, next we check if the EndpointSlice resources were properly created for the service you're
trying to access. The format of a EndpointSlice resource's name is as follows:

`<service-name>-<service-namespace>-<cluster-id>`

Run `kubectl get endpointslices --all-namespaces |grep <your-service-name>` on the Broker cluster to check if a resource was created for
your Service. If not, then check the Lighthouse Agent logs on the cluster where the Service was created and look for any error or warning
messages indicating a failure to create the EndpointSlice resource for your Service. The most common error is `Forbidden` if the RBAC wasn't
configured correctly. This is supposed to be done automatically during deployment so please file an
[issue](https://github.com/submariner-io/lighthouse/issues) with the relevant log entries.
trying to access. Run `kubectl get endpointslices --all-namespaces -l multicluster.kubernetes.io/service-name=<your-service-name>` on the
Broker cluster to check if a resource was created for your Service. If not, then check the Lighthouse Agent logs on the cluster where the
Service was created and look for any error or warning messages indicating a failure to create the EndpointSlice resource for your Service.
The most common error is `Forbidden` if the RBAC wasn't configured correctly. This is supposed to be done automatically during deployment
so please file an [issue](https://github.com/submariner-io/lighthouse/issues) with the relevant log entries.

If the EndpointSlice resource was created correctly on the Broker cluster, the next step is to check if it exists on the cluster where
you're trying to access the Service. The EndpointSlice should exist in the service's namespace. If it doesn't
Expand Down

0 comments on commit ed828a9

Please sign in to comment.