mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 05:28:22 +00:00
Fixed the Kubernetes and Docker sub-headings
The current subheadings are indented wrong. Rather than fixing the indentation, this commit makes them as markdown sub-headings for a better reading experience.
This commit is contained in:
@@ -12,8 +12,8 @@ The following log levels are used in Rancher:
|
|||||||
|
|
||||||
### How to configure a log level
|
### How to configure a log level
|
||||||
|
|
||||||
* Kubernetes install
|
#### Kubernetes install
|
||||||
* Configure debug log level
|
* Configure debug log level
|
||||||
```
|
```
|
||||||
$ KUBECONFIG=./kube_config_cluster.yml
|
$ KUBECONFIG=./kube_config_cluster.yml
|
||||||
$ kubectl -n cattle-system get pods -l app=rancher --no-headers -o custom-columns=name:.metadata.name | while read rancherpod; do kubectl -n cattle-system exec $rancherpod -c rancher -- loglevel --set debug; done
|
$ kubectl -n cattle-system get pods -l app=rancher --no-headers -o custom-columns=name:.metadata.name | while read rancherpod; do kubectl -n cattle-system exec $rancherpod -c rancher -- loglevel --set debug; done
|
||||||
@@ -23,7 +23,7 @@ OK
|
|||||||
$ kubectl -n cattle-system logs -l app=rancher -c rancher
|
$ kubectl -n cattle-system logs -l app=rancher -c rancher
|
||||||
```
|
```
|
||||||
|
|
||||||
* Configure info log level
|
* Configure info log level
|
||||||
```
|
```
|
||||||
$ KUBECONFIG=./kube_config_cluster.yml
|
$ KUBECONFIG=./kube_config_cluster.yml
|
||||||
$ kubectl -n cattle-system get pods -l app=rancher --no-headers -o custom-columns=name:.metadata.name | while read rancherpod; do kubectl -n cattle-system exec $rancherpod -c rancher -- loglevel --set info; done
|
$ kubectl -n cattle-system get pods -l app=rancher --no-headers -o custom-columns=name:.metadata.name | while read rancherpod; do kubectl -n cattle-system exec $rancherpod -c rancher -- loglevel --set info; done
|
||||||
@@ -32,15 +32,15 @@ OK
|
|||||||
OK
|
OK
|
||||||
```
|
```
|
||||||
|
|
||||||
* Docker Install
|
#### Docker Install
|
||||||
* Configure debug log level
|
* Configure debug log level
|
||||||
```
|
```
|
||||||
$ docker exec -ti <container_id> loglevel --set debug
|
$ docker exec -ti <container_id> loglevel --set debug
|
||||||
OK
|
OK
|
||||||
$ docker logs -f <container_id>
|
$ docker logs -f <container_id>
|
||||||
```
|
```
|
||||||
|
|
||||||
* Configure info log level
|
* Configure info log level
|
||||||
```
|
```
|
||||||
$ docker exec -ti <container_id> loglevel --set info
|
$ docker exec -ti <container_id> loglevel --set info
|
||||||
OK
|
OK
|
||||||
|
|||||||
Reference in New Issue
Block a user