diff --git a/tips/troubleshooting.md b/tips/troubleshooting.md index 2edacf0..7269f08 100644 --- a/tips/troubleshooting.md +++ b/tips/troubleshooting.md @@ -86,6 +86,11 @@ kubectl -n awx logs -f -c kubectl -n awx logs -f deployment/ kubectl -n awx logs -f deployment/ -c +# Get the logs of specific Pod which is handled by Job resource. +# If the Pod includes multiple containers, container name has to be specified. +kubectl -n awx logs -f job/ +kubectl -n awx logs -f job/ -c + # Get the logs of specific Pod which is handled by StatefulSet resource # If the Pod includes multiple containers, container name has to be specified. kubectl -n awx logs -f statefulset/ @@ -99,6 +104,8 @@ For AWX Operator and AWX, specifically, the following commands are helpful. - Logs of AWX related init containers - `kubectl -n awx logs -f deployment/awx-task -c init` - `kubectl -n awx logs -f deployment/awx-task -c init-projects` +- Logs of AWX related job container + - `kubectl -n awx logs -f job/awx-migration-` - Logs of AWX related containers - `kubectl -n awx logs -f deployment/awx-web -c awx-web` - `kubectl -n awx logs -f deployment/awx-web -c awx-rsyslog` @@ -107,7 +114,9 @@ For AWX Operator and AWX, specifically, the following commands are helpful. - `kubectl -n awx logs -f deployment/awx-task -c awx-ee` - `kubectl -n awx logs -f deployment/awx-task -c awx-rsyslog` - `kubectl -n awx logs -f deployment/awx-task -c redis` -- Logs of PostgreSQL +- Logs of PostgreSQL related init container + - `kubectl -n awx logs -f statefulset/awx-postgres-15 -c init` +- Logs of PostgreSQL related container - `kubectl -n awx logs -f statefulset/awx-postgres-15` ### Reveal "censored" output in the AWX Operator's log