Represents a Kubernetes pod name. A Kubernetes pod 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 pod. A Kubernetes pod 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 pod.

    Returns PodName

    An instance of PodName.

    InvalidResourceNameError if the pod name is invalid.