This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
k8s module search for kubeconfig on the Ansible Controller #333
Labels
needs_info
More information required in order to debug the issue such as console log, library versions etc.
SUMMARY
I passed my playbooks from community.kubernetes == 0.11.1 to 1.1.1 and the
kubeconfig
parameter stopped working correctly. This parameter used to search for kubeconfig on the Ansible Target but it seems that it is now searching for kubeconfig path on the Ansible Controller.ISSUE TYPE
COMPONENT NAME
community.kubernetes.k8s
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
I use kubernetes==11.0.0 because of issue #314
STEPS TO REPRODUCE
Using this playbook, having the kubeconfig file on remote at path
/root/.kube/config
with a context calledkubernetes-admin@kubernetes
.EXPECTED RESULTS
Create the test namespace by using kubeconfig file from the remote.
ACTUAL RESULTS
The module search for kubeconfig file on the Ansible Controller host (which has no kubeconfig files) so it fails by saying that ansible controller has nos valid kubeconfig file at path
/root/.kube/config
WORKAROUND
Actually, using this playbook (with environment variable) works fine, but I don't know if this is expected. If this is expected, I think that the documentation should mention that the use of environmental variables implies a different behaviour.
The text was updated successfully, but these errors were encountered: