Represents a Kubernetes service name. A Kubernetes service name must be a valid RFC-1123 DNS label. A valid RFC-1123 DNS label consists of the following:

  • The first character must be a-z or 0-9
  • The middle part can contain a-z, 0-9, or -
  • The last character must be a-z or 0-9
  • The total length must not exceed 63 characters

Hierarchy (View Summary)

Properties

name: string

Methods

  • Creates a service. A Kubernetes service name must be a valid RFC-1123 DNS label. A valid RFC-1123 DNS label consists of the following:

    • The first character must be a-z or 0-9
    • The middle part can contain a-z, 0-9, or -
    • The last character must be a-z or 0-9
    • The total length must not exceed 63 characters

    Parameters

    • name: string

      The name of the service.

    Returns ServiceName

    An instance of ServiceName.

    InvalidResourceNameError if the service name is invalid.