3
votes

From local machine, we can apply Kubernetes YAML files to AWS EKS using AWS CLI + aws-iam-authenticator + kubectl. How to do it in Ansible Tower / AWX?

Understand that there are a few Ansible modules available but none seems to be able to apply Kubernetes YAML to EKS.

  • k8s doesn't seem to support EKS at the moment.
  • aws_eks_cluster only allows user to manage EKS cluster (e.g. create, remove).
1

1 Answers

3
votes

I think that you can possibly reach the goal via k8s module as it natively supports kubeconfig parameter which you can use for EKS cluster authentication. You can follow the steps described in the official documentation in order to compose kubeconfig file. There was a separate thread discussed on GitHub #45858 about kubernetes manifest file implementation through k8s module, however Git contributors were facing some authorization issue, therefore take a chance and look through the conversation maybe you will find some helpful suggestions.