Skip to content

Commit

Permalink
Merge pull request #30 from jsafrane/allocated-port-for-liveness-probe
Browse files Browse the repository at this point in the history
Bug 1879406: Use port 10300-10301 for liveness probes
  • Loading branch information
openshift-merge-robot authored Sep 24, 2020
2 parents 67bbdc8 + 625f260 commit c4cddfb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
16 changes: 15 additions & 1 deletion assets/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ spec:
value: /tmp/config/ovirt-config.yaml
ports:
- name: healthz
containerPort: 19808
# Due to hostNetwork, this port is open on a node!
containerPort: 10301
protocol: TCP
volumeMounts:
- name: socket-dir
Expand Down Expand Up @@ -130,6 +131,19 @@ spec:
requests:
memory: 50Mi
cpu: 10m
- name: csi-liveness-probe
image: ${LIVENESS_PROBE_IMAGE}
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=10301
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
requests:
memory: 50Mi
cpu: 10m
volumes:
- name: socket-dir
emptyDir: {}
Expand Down
4 changes: 3 additions & 1 deletion assets/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ spec:

ports:
- name: healthz
containerPort: 9808
# Due to hostNetwork, this port is open on a node!
containerPort: 10300
protocol: TCP
livenessProbe:
httpGet:
Expand Down Expand Up @@ -148,6 +149,7 @@ spec:
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=10300
volumeMounts:
- name: plugin-dir
mountPath: /csi
Expand Down
20 changes: 18 additions & 2 deletions pkg/generated/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4cddfb

Please sign in to comment.