Connector create command

Create a connector.

PlatformsKubernetes, Docker, Podman, Linux
Waits forConfigured

Usage

skupper connector create <name> <port> [options]

Examples

# Create a connector for a database
$ skupper connector create database 5432
Waiting for status...
Connector "database" is configured.

# Set the routing key and selector explicitly
$ skupper connector create backend 8080 --routing-key be1 --selector app=backend

# Use the workload option to select pods
$ skupper connector create backend 8080 --workload deployment/backend

Primary options

<name>

string
required

The name of the resource to be created.

PlatformsKubernetes, Docker, Podman, Linux

<port>

integer
required

The port on the target workload to forward traffic to.

PlatformsKubernetes, Docker, Podman, Linux

--routing-key

<string>
frequently used

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.

Default

Value of name

PlatformsKubernetes, Docker, Podman, Linux
See alsoRouting key concept

--selector

<string>
frequently used

A Kubernetes label selector for specifying target server pods.

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

Default

app=[value-of-name]

PlatformsKubernetes, Docker, Podman, Linux

--workload

<resource>
frequently used

A Kubernetes resource name that identifies a workload. It resolves to an equivalent pod selector.

This is an alternative to setting the --selector or --host options.

PlatformsKubernetes
See alsoKubernetes workloads

Global options