File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -34,33 +34,33 @@ $ oc logs pod/<velero>
34
34
[id="oc-velero-debug-logs_{context}"]
35
35
== Velero pod debug logs
36
36
37
- Use the `oc edit` command to set the `Velero` pod logs to debug level:
37
+ You can specify the Velero log level in the `DataProtectionApplication` resource as shown in the following example.
38
38
39
- . Edit the `Velero` deployment:
40
- +
41
- [source,terminalsubs="attributes+"]
42
- ----
43
- $ oc edit deployment/velero -n {namespace}
44
- ----
39
+ [NOTE]
40
+ ====
41
+ This option is available starting from OADP 1.0.3.
42
+ ====
45
43
46
- . Add `--log-level` and `debug` to the `spec.template.spec.containers.velero.args` array:
47
- +
48
44
[source,yaml]
49
45
----
50
- apiVersion: apps/v1
51
- kind: Deployment
52
- ...
46
+ apiVersion: oadp.openshift.io/v1alpha1
47
+ kind: DataProtectionApplication
48
+ metadata:
49
+ name: velero-sample
53
50
spec:
54
- template:
55
- spec:
56
- containers:
57
- - name: velero
58
- image: velero/velero:latest
59
- command:
60
- - /velero
61
- args:
62
- - server
63
- - --log-level
64
- - debug
65
- ...
51
+ configuration:
52
+ velero:
53
+ logLevel: warning
66
54
----
55
+
56
+ The following `logLevel` values are available:
57
+
58
+ * `trace`
59
+ * `debug`
60
+ * `info`
61
+ * `warning`
62
+ * `error`
63
+ * `fatal`
64
+ * `panic`
65
+
66
+ It is recommended to use `debug` for most logs.
You can’t perform that action at this time.
0 commit comments