-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot be used with EKS #461
Comments
@olahouze Are you able to successfully use kubectl to run the command using the same kubeconfig? |
Yes no probleme with kubctl and same file kubeconfig |
Did this get solved? I too get the same error. |
I am not able to reproduce this on my end. Are you able to successfully retrieve your ExecCredential with your exec based auth command? In your case, it should be:
|
I am having these same issues, and its VERY hard to reproduce. I am using a service account, so my kubeconfig is In random namespaces, I encounter random issues, even though permission are set accordingly. In other namespaces, things are perfectly fine. Here is an example:
Thing is, I use terraform which sets the permissions for everyone namespace the SAME for the Also, using kubectl - it works just fine. Using ansible via the 'k8s_scale'? Fails randomly.
|
We need some additional information in trying to reproduce this.
Also, community.kubernetes has been deprecated for about 2 years and has be removed from the latest ansible community distros. It shouldn't be in conflict with kubernetes.core, but it's worth eliminating. |
if the kubernetes.core is in the |
@jbkc85 You can use |
I am encountering a similar problem when trying to use - name: create target database in db cluster
kubernetes.core.k8s_exec:
kubeconfig: /home/user/migration/kubeconfig
namespace: '{{ migration_namespace }}'
pod: 'db-client-customer-st-{{ customer_id }}'
command: 'mysql -hcluster1-pxc -uroot -p$MYSQL_DB_PASSWORD -e "CREATE DATABASE {{ db-name }}"' generates the following error (using
Ansible & Module versions I use:
The k8s cluster I use is version |
Hello. Is there news on this case ? I am always facing the problem Best regards |
I'm facing the same issue. kubernetes-client/python#678 So, instead of using the
On the kubeconfig file:
That kubeconfig file with the Python method is working fine with But Ansible is still failing with the same :
It's failing on every execution. Whereas
So it does look like Ansible is completely failing on using that I'm really dry on ideas right now... |
I got it working with
Notes:
It's over engineered but it's the only thing that worked. |
SUMMARY
I can't use the module to administer AWS EKS clusters
ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s_exec
ANSIBLE VERSION
COLLECTION VERSION
ansible-galaxy collection list don'work on my computer
I had collections :
CONFIGURATION
No result to commande : ansible-config dump --only-changed
OS / ENVIRONMENT
Linux XXXX 5.13.0-41-generic #46~20.04.1-Ubuntu
STEPS TO REPRODUCE
My parameters :
kubeconfig :
Playbook of test
With parameters :
EXPECTED RESULTS
I would like the command to run on the pod and return the result
ACTUAL RESULTS
Error message on ansible
The text was updated successfully, but these errors were encountered: