You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/support/must-gather.md
+27-4Lines changed: 27 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
# Gathering data with must-gather
2
2
3
3
`must-gather` is an embedded tool in Scylla Operator that helps collecting all the necessary info when something goes wrong.
4
-
5
4
The tool talks to the Kubernetes API, retrieves a predefined set of resources and saves them into a folder in your current directory.
6
-
By default, all collected Secrets are censored to avoid sending sensitive data.
7
-
That said, you can always review the archive before you attach it to an issue or your support request.
8
5
9
-
Given it needs to talk to the Kubernetes API, at the very least, you need to supply the `--kubeconfig` flag with a path to the kubeconfig file for your Kubernetes cluster, or set the `KUBECONFIG` environment variable.
6
+
By default, sensitive resources (`Secrets` and `bitnami.com.SealedSecrets`) are omitted from the collection.
7
+
If you come across a clear need to include them (not recommended unless the default settings are deemed insufficient for investigation), please refer to the [include sensitive resources](#including-sensitive-resources) section below.
8
+
If you have other resources that you wouldn't like to include in the collection, refer to the [excluding resources](#excluding-resources) section below.
9
+
10
+
Given that `must-gather` needs to talk to the Kubernetes API, at the very least, you need to supply the `--kubeconfig` flag with a path to the kubeconfig file for your Kubernetes cluster, or set the `KUBECONFIG` environment variable.
10
11
11
12
## Running must-gather
12
13
@@ -99,3 +100,25 @@ You can also request collecting every resource in the Kubernetes API, if the def
99
100
```bash
100
101
scylla-operator must-gather --all-resources
101
102
```
103
+
104
+
### Including sensitive resources
105
+
106
+
By default, `must-gather` omits sensitive resources like `Secrets` or `bitnami.com.SealedSecrets`. You can turn this
107
+
behavior off by passing the `--include-sensitive-resources` flag.
flagset.StringVarP(&o.DestDir, "dest-dir", "", o.DestDir, "Destination directory where to store the artifacts.")
63
-
flagset.Int64VarP(&o.LogsLimitBytes, "log-limit-bytes", "", o.LogsLimitBytes, "Maximum number of bytes collected for each log file, 0 means unlimited.")
64
-
flagset.BoolVarP(&o.CollectManagedFields, "managed-fields", "", o.CollectManagedFields, "Controls whether metadata.managedFields should be collected in the resource dumps.")
65
-
flagset.BoolVarP(&o.KeepGoing, "keep-going", "", o.KeepGoing, "Controls whether the collection should proceed to other resources over collection errors, accumulating errors.")
100
+
f:=o.cliFlags
101
+
flagset.StringVar(&f.DestDir, "dest-dir", f.DestDir, "Destination directory where to store the artifacts.")
102
+
flagset.Int64Var(&f.LogsLimitBytes, "log-limit-bytes", f.LogsLimitBytes, "Maximum number of bytes collected for each log file, 0 means unlimited.")
103
+
flagset.BoolVar(&f.CollectManagedFields, "managed-fields", f.CollectManagedFields, "Controls whether metadata.managedFields should be collected in the resource dumps.")
104
+
flagset.BoolVar(&f.KeepGoing, "keep-going", f.KeepGoing, "Controls whether the collection should proceed to other resources over collection errors, accumulating errors.")
0 commit comments