Connector generate command
skupper connector generate <name> <port> [options]
Generate a Connector resource.
| Platforms | Kubernetes, Docker, Podman, Linux |
|---|
Examples
# Generate a Connector resource and print it to the console
$ skupper connector generate backend 8080
apiVersion: skupper.io/v2alpha1
kind: Connector
metadata:
name: backend
spec:
routingKey: backend
port: 8080
selector: app=backend
# Generate a Connector resource and direct the output to a file
$ skupper connector generate backend 8080 > backend.yaml
Primary options
<name>
The name of the resource to be generated.
| See also | Kubernetes object names |
|---|
<port>
The port on the target server to connect to.
| Updatable | True |
|---|
--routing-key
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 |
|---|---|
| Updatable | True |
--workload
A Kubernetes resource name that identifies a workload. It uses
<resource-type>/<resource-name> syntax and resolves to an
equivalent pod selector.
This is an alternative to setting the --selector or
--host options.
| Platforms | Kubernetes |
|---|---|
| See also | Kubernetes workloads |
--selector
A Kubernetes label selector for specifying target server pods. It
uses <label-name>=<label-value> syntax.
This is an alternative to setting the --workload or
--host options.
| Default |
|
|---|---|
| Platforms | Kubernetes |
| Updatable | True |
| See also | Kubernetes label selectors |
--host
The hostname or IP address of the server. This is an
alternative to selector for specifying the target server.
This is an alternative to setting the --selector or
--workload options.
| Default | On Kubernetes: Value of name |
|---|---|
| Updatable | True |
--wait
Wait for the given status before exiting.
| Default |
| ||||||
|---|---|---|---|---|---|---|---|
| Choices |
|
--output
Select the output format.
| Default |
| ||||
|---|---|---|---|---|---|
| Choices |
|
Global options
--platform
Set the Skupper platform.
| Default |
| ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Choices |
| ||||||||
| See also | Platform concept |
--help
Display help and exit.