How do I get log files?
First, get an overview of all the running containers in your CDCM namespace:
kubectl get pods -n cdcm
This will create an output similar to the following
Application logs
Issue the command with the exact name of your application containerkubectl logs -n cdcm cdcm-6fd8df9f5f-jcnsj > cdcm.log
This will create a text file with the logs of the CDCM application.
MongoDB logs
Issue the command with the exact name of your MongoDB container.kubectl logs -n cdcm cdcm-mongodb-0 > mongodb.log
If you are running a MongoDB cluster, please use only the master node!
0 Comments