Connector generate command

Generate a Connector resource.

PlatformsKubernetes, Docker, Podman, Linux

Usage

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

Examples

# Generate a Connector resource and print it to the console
$ skupper connector generate backend 8080
apiVersion: skupper.io/v2alpha1
kind: Connector
metadata:
  name: backend
spec:
  routingKey: backend
  port: 8080
  selector: app=backend

# Generate a Connector resource and direct the output to a file
$ skupper connector generate backend 8080 > backend.yaml

Primary options

<name>

string
required

The name of the resource to be generated.

PlatformsKubernetes, Docker, Podman, Linux
See alsoKubernetes object names

<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