Skip to content

Commit

Permalink
Add step to get Rancher logging in HA
Browse files Browse the repository at this point in the history
  • Loading branch information
superseb authored and Denise committed Jun 18, 2018
1 parent 60fafc7 commit 84e16ee
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
```

0 comments on commit 84e16ee

Please sign in to comment.