Reputation: 881
We have a requirement where we need to assign an static IP address (external and internal) to GCP VM/Dataproc Cluster's Master node while creating via Airflow.
We know its possible from GCP Console, but not sure how it can be done via Airflow or programmatically.
Upvotes: 1
Views: 463
Reputation: 1475
You need to pass hard coded value to assign the static IP addresses.You can follow the steps below to programmatically pass the static IP address :
You can use static external IP address using this documentation and for static internal IP address you can check this link. For using the static IP addresses in airflow, you can pass the static IP address in ipConfiguration field.
Upvotes: 1