Listener generate command
Generate a Listener resource.
Platforms | Kubernetes, Docker, Podman, Linux |
---|
Usage
skupper listener generate <name> <port> [options]
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>
The name of the resource to be generated.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
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.
Platforms | Kubernetes, Docker, Podman, Linux |
---|
--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 |
---|---|
Platforms | Kubernetes, Docker, Podman, Linux |
See also | Routing key concept |
--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 |
---|---|
Platforms | Kubernetes, Docker, Podman, Linux |
--wait
Wait for the given status before exiting.
Default |
| ||||||
---|---|---|---|---|---|---|---|
Choices |
| ||||||
Platforms | Kubernetes, Docker, Podman, Linux |
--output
Select the output format.
Default |
| ||||
---|---|---|---|---|---|
Choices |
| ||||
Platforms | Kubernetes, Docker, Podman, Linux |
--tls-credentials
A named bundle of TLS certificates and keys used for secure application-to-router communication. The bundle contains the trusted server certificate. It optionally includes a client certificate and key for mutual TLS.
On Kubernetes, the value is the name of a Secret in the current namespace.
This option is used when setting up client-to-router TLS authentication and encryption.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
See also | Site-scoped TLS, Kubernetes TLS secrets |
Global options
--platform
Set the Skupper platform.
Default |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Choices |
| ||||||||
Platforms | Kubernetes, Docker, Podman, Linux | ||||||||
See also | Platform concept |
--help
Display help and exit.
Platforms | Kubernetes, Docker, Podman, Linux |
---|