Listener generate command

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

Generate a Listener resource.

PlatformsKubernetes, Docker, Podman, Linux

Examples

# Generate a Listener resource and print it to the console
$ skupper listener generate backend 8080
apiVersion: skupper.io/v2alpha1
kind: Listener
metadata:
  name: backend
spec:
  routingKey: backend
  port: 8080
  host: backend

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

Primary options

<name>

string
required

The name of the resource to be generated.

See alsoKubernetes object names

<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.

UpdatableTrue

--routing-key

<string>
frequently used

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

UpdatableTrue

--host

<string>
frequently used

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

UpdatableTrue

--wait

<status>

Wait for the given status before exiting.

Default

configured

Choices
none

Do not wait

configured

Configured

ready

Ready

--output

(-o) <format>

Select the output format.

Default

yaml

Choices
json

Produce JSON output

yaml

Produce YAML output

Global options