Skip to content

Commit a93f991

Browse files
authored
Merge pull request #68656 from lpettyjo/OSDOCS-8792
OSDOCS#8792: Shared VPC on GCP Filestore CSI
2 parents cc6b568 + e7f2b7b commit a93f991

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/persistent-storage-csi-google-cloud-file-create-sc.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,22 @@ metadata:
2525
name: filestore-csi
2626
provisioner: filestore.csi.storage.gke.io
2727
parameters:
28-
network: network-name <1>
28+
connect-mode: DIRECT_PEERING <1>
29+
network: network-name <2>
2930
allowVolumeExpansion: true
3031
volumeBindingMode: WaitForFirstConsumer
3132
--
32-
<1> Specify the name of the GCP virtual private cloud (VPC) network where Filestore instances should be created in.
33+
<1> For a shared VPC, use the `connect-mode` parameter set to `PRIVATE_SERVICE_ACCESS`. For a non-shared VPC, the value is `DIRECT_PEERING`, which is the default setting.
34+
<2> Specify the name of the GCP virtual private cloud (VPC) network where Filestore instances should be created in.
3335

3436
. Specify the name of the VPC network where Filestore instances should be created in.
3537
+
3638
It is recommended to specify the VPC network that the Filestore instances should be created in. If no VPC network is specified, the Container Storage Interface (CSI) driver tries to create the instances in the default VPC network of the project.
39+
+
3740
On IPI installations, the VPC network name is typically the cluster name with the suffix "-network". However, on UPI installations, the VPC network name can be any value chosen by the user.
3841
+
42+
For a shared VPC (`connect-mode` = `PRIVATE_SERVICE_ACCESS`), the network needs to be the full VPC name. For example: `projects/shared-vpc-name/global/networks/gcp-filestore-network`.
43+
+
3944
You can find out the VPC network name by inspecting the `MachineSets` objects with the following command:
4045
+
4146
[source, command]

0 commit comments

Comments
 (0)