Link generate command¶
Generate a new link resource as a YAML output The resultant output needs to be applied in the site in which we want to create the link.
| Platforms | Kubernetes, Docker, Podman, Linux |
|---|---|
| Waits for | Site resource ready |
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¶
--help
boolean
help for generate
--host
<string>
Endpoint Host
--name
<string>
Router Access Name ``` ``` -n, --namespace string Set the namespace -p, --platform string Set the platform type to use [kubernetes, podman, docker, linux] ```