Skip to content

Commit f1f1d3c

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

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-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:

deploy/kubernetes/base/node.yaml

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

0 commit comments

Comments
 (0)