I am new to Kubernetes and I am transitioning some of the apps to K8S Cluster. I have tremendous use of S3 in the containers that I used through Roles in AWS. I have configured a 2 node cluster using kubeadm using Ec2 instances(not EKS). But I am stuck as whenever I run the container through pods I get error:
**Could not connect to the endpoint URL:"https://<bucket_name>.s3.amazonaws.com/**
I have IAM roles attached to the Ec2 instances that are configured as master and nodes. Please suggest the best way to establish S3 connection through pods. Any document/gitrepo link will be highly appreciated. Thanks in advance.