mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-08-20 08:52:32 +00:00
Add step to get Rancher logging in HA
This commit is contained in:
committed by
Denise
parent
60fafc7a91
commit
84e16ee1d7
+8
-2
@@ -31,7 +31,7 @@ If a pod is not in **Running** state, you can dig into the root cause by running
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml describe pod POD_NAME -n NAMESPACE
|
||||
```
|
||||
|
||||
<h5>Pod logs</h5>
|
||||
<h5>Pod container logs</h5>
|
||||
|
||||
```
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml logs POD_NAME -n NAMESPACE
|
||||
@@ -45,7 +45,7 @@ If a job is not in **Completed** state, you can dig into the root cause by runni
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml describe job JOB_NAME -n NAMESPACE
|
||||
```
|
||||
|
||||
<h5>Logs from the pods of the job</h5>
|
||||
<h5>Logs from the containers of pods of the job</h5>
|
||||
|
||||
```
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml logs -l job-name=JOB_NAME -n NAMESPACE
|
||||
@@ -58,3 +58,9 @@ Kubernetes cluster events are stored, and can be retrieved by running:
|
||||
```
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml get events --all-namespaces
|
||||
```
|
||||
|
||||
* Check Rancher container logging
|
||||
|
||||
```
|
||||
kubectl --kubeconfig kube_config_rancher-cluster.yml logs -l app=cattle -n cattle-system
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user