apiVersion: v1 kind: Config clusters: - name: local cluster: certificate-authority: {{ kube_cert_dir }}/ca.pem server: {{ kube_apiserver_endpoint }} users: - name: controller-manager user: client-certificate: {{ kube_cert_dir }}/controller-manager-{{ inventory_hostname }}.pem client-key: {{ kube_cert_dir }}/controller-manager-{{ inventory_hostname }}-key.pem contexts: - context: cluster: local user: controller-manager name: controller-manager-{{ cluster_name }} current-context: controller-manager-{{ cluster_name }}