<p>i'm trying to automate deployment in eks cluster using k8s ansible module.
It's seem that k8s module doesn't support EKS.</p>

<p>does anyone have an example of managing objects in eks using k8s ansible module.</p>

<p>Thanks in advance.</p>

<p>Thanks everyone, for your comments, it finally works.</p>

<p>I just reconfigure the file <code>~/.kube/kubeconfig</code> and set the good config in <code>~/.aws/</code>.</p>

<p>Snippet of the Ansible task: </p>

<pre><code>- name: "deploy app"
  k8s:
    kubeconfig: "{{ kube_config }}"
    namespace: "default"
    state: "present"
    src: "{{ item }}"
  with_items:
    - "{{ data_dir }}/{{ instance_name }}/deployment/deployment_file_1.yml"
    - "{{ data_dir }}/{{ instance_name }}/deployment/deployment_file_2.yml"
    - "{{ data_dir }}/{{ instance_name }}/deployment/deployment_file_3.yml"
</code></pre>
