# Class IPAllocationPolicy (1.22.0)

1.22.0 (latest) 1.21.0 1.20.0 1.19.0 1.18.0 1.17.5 1.16.1 1.15.1 1.14.0 1.13.1 1.12.2 1.11.1 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.5.0 1.4.4 1.3.2 1.2.1 1.1.0 1.0.0 0.1.3

    IPAllocationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for controlling how IPs are allocated in the
GKE cluster running the Apache Airflow software.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `use_ip_aliases` | `bool` Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created. This field is only supported for Cloud Composer environments in versions composer-1.\\ \*.\*-airflow-\*.\*.\\\*. Environments in newer versions always use VPC-native GKE clusters. |
| `cluster_secondary_range_name` | `str` Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. For Cloud Composer environments in versions composer-1.\\ \*.\*-airflow-\*.\*.\\\*, this field is applicable only when `use_ip_aliases` is true. This field is a member of `oneof`_ `cluster_ip_allocation`. |
| `cluster_ipv4_cidr_block` | `str` Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. For Cloud Composer environments in versions composer-1.\\ \*.\*-airflow-\*.\*.\\\*, this field is applicable only when `use_ip_aliases` is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific netmask. Set to a `CIDR `__ notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. This field is a member of `oneof`_ `cluster_ip_allocation`. |
| `services_secondary_range_name` | `str` Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. For Cloud Composer environments in versions composer-1.\\ \*.\*-airflow-\*.\*.\\\*, this field is applicable only when `use_ip_aliases` is true. This field is a member of `oneof`_ `services_ip_allocation`. |
| `services_ipv4_cidr_block` | `str` Optional. The IP address range of the services IP addresses in this GKE cluster. For Cloud Composer environments in versions composer-1.\\ \*.\*-airflow-\*.\*.\\\*, this field is applicable only when `use_ip_aliases` is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific netmask. Set to a `CIDR `__ notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. This field is a member of `oneof`_ `services_ip_allocation`. |