rpk shadow config generate
Generate a configuration file for creating a shadow link.
By default, this command creates a sample configuration file with placeholder values that you customize for your environment.
Use the --for-cloud flag when generating your configuration.
Use the --print-template flag to generate a configuration template with detailed field documentations.
By default, this command prints the configuration to standard output. Use the --output flag to save the configuration to a file.
After you generate the configuration file, update the placeholder values with your actual connection details and settings. Then use rpk shadow create to create the shadow link.
Examples
Generate a sample configuration and print it to standard output:
rpk shadow config generate
Generate a configuration template with all the field documentation:
rpk shadow config generate --print-template
Save the sample configuration to a file:
rpk shadow config generate -o shadow-link.yaml
Save the template with documentation to a file:
rpk shadow config generate --print-template -o shadow-link.yaml
Flags
| Value | Type | Description |
|---|---|---|
|
- |
Generate configuration suitable for Cloud deployments. |
|
string |
File path identifying where to save the generated configuration file. If not specified, prints to standard output. |
|
- |
Generate a configuration template with field documentation instead of a sample configuration. |
|
- |
Help for generate. |
|
string |
Redpanda or |
|
stringArray |
Override |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |