Kubernetes 401 unauthorized

What I can see from here:
The Check_MK service has in the summary an [agent] part and a [piggyback] part. For the Kubernetes monitoring, an agent part is not necessary as all data comes via [piggyback].

In your DCD, you need to configure it like this:

→ So that the agent part is not done anymore as then “Monitoring agents Checkmk agent / API integration” is set to none.