DemandFlow Support Centre

K8SSERVICE: K8s Service

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A Kubernetes Service providing stable network endpoints and load balancing for workloads within or across namespaces.

K8SSERVICE: K8s Service

A Kubernetes Service providing stable network endpoints and load balancing for workloads within or across namespaces.

Default definition. This article describes the default K8SSERVICE definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches K8SSERVICE.

Entity properties

PropertyValue
Entity codeK8SSERVICE
Display nameK8s Service
PluralK8s Services
Level403

Use cases

K8SSERVICE models the Kubernetes Service resource that decouples network access from individual pod IPs. The serviceType select (ClusterIP, NodePort, LoadBalancer, ExternalName, Headless) determines how traffic reaches the backing pods and drives the visibility of subsequent fields like nodePort and loadBalancerIP. The namespace objectLookup links to K8SNAMESPACE.

Fields

Service Information

FieldTypeRequiredNotes
nametextYesService Name
namespacereference → K8SNAMESPACEYesNamespace
serviceTypeenumYesService Type Valid ids: 1 (ClusterIP), 2 (NodePort), 3 (LoadBalancer), 4 (ExternalName), 5 (Headless).
clusterIPtextCluster IP Read only.
externalIPtextExternal IP

Port Configuration

FieldTypeRequiredNotes
portstext (multi-line)Port mappings (JSON format)
targetPortnumberTarget Port
nodePortnumberFor NodePort services
protocolenumProtocol Valid ids: 1 (TCP), 2 (UDP), 3 (SCTP).

Selectors & Endpoints

FieldTypeRequiredNotes
selectortext (multi-line)Label selector (JSON)
endpointCountnumberEndpoint Count Read only.
healthyEndpointsnumberHealthy Endpoints Read only.
sessionAffinityenumSession Affinity Valid ids: 1 (None), 2 (ClientIP).
sessionAffinityTimeoutnumberSession Timeout (sec)

Load Balancer Configuration

FieldTypeRequiredNotes
loadBalancertextLoad Balancer Read only.
loadBalancerIPtextLoad Balancer IP
loadBalancerSourceRangestext (multi-line)Allowed source IPs (CIDR)
loadBalancerClasstextLoad Balancer Class
externalTrafficPolicyenumExternal Traffic Policy Valid ids: 1 (Cluster), 2 (Local).

Health Checks

FieldTypeRequiredNotes
healthCheckNodePortnumberHealth Check Node Port
healthCheckPathtextHealth Check Path
healthCheckIntervalnumberCheck Interval (sec)
healthCheckTimeoutnumberCheck Timeout (sec)
healthyThresholdnumberHealthy Threshold
unhealthyThresholdnumberUnhealthy Threshold

Service Discovery

FieldTypeRequiredNotes
dnsNametextCluster DNS name Read only.
externalNametextFor ExternalName services
publishNotReadyAddressesbooleanPublish Not Ready Addresses
ipFamilymultiselectIP Families
ipFamilyPolicyenumIP Family Policy Valid ids: 1 (SingleStack), 2 (PreferDualStack), 3 (RequireDualStack).

Annotations & Labels

FieldTypeRequiredNotes
labelstext (multi-line)Key-value pairs (JSON)
annotationstext (multi-line)Key-value pairs (JSON)
ingressClasstextFor ingress integration

Service Endpoints

FieldTypeRequiredNotes
endpointstext (multi-line)Current endpoint addresses Read only.
manualEndpointstext (multi-line)Manually configured endpoints
endpointSlicesbooleanUse Endpoint Slices
topologyKeystext (multi-line)Service topology constraints

Service Metrics

FieldTypeRequiredNotes
requestsPerSecondnumberRequests/sec Read only.
avgResponseTimenumberAvg Response Time (ms) Read only.
errorRategaugeError Rate % Read only.
availabilitygaugeAvailability % Read only.
activeConnectionsnumberActive Connections Read only.
bandwidthInnumberBandwidth In (MB/s) Read only.
bandwidthOutnumberBandwidth Out (MB/s) Read only.
p99LatencynumberP99 Latency (ms) Read only.

Network Policies

FieldTypeRequiredNotes
networkPoliciesmultiselectApplied Network Policies
allowedNamespacestext (multi-line)Namespaces that can access this service
deniedNamespacestext (multi-line)Namespaces blocked from this service
rateLimitEnabledbooleanRate Limiting Enabled
rateLimitnumberRate Limit (req/min)
authRequiredbooleanAuthentication Required
authTypeenumAuth Type Valid ids: 1 (None), 2 (Basic), 3 (Bearer Token), 4 (mTLS), 5 (OAuth2).

Relationships

  • Lookups: namespace points at a K8SNAMESPACE record.
  • Related lists: K8SINGRESS, K8SWORKLOAD.

Creating a K8s Service via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "K8SSERVICE",
  "level":    403,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example",
  "namespace": "",
  "serviceType": "1"
}

Listing K8s Services records

# All k8s services in your tenant
GET /v1/entities/K8SSERVICE/SUB

See also

k8sservicek8sserviceservicesentity reference

Was this article helpful?

← Back to Knowledge Base