Skip to content
GitHub

Link generate command

skupper link generate [options]

Generate a new link resource as a YAML output, unless explicitly specified otherwise using the --output flag. The resultant output needs to be applied in the site in which we want to create the link.

PlatformsKubernetes, Docker, Podman, Linux
Waits forSite 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

--cost

<string>
the configured "expense" of sending traffic over the link. (default "1")
Default

"1"

--generate-credential

boolean
generate the necessary credentials to create the link (default true)
Default

true

--help

boolean
help for generate -o, --output string print resources to the console instead of submitting them to the Skupper controller. Choices: json, yaml (default "yaml")
Default

"yaml"

--timeout

<duration>
raise an error if the operation does not complete in the given period of time (expressed in seconds). (default 1m0s)
Default

1m0s

--tls-credentials

<string>
the name of a Kubernetes secret containing the generated or externally-supplied TLS credentials. ``` ``` -c, --context string Set the kubeconfig context

--kubeconfig

<string>
Path to the kubeconfig file to use -n, --namespace string Set the namespace -p, --platform string Set the platform type to use [kubernetes, podman, docker, linux] ```

Global options