View Service Details
This section describes how to view service details.
Prerequisites
You need to join a project and have the Application Workloads View permission in the project. For more information, see Project Members and Project Roles.
Steps
-
Log in to the KubeSphere web console with a user who has Application Workloads View permissions and enter your workspace.
-
Click Application Workloads > Services in the left navigation pane.
-
Select a project from the drop-down list in the upper left corner of the page.
-
In the service list, click the name of a service to open its details page.
-
On the service details page, view the resource attributes of the service in the Attributes area.
Parameter Description Cluster
The cluster to which the service belongs.
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.localor<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.localor<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.
Virtual IP Address
The virtual IP address used for internal cluster access to the service. This is only displayed for services of type VirtualIP.
External IP Address
The IP address used for external access to the service. This is only displayed when external access is enabled for the service.
Session Affinity
Indicates whether the session persistence feature is enabled. Possible values are:
-
Enabled: Session persistence is enabled. If the service has multiple pods, requests from the same client IP address will be forwarded to the same pod for a certain period (default is 10800 seconds).
-
Disabled: Session persistence is not enabled. If the service has multiple pods, requests from the same client IP address will be randomly forwarded to different pods.
Selector
The pod selector for the service. The pod selector consists of one or more pod labels. The service forwards client requests to pods that have all the specified labels.
DNS
The internal domain name of the service within the cluster, which can be accessed internally.
Endpoints
The virtual IP addresses and container ports of the target pods for the service.
Creation Time
The time when the service was created.
Creator
The user who created the service.
-
-
On the Resource Status tab, view the container ports, workloads, and pods of the service.
Parameter Description Ports
To ensure containers can be accessed properly, 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 within the pod.
-
Service Port: The port on the service’s virtual IP address. It can only be accessed within the cluster. Requests sent to the service port are forwarded to the container port.
-
Node Port: The port on the node host. It can be accessed from outside the cluster. Requests sent to the node port are forwarded to the service port. Services of type NodePort or LoadBalancer have a node port.
Workloads
Displays the name, update time, type, status, and current modification records of the workloads managing the pods.
Pods
-
Click
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
in the upper right corner of the pod list to refresh the list information.
-
-
Click the Metadata tab to view the labels and annotations of the service.
-
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.