Link generate command
Generate a Link resource for use in a remote site.
Generating a link requires a site with link access enabled. The command waits for the site to enter the ready state before producing the link.
Platforms | Kubernetes, Docker, Podman, Linux |
---|
Usage
skupper link generate [name] [options]
Examples
# Generate a Link resource and print it to the console
$ skupper link generate
apiVersion: skupper.io/v2alpha1
kind: Link
metadata:
name: south-ac619
spec:
endpoints:
- group: skupper-router-1
host: 10.97.161.185
name: inter-router
port: "55671"
- group: skupper-router-1
host: 10.97.161.185
name: edge
port: "45671"
tlsCredentials: south-ac619
---
apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
name: south-ac619
data:
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJB [...]
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURORENDQWh5Z0F3SUJ [...]
tls.key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0N [...]
# Generate a Link resource and direct the output to a file
$ skupper link generate > link.yaml
Primary options
[name]
string
optional
The name of the resource to be generated. A name is generated if none is provided.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
See also | Kubernetes object names |
--cost
<integer>
The configured routing cost of sending traffic over the link.
Default | 1 |
---|---|
Platforms | Kubernetes, Docker, Podman, Linux |
See also | Load balancing |
--output
(-o) <format>
Select the output format.
Default |
| ||||
---|---|---|---|---|---|
Choices |
| ||||
Platforms | Kubernetes, Docker, Podman, Linux |
Global options
--context
<name>
global
Set the kubeconfig context.
Platforms | Kubernetes |
---|---|
See also | Kubernetes kubeconfigs |
--kubeconfig
<file>
global
Set the path to the kubeconfig file.
Platforms | Kubernetes |
---|---|
See also | Kubernetes kubeconfigs |
--namespace
(-n) <name>
global
Set the namespace.
Platforms | Kubernetes, Docker, Podman, Linux |
---|---|
See also | Kubernetes namespaces |
--platform
<platform>
global
Set the Skupper platform.
Default |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Choices |
| ||||||||
Platforms | Kubernetes, Docker, Podman, Linux | ||||||||
See also | Platform concept |
--help
(-h) boolean
global
Display help and exit.
Platforms | Kubernetes, Docker, Podman, Linux |
---|
Notes
Should the default generated link have useClientCert: true?