Skip to content

Commit

Permalink
Merge pull request #11 from bertinatto/node-ports2
Browse files Browse the repository at this point in the history
Fix node ports in Azure File controller
  • Loading branch information
openshift-merge-robot committed Oct 21, 2021
2 parents 926a679 + 9a1fc5c commit 5551396
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
17 changes: 14 additions & 3 deletions assets/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ spec:
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
ports:
- name: healthz
# Due to hostNetwork, this port is open on a node!
containerPort: 10311
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
containerPort: 10303
protocol: TCP
livenessProbe:
httpGet:
Expand Down Expand Up @@ -119,6 +120,8 @@ spec:
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
- containerPort: 9211
name: driver-m
protocol: TCP
Expand Down Expand Up @@ -164,6 +167,8 @@ spec:
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
- containerPort: 9212
name: provisioner-m
protocol: TCP
Expand Down Expand Up @@ -206,6 +211,8 @@ spec:
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
- containerPort: 9213
name: attacher-m
protocol: TCP
Expand Down Expand Up @@ -248,6 +255,8 @@ spec:
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
- containerPort: 9214
name: resizer-m
protocol: TCP
Expand Down Expand Up @@ -289,6 +298,8 @@ spec:
image: ${KUBE_RBAC_PROXY_IMAGE}
imagePullPolicy: IfNotPresent
ports:
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
- containerPort: 9215
name: snapshotter-m
protocol: TCP
Expand All @@ -305,7 +316,7 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --probe-timeout=3s
- --health-port=10301
- --health-port=10303
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand Down
7 changes: 4 additions & 3 deletions assets/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ spec:
name: scsi-host-dir
ports:
- name: healthz
# Due to hostNetwork, this port is open on all nodes!
containerPort: 10301
# Due to hostNetwork, this port is open on a node and cannot
# conflict with any port used by other CSI drivers.
containerPort: 10302
protocol: TCP
livenessProbe:
httpGet:
Expand Down Expand Up @@ -141,7 +142,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=10301
- --health-port=10302
volumeMounts:
- name: socket-dir
mountPath: /csi
Expand Down

0 comments on commit 5551396

Please sign in to comment.