Skip to content

Commit 3d00ea4

Browse files
committed
Deploy driver with hostNetwork to fix interaction with GKE Workload Identity
1 parent fd8d641 commit 3d00ea4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deploy/kubernetes/base/controller.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ spec:
1313
labels:
1414
app: gcp-compute-persistent-disk-csi-driver
1515
spec:
16+
# Host network must be used for interaction with Workload Identity in GKE
17+
# since it replaces GCE Metadata Server with GKE Metadata Server. Remove
18+
# this requirement when issue is resolved and before any exposure of
19+
# metrics ports
20+
hostNetwork: true
1621
serviceAccountName: csi-controller-sa
1722
priorityClassName: gce-pd-csi-driver-controller
1823
containers:

0 commit comments

Comments
 (0)