Skip to content

Contains example dags and terraform code to create a composer with a node pool to run pods

License

Notifications You must be signed in to change notification settings

ael-computas/gcp-cloud-composer-pod-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcp-cloud-composer-pod-operator

Contains example dags and terraform code to create a composer with a node pool to run pods. This is usually used within workshops with clients, but is also a resource for this blog post:

Installation

Make sure you have terraform installed (0.13) Change vars.tf to reflect the project id you want to use

terraform plan -out planfile.plan
terraform apply "planfile.plan"

The terraform script might miss some api enablement, so you might have to do that manually.

Note that the composer cluster is created with owner privileges. you do not want this for production.

Manual steps.

Sync the dags folder to your dags-bucket manually. composer Click the dags location bucket to get the name of the bucket.

then run

export BUCKET=gs://.....
gsutil cp -r composer/dags  gs://${BUCKET}

Cleanup

terraform destroy

Note that terraform doesnt destroy the buckets created for composer, so you will have to do this manually.

About

Contains example dags and terraform code to create a composer with a node pool to run pods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published