rpk k8s multicluster bundle
Collect environment data from each Kubernetes cluster in a Stretch Cluster deployment and package it into a ZIP file for support.
This is the operator-side counterpart to rpk debug bundle, which collects
data from the Redpanda brokers themselves.
By default, only one Kubernetes context is required. The bundle command
discovers peer clusters from labelled cache Secrets stored by the operator’s
raft-bootstrap flow on the starting cluster, so the tool stays useful when
one of the peer clusters is down. Pass multiple --context flags to bypass
discovery and diagnose exactly that set.
Examples
This section provides examples of how to use rpk k8s multicluster bundle.
Use a single context and discover peers from the starting cluster:
rpk k8s multicluster bundle --kubeconfig /path/to/kubeconfig
Start from a specific cluster in the default kubeconfig:
rpk k8s multicluster bundle --context cluster-a
Bypass discovery and bundle the listed clusters directly:
rpk k8s multicluster bundle --context cluster-a --context cluster-b --context cluster-c
Write the bundle to a specific path:
rpk k8s multicluster bundle --context cluster-a -o /tmp/operator-bundle.zip
Flags
| Value | Type | Description |
|---|---|---|
|
strings |
Kubernetes contexts. Repeatable. If omitted with |
|
bool |
Include TLS private keys and cached peer kubeconfigs in serialised Secrets. Off by default. |
|
string |
Path to a kubeconfig file (all contexts in the file are used unless |
|
string |
Per-container log byte cap ( |
|
int |
Per-container log tail-line cap (0 disables the cap) (default 5000). |
|
duration |
Interval between successive |
|
int |
Number of |
|
stringArray |
Override the TLS secret prefix for a context, in |
|
string |
Namespace for operator resources (default |
|
string |
Output mode. Empty (the default) applies resources to clusters. |
|
string |
Operator deployment label selector value ( |
|
bool |
Skip operator pod log collection. |
|
bool |
Skip operator |
|
bool |
Print per-step progress to stderr (use to diagnose slow runs / hangs). |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |