This section describes how to view service details.

Prerequisites

  • The Application Management for Cluster Federation extension must be installed and enabled on the KubeSphere platform.

  • You need to join a federated project and have the Federated Project View permission in the corresponding workspace.

Steps

  1. Log in to the KubeSphere web console as a user with Federated Project View permissions and enter your federated project.

  2. Click Application Workloads > Services in the left navigation pane.

  3. In the service list, click the name of a service to open its details page.

  4. On the service details page, view the resource attributes of the service in the Attributes area.

    Parameter Description

    Project

    The project to which the service belongs.

    Type

    Internal Access Mode for Services.

    • Headless: The system does not assign a virtual IP address to the service. It can be accessed from within the cluster using the domain name format <service name>.<project name>.svc.cluster.local or <service name>.<project name>.

    • VirtualIP: The system assigns a virtual IP address to the service for internal cluster access. It also supports access from within the cluster using the domain name format <service name>.<project name>.svc.cluster.local or <service name>.<project name>.

    • ExternalName: The service forwards business traffic to other services outside the cluster. The system does not assign a virtual IP address to the service. It can be accessed from within the cluster using a domain name in the format <service name>.<project name>.svc.cluster.local.

    Application

    The name of the application to which the service belongs. You can create an application that contains multiple services, with each service corresponding to a workload.

    Creation Time

    The time when the service was created.

    Update Time

    The last time the service was updated.

    Creator

    The user who created the service.

  5. On the service details page, view the pod replica count and pods of the service on the Resource Status tab.

    Parameter Description

    Pod Replica Count

    Sets the number of pod replicas per cluster.

    Pods

    All pods running in the service. Expand the dropdown to view pod information for a specific cluster.

    • Click chevron-down to view information about the containers running in the pod.

    • Click the name of a pod to view its details.

    • Enter keywords in the search box above the pod list to search for pods by name.

    • Click refresh in the upper right corner of the pod list to refresh the list information.

  6. On the service details page, view the access information of the service on the Access Information tab.

    Parameter Description

    Internal Domain Name

    The service can be accessed from within the cluster using a domain name in the format <service name>.<project name>.svc.

    Virtual IP Address

    The virtual IP address for internal cluster access to the service.

    Ports

    To enable normal access to containers, the following port types are defined on the KubeSphere platform:

    • Container Port: The port on which the application inside the container listens. It can only be accessed from within the pod.

    • Service Port: The port on the service’s virtual IP address. It can only be accessed from within the cluster. Requests sent to the service port will be forwarded to the container port.

    • Node Port: The port on the node host, accessible from outside the cluster. Requests sent to the node port will be forwarded to the service port. Services of type NodePort or LoadBalancer have a node port.

  7. On the service details page, click the Metadata tab to view the labels and annotations of the service.

  8. On the service details page, click the Events tab to view events related to the service.

    Parameter Description

    Type

    The type of the event, including Normal and Warning.

    Reason

    The reason why the event occurred.

    Occurrence Time

    The time when the event occurred.

    Source

    The component that reported the event.

    Message

    The content of the event message.