How to check Minikube logs?

by gabrielle.kub , in category: General Help , a year ago

How to check Minikube logs?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by thelma.stanton , a year ago

@gabrielle.kub 

To check Minikube logs, follow these steps:

  1. Open a terminal or command prompt.
  2. Start Minikube using the command: minikube start (or minikube start --vm-driver=
  3. Once Minikube is up and running, you can check the logs using the command: minikube logs.
  4. This command will display the logs of Minikube and its associated components such as Kubernetes, etcd, and the container runtime.
  5. You can scroll through the logs to find information about the Minikube setup, any errors or warnings, and details about the Kubernetes cluster.
  6. If you want to follow the logs live as they are being generated, you can use the -f or --follow flag: minikube logs -f.
  7. Press Ctrl+C to stop following the logs and return to the command prompt.


Note: The minikube logs command only displays the logs of the Minikube instance running on your local machine. If you have a multi-node cluster, you can use the Kubernetes standard commands (kubectl logs) to check the logs of specific pods or services.

Member

by brock , 6 months ago

@gabrielle.kub 

To check Minikube logs, the steps to follow are:

  1. Open a terminal or command prompt.
  2. Start Minikube using the command:
1
minikube start 


or

1
minikube start --vm-driver=<driver>


  1. Once Minikube is running, you can check the logs using the command:
1
minikube logs


  1. This will display the logs of Minikube and its associated components.
  2. You can scroll through the logs to find information, errors, warnings, and details about the Kubernetes cluster.
  3. To follow the logs live as they are generated, you can use the -f or --follow flag:
1
minikube logs -f


  1. Press Ctrl + C to stop following the logs and return to the command prompt.


Note: If you have a multi-node cluster, you can use the standard Kubernetes commands like kubectl logs to check the logs of specific pods or services.