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.
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.
I want to understand how to create a key and a token in Kubernetes that ansible can use.
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.
Good afternoon! Thank you so much!
I use this collection when Ansible and Kubernetes are on the same host, in this scheme I do not experience any problems. I am interested in understanding how to connect to API Kubernetes, I did not find a sane description.
пятница, 20 ноября 2020 г. в 05:46:01 UTC+3, Abhijeet Kasurde:
In general, not what I wanted, but it suits me: I transferred the ~/.kube/config file from the Kubernetes master to my ansible machine.
The test playbook works great: