Skip to content

Create a Service ​

Create a Kubernetes Service to provide a stable network endpoint for your Pods.

Prerequisites

  • The target Pods must be running.
  • Note the Pod labels in advance (needed for Selector configuration).

Step 1. Open the Create Service form ​

Select Service Discovery → Services from the left sidebar. Click the Create service button in the top right.

From the dropdown, select Create as form. Select Create from YAML to write YAML directly.


Step 2. Enter basic settings ​

FieldDescriptionExample
NameService name (lowercase letters, numbers, hyphens)my-app-svc
NamespaceTarget namespacedefault
TypeService typeClusterIP

Service Type Guide ​

TypeDescriptionUse Case
ClusterIPInternal cluster communication only (default)Microservice internal connections
NodePortExternal access via NodeIP:PortQuick external access testing
LoadBalancerAuto-provisions an external load balancerProduction external exposure

Step 3. Configure the Selector ​

Enter the label key-value pairs of the target Pods in the Selector field.

app: my-app

TIP

An incorrect Selector will prevent traffic from reaching Pods even after the Service is created. Verify Pod labels in the Pods list first.


Step 4. Configure Ports ​

Click Add Port to add a port mapping.

FieldDescriptionExample
ProtocolProtocolTCP
PortService port (client-facing)80
Target PortPod port (container listening port)8080
Node PortPort exposed on the node (NodePort type only)30080

Step 5. Confirm creation ​

Click Create. You will be redirected to the Services list to verify the new Service.

  • ClusterIP: Access via internal DNS (my-app-svc.default.svc.cluster.local)
  • NodePort: Access externally via NodeIP:NodePort
  • LoadBalancer: Access is available once an External IP is assigned in the list

Next Steps ​

The New Standard for AI Infrastructure