Connector

A Skupper connector is the network-side handle for a workload that should be reachable from other sites. The connector selects or addresses the local workload, assigns it a routing key, and lets matching listeners forward client connections to that workload through the Skupper application network.

Outcome

A working connector makes a local workload consumable from remote listeners that use the same routing key.

remote client -> listener -> matching routing key -> connector -> local workload

Key ideas

  • A site can have zero or more connectors.
  • Each connector has a workload endpoint and a routing key.
  • A service is usable when at least one connector and one listener share the same routing key.
  • On Kubernetes, a connector usually selects workload pods with a label selector or workload reference.
  • On Docker, Podman, and Linux, a connector usually addresses a local server by host and port.
  • An attached connector is a connector variant for Kubernetes workloads in a peer namespace.

Common fields

The Connector resource uses these core fields:

  • spec.routingKey: the identifier that matches this connector to listener resources, usually in remote sites.
  • spec.port: the target server port.
  • spec.selector: a Kubernetes label selector for target pods.
  • spec.host: a host name or address for a local server, used on Docker, Podman, Linux, and optionally Kubernetes.

When --routing-key is not specified in CLI workflows, the connector name is the default routing key. On Kubernetes, the connector name also defines the default pod selector when --selector and --workload are not specified.

Creation paths

See also:

For Kubernetes-style YAML workflows, create a Connector resource and apply it through Skupper:

apiVersion: skupper.io/v2alpha1
kind: Connector
metadata:
  name: backend
  namespace: east
spec:
  routingKey: backend
  selector: app=backend
  port: 8080
skupper system apply -f <filename>

For Ansible workflows, pass the same Connector resource YAML to skupper.v2.resource. On Kubernetes, the module applies the resource to the target namespace:

- name: Create backend connector on east
  skupper.v2.resource:
    platform: kubernetes
    namespace: east
    kubeconfig: "{{ kubeconfig }}"
    def: |
      apiVersion: skupper.io/v2alpha1
      kind: Connector
      metadata:
        name: backend
      spec:
        routingKey: backend
        selector: app=backend
        port: 8080

On local system platforms, the same module writes the resource into the local Skupper namespace definition. Reload or start the system site after the resource is present:

- name: Define backend connector on east
  skupper.v2.resource:
    platform: podman
    namespace: east
    def: |
      apiVersion: skupper.io/v2alpha1
      kind: Connector
      metadata:
        name: backend
      spec:
        routingKey: backend
        host: 127.0.0.1
        port: 8080
 
- name: Reload east system site
  skupper.v2.system:
    platform: podman
    namespace: east
    action: reload

For local CLI workflows, create a connector directly:

skupper connector create <name> <port> --routing-key <routing-key>
skupper system reload

On Kubernetes, the CLI can also select a workload explicitly:

skupper connector create backend 8080 --workload deployment/backend

Connector variants

A standard connector is created in the site namespace and directly describes the workload to expose. An attached connector is still a connector in the wiki model: it exposes a workload from a peer namespace without requiring a separate site or inter-site link for that workload namespace.

For a complete guide on attached connectors, see Creating a connector for a different namespace using YAML.

Current Skupper source material describes this with two Kubernetes resources:

  • AttachedConnector: created in the workload namespace. It selects the workload pods, sets the port, and names the site namespace it should attach to.
  • AttachedConnectorBinding: created in the site namespace. It binds the attached connector to the site and controls the routing key.

The two resources must have matching names. The AttachedConnector.spec.siteNamespace and AttachedConnectorBinding.spec.connectorNamespace values must correspond. Attached connectors require Skupper to be deployed cluster-wide, and they are created with YAML resources rather than the skupper connector CLI.

Example shape:

site namespace: AttachedConnectorBinding -- peer namespace: AttachedConnector -> workload pods

Verify

Check connector status:

skupper connector status

Expected shape:

NAME      STATUS  ROUTING-KEY  SELECTOR     HOST    PORT  LISTENERS
backend   Ready   backend      app=backend  <none>  8080  true

For attached connectors, check the binding from the site namespace:

kubectl get AttachedConnectorBinding

Expected shape:

NAME      ROUTING KEY   CONNECTOR NAMESPACE   STATUS   HAS MATCHING LISTENER
backend   backend       attached              Ready    true

The service is not operational until the connector has at least one matching listener. In resource status, the relevant signals include hasMatchingListener, selectedPods, and Ready.

Observability

The Network Observer API exposes runtime state for connectors:

  • GET /api/v2alpha1/connectors — List all connectors across the network
  • GET /api/v2alpha1/connectors/{id} — Get a single connector by identity

Each connector record includes the routing key, site, router, process binding, and target workload details. The processId field links the connector to the specific backend process it targets, while the target field provides human-readable context (e.g., deployment/backend).

For detailed API schema information, see the Network Observer API Reference.

Caveats

  • A connector does not create a local client endpoint by itself; a listener with the same routing key is required.
  • A routing key can match multiple connectors and multiple listeners.
  • Attached connectors split responsibility: the workload namespace controls pod selection, while the site namespace controls the routing key.
  • To expose one peer-namespace workload into multiple application networks, create multiple attached connectors and corresponding bindings.
  • On local-system platforms, configuration changes may require skupper system reload.