Can you get a static external IP address for Google Cloud Composer / Airflow?

前端 未结 2 1785
耶瑟儿~
耶瑟儿~ 2021-01-06 16:41

I know how to assign a static external IP address to a Compute Engine, but can this be done with Google Cloud Composer (Airflow)? I\'d imagine most companies need that funct

相关标签:
2条回答
  • 2021-01-06 16:51

    It's not possible to assign a static IP to the underlying GKE cluster in a Composer environment. The endpoint @kaxil mentioned is the Kubernetes master endpoint but not the GKE nodes.

    If the intent is to let all outgoing network connections from Composer tasks use the same external IP, consider setting up a GCE VM with a static IP and adding a proxy service for all workloads running inside your Composer GKE cluster.

    More information: https://groups.google.com/forum/#!topic/kubernetes-users/zNytc8GVB5s.

    0 讨论(0)
  • 2021-01-06 17:05

    Now is possible. You will need to configure the Cloud Composer in a private VPC and expose the cluster using a Cloud NAT.

    The documentation has some information on how to do this: https://cloud.google.com/composer/docs/concepts/private-ip

    0 讨论(0)
提交回复
热议问题