Connector create command
skupper connector create <name> <port> [options]
Create a connector.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
Waits for | Configured |
Examples
# Create a connector for a database
$ skupper connector create database 5432
Waiting for status...
Connector "database" is configured.
# Set the routing key and selector explicitly
$ skupper connector create backend 8080 --routing-key be1 --selector app=be1
# Use the workload option to select pods
$ skupper connector create backend 8080 --workload deployment/backend
Primary options
<name>
The name of the resource to be created.
The name is the default routing key if the --routing-key
option is not specified. On Kubernetes, the name defines
the default pod selector if the --selector
and
--workload
options are not specified.
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 | 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.