|
| 1 | +## Description |
| 2 | + |
| 3 | +This module creates a [Google Cloud NetApp Volumes](https://cloud.google.com/netapp/volumes/docs/discover/overview) |
| 4 | +storage pool. |
| 5 | + |
| 6 | +NetApp Volumes is a first-party Google service that provides NFS and/or SMB shared file-systems to VMs. It offers advanced data management capabilities and highly scalable capacity and performance. |
| 7 | +NetApp Volume provides: |
| 8 | + |
| 9 | +- robust support for NFSv3, NFSv4.x and SMB 2.1 and 3.x |
| 10 | +- a [rich feature set][service-levels] |
| 11 | +- scalable [performance](https://cloud.google.com/netapp/volumes/docs/performance/performance-benchmarks) |
| 12 | +- FlexCache: Caching of ONTAP-based volumes to provide high-throughput and low latency read access to compute clusters of on-premises data |
| 13 | +- [Auto-tiering](https://cloud.google.com/netapp/volumes/docs/configure-and-use/volumes/manage-auto-tiering) of unused data to optimse cost |
| 14 | + |
| 15 | +Support for NetApp Volumes is split into two modules. |
| 16 | + |
| 17 | +- **netapp-storage-pool** provisions a [storage pool](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/overview). Storage pools are pre-provisioned storage capacity containers which host volumes. A pool also defines fundamental properties of all the volumes within, like the region, the attached network, the [service level][service-levels], CMEK encryption, Active Directory and LDAP settings. |
| 18 | +- **netapp-volume** provisions a [volume](https://cloud.google.com/netapp/volumes/docs/configure-and-use/volumes/overview) inside an existing storage pool. A volume file-system container which is shared using NFS or SMB. It provides advanced data management capabilities. |
| 19 | + |
| 20 | +For more information on this and other network storage options in the Cluster |
| 21 | +Toolkit, see the extended [Network Storage documentation](../../../docs/network_storage.md). |
| 22 | + |
| 23 | +### NetApp storage pool service levels |
| 24 | + |
| 25 | +The netapp-storage-pool module currently supports the following NetApp Volumes [service levels][service-levels]: |
| 26 | + |
| 27 | +- Standard: 16 KiBps throughput per provisioned KiB of volume capacity. |
| 28 | +- Premium: 64 KiBps throughput per provisioned KiB of volume capacity. Optional [auto-tiering]. |
| 29 | +- Extreme: 128 KiBps throughput per provisioned KiB of volume capacity. Optional [auto-tiering]. |
| 30 | + |
| 31 | +Check the [service level matrix][service-levels] for additional information on capability differences between service levels. Flex service levels are currently not supported, but you can connect to existing Flex volumes using the [pre-existing-network-storage module][pre-existing]. |
| 32 | + |
| 33 | +### On-boarding NetApp Volumes |
| 34 | +NetApp Volumes uses [Private Service Access](https://cloud.google.com/vpc/docs/private-services-access) (PSA) to connect volumes to your network. Before you create a storage pool, make sure to [connect NetApp Volumes to your network](https://cloud.google.com/netapp/volumes/docs/get-started/configure-access/networking). |
| 35 | + |
| 36 | +Example of creating a storage pool using a new network: |
| 37 | + |
| 38 | +```yaml |
| 39 | +deployment_groups: |
| 40 | +- group: primary |
| 41 | + modules: |
| 42 | + - id: network |
| 43 | + source: modules/network/vpc |
| 44 | + settings: |
| 45 | + region: $(vars.region) |
| 46 | + |
| 47 | + - id: private_service_access |
| 48 | + source: community/modules/network/private-service-access |
| 49 | + use: [network] |
| 50 | + settings: |
| 51 | + prefix_length: 24 |
| 52 | + service_name: "netapp.servicenetworking.goog" |
| 53 | + deletion_policy: "ABANDON" |
| 54 | + |
| 55 | + - id: netapp_pool |
| 56 | + source: modules/file-system/netapp-storage-pool |
| 57 | + use: [network, private_service_access] |
| 58 | + settings: |
| 59 | + pool_name: $(vars.deployment_name)-eda-pool |
| 60 | + capacity_gib: 20000 |
| 61 | + service_level: "EXTREME" |
| 62 | + region: $(vars.region) |
| 63 | +``` |
| 64 | +
|
| 65 | +Example of creating a storage pool using an existing network which was already PSA-peered with NetApp Volume: |
| 66 | +
|
| 67 | +```yaml |
| 68 | +deployment_groups: |
| 69 | + - group: primary |
| 70 | + modules: |
| 71 | + - id: network |
| 72 | + source: modules/network/pre-existing-vpc |
| 73 | + settings: |
| 74 | + project_id: $(vars.project_id) |
| 75 | + region: $(vars.region) |
| 76 | + network_name: $(vars.network) |
| 77 | + |
| 78 | + - id: netapp_pool |
| 79 | + source: modules/file-system/netapp-storage-pool |
| 80 | + use: [network] |
| 81 | + settings: |
| 82 | + pool_name: "eda-pool" |
| 83 | + capacity_gib: 20000 |
| 84 | + service_level: "EXTREME" |
| 85 | + region: $(vars.region) |
| 86 | +``` |
| 87 | +
|
| 88 | +### Storage pool example |
| 89 | +
|
| 90 | +The following example shows all available parameters in use: |
| 91 | +
|
| 92 | +```yaml |
| 93 | + - id: netapp_pool |
| 94 | + source: modules/file-system/netapp-storage-pool |
| 95 | + use: [network, private_service_access] |
| 96 | + settings: |
| 97 | + pool_name: "mypool" |
| 98 | + region: "us-west4" |
| 99 | + capacity_gib: 2048 |
| 100 | + service_level: "EXTREME" |
| 101 | + active_directory_policy: "projects/myproject/locations/us-east4/activeDirectories/my-ad" |
| 102 | + cmek_policy: "projects/myproject/locations/us-east4/kmsConfigs/my-cmek-policy" |
| 103 | + ldap_enabled: false |
| 104 | + allow_auto_tiering: false |
| 105 | + description: "Demo storage pool" |
| 106 | + labels: |
| 107 | + owner: bob |
| 108 | +``` |
| 109 | +
|
| 110 | +### NetApp Volumes quota |
| 111 | +
|
| 112 | +Your project must have unused quota for NetApp Volumes in the region you will |
| 113 | +provision the storage pool. This can be found by browsing to the [Quota tab within IAM & Admin](https://console.cloud.google.com/iam-admin/quotas) in the Cloud Console. |
| 114 | +Please note that there are separate quota limits for Standard and Premium/Extreme service levels. |
| 115 | +
|
| 116 | +See also NetApp Volumes [default quotas](https://cloud.google.com/netapp/volumes/docs/quotas#netapp-volumes-default-quotas). |
| 117 | +
|
| 118 | +[service-levels]: https://cloud.google.com/netapp/volumes/docs/discover/service-levels |
| 119 | +[auto-tiering]: https://cloud.google.com/netapp/volumes/docs/configure-and-use/volumes/manage-auto-tiering |
| 120 | +[pre-existing]: ../pre-existing-network-storage/README.md |
| 121 | +[matrix]: ../../../docs/network_storage.md#compatibility-matrix |
| 122 | +
|
| 123 | +## License |
| 124 | +
|
| 125 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 126 | +Copyright 2025 Google LLC |
| 127 | +
|
| 128 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 129 | +you may not use this file except in compliance with the License. |
| 130 | +You may obtain a copy of the License at |
| 131 | +
|
| 132 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 133 | +
|
| 134 | +Unless required by applicable law or agreed to in writing, software |
| 135 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 136 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 137 | +See the License for the specific language governing permissions and |
| 138 | +limitations under the License. |
| 139 | +
|
| 140 | +## Requirements |
| 141 | +
|
| 142 | +| Name | Version | |
| 143 | +|------|---------| |
| 144 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 | |
| 145 | +| <a name="requirement_google"></a> [google](#requirement\_google) | >= 6.45.0 | |
| 146 | +| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.0 | |
| 147 | +
|
| 148 | +## Providers |
| 149 | +
|
| 150 | +| Name | Version | |
| 151 | +|------|---------| |
| 152 | +| <a name="provider_google"></a> [google](#provider\_google) | >= 6.45.0 | |
| 153 | +| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.0 | |
| 154 | +
|
| 155 | +## Modules |
| 156 | +
|
| 157 | +No modules. |
| 158 | +
|
| 159 | +## Resources |
| 160 | +
|
| 161 | +| Name | Type | |
| 162 | +|------|------| |
| 163 | +| [google_netapp_storage_pool.netapp_storage_pool](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/netapp_storage_pool) | resource | |
| 164 | +| [random_id.resource_name_suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource | |
| 165 | +| [google_compute_network_peering.private_peering](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_network_peering) | data source | |
| 166 | +
|
| 167 | +## Inputs |
| 168 | +
|
| 169 | +| Name | Description | Type | Default | Required | |
| 170 | +|------|-------------|------|---------|:--------:| |
| 171 | +| <a name="input_active_directory_policy"></a> [active\_directory\_policy](#input\_active\_directory\_policy) | The ID of the Active Directory policy to apply to the storage pool in the format:<br/>`projects/<project_id>/locations/<location>/activeDirectoryPolicies/<policy_id>` | `string` | `null` | no | |
| 172 | +| <a name="input_allow_auto_tiering"></a> [allow\_auto\_tiering](#input\_allow\_auto\_tiering) | Whether to allow automatic tiering for the storage pool. | `bool` | `false` | no | |
| 173 | +| <a name="input_capacity_gib"></a> [capacity\_gib](#input\_capacity\_gib) | The capacity of the storage pool in GiB. | `number` | `2048` | no | |
| 174 | +| <a name="input_cmek_policy"></a> [cmek\_policy](#input\_cmek\_policy) | The ID of the Customer Managed Encryption Key (CMEK) policy to apply to the storage pool in the format:<br/>`projects/<project>/locations/<location>/kmsConfigs/<name>` | `string` | `null` | no | |
| 175 | +| <a name="input_deployment_name"></a> [deployment\_name](#input\_deployment\_name) | Name of the deployment, used as name of the NetApp storage pool if no name is specified. | `string` | n/a | yes | |
| 176 | +| <a name="input_description"></a> [description](#input\_description) | A description of the NetApp storage pool. | `string` | `""` | no | |
| 177 | +| <a name="input_labels"></a> [labels](#input\_labels) | Labels to add to the NetApp storage pool. Key-value pairs. | `map(string)` | n/a | yes | |
| 178 | +| <a name="input_ldap_enabled"></a> [ldap\_enabled](#input\_ldap\_enabled) | Whether to enable LDAP for the storage pool. | `bool` | `false` | no | |
| 179 | +| <a name="input_network_id"></a> [network\_id](#input\_network\_id) | The ID of the GCE VPC network to which the NetApp storage pool is connected given in the format:<br/>`projects/<project_id>/global/networks/<network_name>`" | `string` | n/a | yes | |
| 180 | +| <a name="input_network_self_link"></a> [network\_self\_link](#input\_network\_self\_link) | Network self-link the pool will be on, required for checking private service access | `string` | n/a | yes | |
| 181 | +| <a name="input_pool_name"></a> [pool\_name](#input\_pool\_name) | The name of the storage pool. Leave empty to generate name based on deployment name. | `string` | `null` | no | |
| 182 | +| <a name="input_private_vpc_connection_peering"></a> [private\_vpc\_connection\_peering](#input\_private\_vpc\_connection\_peering) | The name of the private VPC connection peering. | `string` | `"sn-netapp-prod"` | no | |
| 183 | +| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | ID of project in which the NetApp storage pool will be created. | `string` | n/a | yes | |
| 184 | +| <a name="input_region"></a> [region](#input\_region) | Location for NetApp storage pool. | `string` | n/a | yes | |
| 185 | +| <a name="input_service_level"></a> [service\_level](#input\_service\_level) | The service level of the storage pool. | `string` | `"PREMIUM"` | no | |
| 186 | + |
| 187 | +## Outputs |
| 188 | + |
| 189 | +| Name | Description | |
| 190 | +|------|-------------| |
| 191 | +| <a name="output_capacity_gb"></a> [capacity\_gb](#output\_capacity\_gb) | Storage pool capacity in GiB. | |
| 192 | +| <a name="output_netapp_storage_pool_id"></a> [netapp\_storage\_pool\_id](#output\_netapp\_storage\_pool\_id) | An identifier for the resource with format `projects/{{project}}/locations/{{location}}/storagePools/{{name}}` | |
| 193 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
0 commit comments