Service

data class Service(val apiVersion: String? = null, val kind: String? = null, val metadata: ObjectMeta? = null, val spec: ServiceSpec? = null, val status: ServiceStatus? = null)

Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. This resource waits until its status is ready before registering success for create/update, and populating output properties from the current state of the resource. The following conditions are used to determine whether the resource creation has succeeded or failed:

  1. Service object exists.

  2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds for any stragglers.

  3. There are no "not ready" endpoints -- unless the Service is an "empty headless" Service 1, a Service with '.spec.type: ExternalName', or a Service without a selector.

  4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). If the Service has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource.

Constructors

Link copied to clipboard
constructor(apiVersion: String? = null, kind: String? = null, metadata: ObjectMeta? = null, spec: ServiceSpec? = null, status: ServiceStatus? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val apiVersion: String? = null

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

Link copied to clipboard
val kind: String? = null

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

Link copied to clipboard
val metadata: ObjectMeta? = null

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Link copied to clipboard
val spec: ServiceSpec? = null

Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

Link copied to clipboard
val status: ServiceStatus? = null

Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status