I'm trying to deploy a GKE Workload (yaml file) via Cloud Composer 2. I can do it easily via console, but from Cloud Composer I'm facing authorization issues, which led me to think if this is the best method. The general idea for this pipeline is as follows
1 - Create GKE cluster
2 - Start POD (with composer operator).
3 - kubectl -f app.yaml
4 - execute scraping script (selenium grid)
5 - delete GKE cluster
All of the steps above have been tested on it's one without and issue, only when trying from Cloud Composer I'm facing authorization issues on step 3.
deployments.apps is forbidden: User "system:serviceaccount:default:default" cannot create resource "deployments" in API group "apps" in the namespace "default"
services is forbidden: User "system:serviceaccount:default:default" cannot create resource "services" in API group "" in the namespace "default"
deployments.apps is forbidden: User "system:serviceaccount:default:default" cannot create resource "deployments" in API group "apps" in the namespace "default"
Any help/clarification would be appreciated