Service

A Service is an abstract way to expose an application running on a set of Pods as a network service. It provides a stable virtual IP and DNS name, decoupling consumers from individual pod IPs.

Container OrchestrationKubernetesLoad BalancingNetworkingService Discovery

Properties

Name Type Description
apiVersion string API version of the resource.
kind string Kind of the resource.
metadata object
spec object
status object
View JSON Schema on GitHub

JSON Schema

kubernetes-services-service-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Service",
  "title": "Service",
  "type": "object",
  "description": "A Service is an abstract way to expose an application running on a set of Pods as a network service. It provides a stable virtual IP and DNS name, decoupling consumers from individual pod IPs.",
  "properties": {
    "apiVersion": {
      "type": "string",
      "const": "v1",
      "description": "API version of the resource."
    },
    "kind": {
      "type": "string",
      "const": "Service",
      "description": "Kind of the resource."
    },
    "metadata": {
      "$ref": "#/components/schemas/ObjectMeta"
    },
    "spec": {
      "$ref": "#/components/schemas/ServiceSpec"
    },
    "status": {
      "$ref": "#/components/schemas/ServiceStatus"
    }
  }
}