Skip to content
Install the CLI

Reference experimental

service-ref

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Reference to a Service that Kix does not render

This page is generated from kix/packages/experimental/service-ref.

StabilityExperimental
package valuepackages.experimental.service-ref

Name of the Service, a DNS-1035 label. Null uses the instance name.

  • Type: null or string matching the pattern [a-z]([-a-z0-9]{0,61}[a-z0-9])?
  • Default: null

Ports of the Service. The first is out.port.

  • Type: non-empty (list of (submodule))

  • Example:

    [
    {
    port = 5433;
    targetPort = 5432;
    }
    ]

Port of the Service, which clients dial.

  • Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Protocol of the port.

  • Type: one of "TCP", "UDP", "SCTP"
  • Default: "TCP"

Port the pods listen on, as a number. Null means the same as port.

  • Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
  • Default: null

Labels of the pods behind the Service, which network policy selects. For a Service without a selector, such as one whose endpoints a controller writes, give the labels of the pods those endpoints name.

  • Type: attribute set of non-empty string

  • Default: { }

  • Example:

    {
    "app.example.com/cluster" = "old-db";
    }