How can I read Kubernetes API Server logs?

I’m running a DO Kubernetes cluster.

I would like to access the kube-apiserver logs.

I was unable to find any information on this on the docs. Could I get some pointers?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@sgupta Thanks for that.

I am currently getting alerts from Promtheus that “the API Server is burning too much error budget” (this is using the built-in alerts with Prometheus Operator).

These started appearing one day, they weren’t there before.

Would it be possible to give me some steps to debug this, as I believe it is concerning and I should have some visibility over the errors going on the API server.

Should I open a support ticket?

Hi Serain,

Because DOKS is a managed service, users do not have access to the masters or nodes to make configuration changes or updates to the underlying virtual machine.

This is intended to maintain a level of supportability and stability for our Kubernetes service.

The master api is currently not configurable in this way. However, rest assured we are currently aware of issues regarding cluster authentication and authorization.