Connector resource

Binds a connection endpoint in the local site to target workloads in remote sites.

Each site can have multiple connector resources.

apiVersion: skupper.io/v1alpha1
kind: Connector
metadata:  # Metadata properties
spec:      # Spec properties
status:    # Status properties

Examples

A connector in site East for the Hello World backend service:

apiVersion: skupper.io/v1alpha1
kind: Connector
metadata:
  name: backend
  namespace: hello-world-east
spec:
  routingKey: backend
  port: 8080
  selector: app=backend

Metadata properties

Spec properties

  • routingKey string, required

    The identifier used to route traffic from listeners to connectors. To expose a local workload to a remote site, the remote listener and the local connector must have matching routing keys.

    PlatformsKubernetes, Docker
    See alsoRouting key concept
  • port integer, required

    The port on the target workload to forward traffic to.

    PlatformsKubernetes, Docker
  • selector string

    A Kubernetes label selector for specifying target server pods.

    On Kubernetes, you usually want to use this. As an alternative, you can use host.

    PlatformsKubernetes
    See alsoKubernetes label selectors, Kubernetes pods
  • host string

    The hostname or IP address of the server. This is an alternative to selector for specifying the target server.

    PlatformsKubernetes, Docker
  • tlsSecret string

    The name of a Kubernetes secret containing the trusted server certificate (typically a CA).

    It can optionally include a client certificate and key for mutual TLS.

    This option is used when setting up client-to-router TLS encryption.

    PlatformsKubernetes, Docker
    See alsoSite-scoped TLS
  • includeNotReady boolean

    If set, include server pods that are not in the ready state.

    DefaultFalse
    PlatformsKubernetes
    See alsoKubernetes pod lifecycle
  • type string

    The connector type.

    Default

    tcp

    PlatformsKubernetes, Docker
  • options object

    Additional settings.

    PlatformsKubernetes, Docker

Status properties

  • status string

    The current state of the resource.

    PlatformsKubernetes, Docker
  • active boolean

    This thing is working.

    DefaultFalse
    PlatformsKubernetes, Docker