Appearance
Services
Create a Kubernetes Service to give your application's pods a stable address and port inside the cluster. Other applications can use that address, and an ingress can use the service to send public web traffic to your app.
Create a service
- Open Kubernetes / Services.
- Select a namespace.
- Click
Create service. - Choose the deployment you want to expose.
- Provide the service details.
| Console field | Description |
|---|---|
Service name | Kubernetes service name in the namespace |
Service port | The port clients use to reach the service |
Target port | The port number or port name your application listens on |
Backend response timeout | How long ingress requests can wait for the app to respond |
The console creates a ClusterIP service and uses the deployment's pod labels to choose which pods receive traffic.
Supported service settings
| Area | Supported | Not supported |
|---|---|---|
| Service type | ClusterIP | NodePort |
| Public exposure model | Ingress backed by a service | externalIPs |
Backend response timeout
When a request reaches your service through an ingress, this timeout controls how long it waits for the application to respond. Set Backend response timeout in the console, or add this annotation to the Service manifest:
yaml
metadata:
annotations:
traefik.ingress.kubernetes.io/service.serverstransport: ingress-backend-response-timeout-300s@fileSupported values are ingress-backend-response-timeout-60s@file, ingress-backend-response-timeout-120s@file, ingress-backend-response-timeout-300s@file, and ingress-backend-response-timeout-600s@file. If omitted, RemoteGPU uses 60 seconds. Add the annotation to the Service, not the Ingress.
Read next
- Read Ingresses to give the service a public web address.
- Read Deployments to run or update the application behind the service.