I want to connect to API Kubernetes with Ansible. Ansible and Kubernetes are installed on different hosts. Unfortunately, I cannot find a normal description of how this works.
Please help with links to manuals where the process is described in detail.
1) I want to understand if it is possible to create a key and a token by which I will easily connect to the API. I want to understand whether it is possible to create a key and a token without being bound to any namespace or service account.
2) I want to understand how to create a key and a token in Kubernetes that ansible can use.
3) I want to understand where to store the key and token on the ansible side. I want to understand where in the playbook to specify the key and token.
Thanks in advance!