What happened (please include outputs or screenshots):
Error while trying to access the kubernetes functions from within the cluster.
main.py

requirement.txt

Error

What you expected to happen:
List all the pods
How to reproduce it (as minimally and precisely as possible):
Python: 3.10-alpine(Dockerimage)
Kubernetes: 1.24
Hosted on: EKS
Tried all the available documentation. I do have KUBERNETES_SERVICE_HOST & KUBERNETES_PORT in env as well inside pod.yaml.
Any help would be appreciated.
Thanks