Listener create command
skupper listener create <name> <port> [options]
Create a listener.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
Waits for | Configured |
Examples
# Create a listener for a database
$ skupper listener create database 5432
Waiting for status...
Listener "database" is configured.
# Set the routing key and host explicitly
$ skupper listener create backend 8080 --routing-key be1 --host apiserver
Primary options
<name>
The name of the resource to be created.
The name is the default routing key and host if the
--routing-key
and --host
options are not specified.
See also | Kubernetes object names |
---|
<port>
The port of the local listener. Clients at this site use the listener host and port to establish connections to the remote service.
Updatable | True |
---|
--routing-key
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 |
---|---|
Updatable | True |
--host
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 |
---|---|
Updatable | True |
--wait
Wait for the given status before exiting.
Default |
| ||||||
---|---|---|---|---|---|---|---|
Choices |
| ||||||
Platforms | Kubernetes | ||||||
See also | Resource status |
--timeout
Raise an error if the operation does not complete in the given period of time.
Default |
|
---|---|
Platforms | Kubernetes |
See also | Duration format |
Global options
--context
Set the kubeconfig context.
Platforms | Kubernetes |
---|---|
See also | Kubernetes kubeconfigs |
--kubeconfig
Set the path to the kubeconfig file.
Platforms | Kubernetes |
---|---|
See also | Kubernetes kubeconfigs |
--namespace
Set the current namespace.
See also | Kubernetes namespaces, System namespaces |
---|
--platform
Set the Skupper platform.
Default |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Choices |
| ||||||||
See also | Platform concept |
--help
Display help and exit.