Listener create command

Create a listener.

Usage

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

Output

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

Examples

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

# Set the routing key and host explicitly
skupper listener create backend 8080 --routing-key be1 --host apiserver

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

Options

  • name string, required

    The name of the resource to be created.

    PlatformsKubernetes, Docker
    See alsoKubernetes object names
  • --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
  • port integer, required

    The port of the local listener. Clients at this site use the listener host and port to establish connections to the remote service.

    PlatformsKubernetes, Docker
  • --routing-key string

    The identifier used to route traffic from listeners to connectors. To enable connecting to a service at a remote site, the local listener and the remote 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 local listener. Clients at this site use the listener host and port to establish connections to the remote service.

    Default

    Value of name

    PlatformsKubernetes, Docker
  • --tls-secret string

    The name of a Kubernetes secret containing TLS credentials. The secret contains 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 router-to-server TLS encryption.

    PlatformsKubernetes, Docker
    See alsoSite-scoped TLS
  • --type string

    The listener type.

    Default

    tcp

    PlatformsKubernetes, Docker
  • --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