Connector create command

Create a connector.

Usage

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

Output

Waiting for status...
Connector "<name>" is ready.

Examples

# Create a connector for a database
skupper connector create database 5432

# Set the routing key and workload explicitly
skupper connector create backend 8080 --routing-key be1 --workload deployment/backend

# Produce YAML output
skupper connector create backend 8080 --output yaml

Options

  • name string, required

    The name of the resource to be created.

    PlatformsKubernetes, Docker
    See alsoKubernetes object names
  • port integer, required

    The port on the target workload to forward traffic to.

    PlatformsKubernetes, Docker
  • --output string

    Print the resource to the console in a structured output format instead of submitting it to the Skupper controller.

    Choices
    json

    Produce JSON output

    yaml

    Produce YAML output

    PlatformsKubernetes, Docker
  • --timeout string (duration)

    Raise an error if the operation does not complete in the given period of time.

    Default

    60s

    PlatformsKubernetes, Docker
  • --routing-key string

    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
    See alsoRouting key concept
  • --host string

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

    PlatformsKubernetes, Docker
  • --type string

    The connector type.

    Default

    tcp

    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.

    Default

    app=[value-of-name]

    PlatformsKubernetes
    See alsoKubernetes label selectors, Kubernetes pods
  • --workload string (resource name)

    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
  • --include-not-ready boolean

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

    DefaultFalse
    PlatformsKubernetes
    See alsoKubernetes pod lifecycle
  • --namespace string

    Set the namespace.

    PlatformsKubernetes, Docker
    See alsoNamespace concept, Kubernetes namespaces
  • --context string

    Set the kubeconfig context.

    PlatformsKubernetes
    See alsoKubernetes kubeconfigs
  • --kubeconfig string

    Set the path to the kubeconfig file.

    PlatformsKubernetes
    See alsoKubernetes kubeconfigs
  • --platform string

    Set the Skupper platform.

    Choices
    kubernetes

    Kubernetes

    docker

    Docker or Podman

    PlatformsKubernetes, Docker
    See alsoPlatform concept
  • --help

    Display help and exit.

    PlatformsKubernetes, Docker