WARNING: Jenkins X version 2.x is unmaintained. Do not use it.
Please refer to the v3 documentation for the latest supported version.
jx step link
list of jx commands
jx step link
achieve service linking in preview environments
Synopsis
This pipeline step helps to link microservices from different namespaces like staging/production onto a preview environment
jx step link services [flags]
Examples
#Link services from jx-staging namespace to the current namespace
jx step link services --from-namespace jx-staging
#Link services from jx-staging namespace to the jx-prod namespace
jx step link services --from-namespace jx-staging --to-namespace jx-prod
#Link services from jx-staging namespace to the jx-prod namespace including all but the ones starting with the characters 'cheese'
jx step link services --from-namespace jx-staging --to-namespace jx-prod --includes * --excludes cheese*
Options
-e, --excludes stringArray What services from the source namespace to exclude from the linking process
-f, --from-namespace string The source namespace from which the linking would happen
-h, --help help for link
-i, --includes stringArray What services from source namespace to include in the linking process
-t, --to-namespace string The destination namespace to which the linking would happen
Options inherited from parent commands
-b, --batch-mode Runs in batch mode without prompting for user input
--verbose Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace
SEE ALSO
- jx step - pipeline steps
Auto generated by spf13/cobra on 2-Sep-2020
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 2, 2020: updated jx commands & API docs from 2.1.138 (4fc0bedc90)