kubectl logs -n kube-system <api-server-pod-name>
kubectl
command to get the list of pods in the cluster: kubectl get pods
.kubectl logs
command: kubectl logs <pod_name> --namespace=<namespace> --clear
.<pod_name>
with the actual name of the pod and <namespace>
with the appropriate namespace where the pod is running.