Hi Team I am trying to deploy a meltano based tap ...
# troubleshooting
a
Hi Team I am trying to deploy a meltano based tap and target docker image on google cloud composer. I am using
KubernetesPodOperator
within the Airflow DAG. I get following error as the dag executes: Any help is appreciated.
Copy code
kubernetes.client.exceptions.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': '94fb3e56-6d92-4b59-a9d2-89d29567aee0', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': 'c9dd9486-a84a-4f05-91f9-b9ffef419408', 'X-Kubernetes-Pf-Prioritylevel-Uid': '2c6f2aee-c983-452f-8eb2-0d9dba2c326c', 'Date': 'Thu, 13 Jul 2023 06:23:46 GMT', 'Content-Length': '320'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods is forbidden: User \"system:serviceaccount:composer-1-20-12-airflow-2-4-3-8c1b8a05:default\" cannot list resource \"pods\" in API group \"\" in the namespace \"pool-1-ashish\"","reason":"Forbidden","details":{"kind":"pods"},"code":403}
j
This is not really Meltano related error. The error says that the operator does not have privilege to
list pods in "pool-1-ashish" namespace
Either you need to grant it necessary permissions or you need to point it to a namespace where you are allowed to operate in