Skip to content

Commit

Permalink
fix(yaml): changed host path for creating sparse file
Browse files Browse the repository at this point in the history
changed the hostpath at which sparse file is created by NDM. Now sparse
file will be created at /var/openebs/sparse. Also, the core-dump will be
stored at the same location.

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored and kmova committed Apr 9, 2019
1 parent a08c12c commit 9ff8d76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hack/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export GOTRACEBACK=crash

echo "[entrypoint.sh] enabling core dump."
ulimit -c unlimited
echo "/var/openebs/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
echo "/var/openebs/sparse/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
echo "[entrypoint.sh] launching ndm process."
/usr/sbin/ndm start &

Expand Down
4 changes: 2 additions & 2 deletions ndm-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ spec:
- name: procmount
mountPath: /host/mounts
- name: sparsepath
mountPath: /var/openebs
mountPath: /var/openebs/sparse
env:
# pass hostname as env variable using downward API to the NDM container
- name: NODE_NAME
Expand Down Expand Up @@ -177,4 +177,4 @@ spec:
path: /proc/1/mounts
- name: sparsepath
hostPath:
path: /var/openebs
path: /var/openebs/sparse

0 comments on commit 9ff8d76

Please sign in to comment.