updated docs to view logs for docker and k8s (#1624)

This commit is contained in:
Akash Jain 2021-12-08 20:45:44 +05:30 committed by GitHub
parent 689e5beaea
commit 07b81edfc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -83,3 +83,37 @@ To expose the OpenMetadata UI on a local Kubernetes instance, run this command.
kubectl port-forward <openmetadata-front end pod name> 8585:8585
```
{% endhint %}
## Troubleshooting
### View helm chart deployment status
Run the below command to view status of openmetadata helm chart deployed -
```
helm status openmetadata
```
For more information, visit helm command line reference [here](https://helm.sh/docs/helm/helm_status/).
### View openmetadata kubernetes pod logs
Run the below command to list openmetadata kubernetes pods deployed in a namespace -
```
kubectl get pods --namespace <NAMESPACE_NAME> -l='app.kubernetes.io/managed-by=Helm,app.kubernetes.io/instance=<RELEASE_NAME>'
```
Example, list pods deployed by helm release name 'ometa' in the namespace 'ometa-dev' -
```
kubectl get pods --namespace ometa-dev -l='app.kubernetes.io/managed-by=Helm,app.kubernetes.io/instance=ometa'
```
Next, view the logs of pod by running the below command,
```
kubectl logs <POD_NAME> --namespace <NAMESPACE_NAME>
```
For more information, visit the kubectl logs command line reference documentation [here](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/).

View File

@ -193,6 +193,22 @@ You should see a page similar to the following as the landing page for the OpenM
### Troubleshooting
#### Viewing docker container logs
You can view the logs generated by openmetadata containers with the below command -
```
docker-compose logs <SERVICE_NAME>
```
or
```
docker logs <CONTAINER_NAME>
```
For further reference, visit command line documentation for [docker-compose logs](https://docs.docker.com/compose/reference/logs/) and [docker logs](https://docs.docker.com/engine/reference/commandline/logs/)
#### Could not find a version that satisfied the requirement
```