diff --git a/ceph-mon/templates/daemonset-mon.yaml b/ceph-mon/templates/daemonset-mon.yaml index f6ebf6aeb..7a240779a 100644 --- a/ceph-mon/templates/daemonset-mon.yaml +++ b/ceph-mon/templates/daemonset-mon.yaml @@ -218,7 +218,7 @@ spec: volumes: - name: pod-var-log hostPath: - path: /var/log/ceph + path: {{ .Values.conf.storage.mon.log_directory }} - name: ceph-mon-bin configMap: name: ceph-mon-bin diff --git a/ceph-mon/values.yaml b/ceph-mon/values.yaml index d457019d6..b41e27ec4 100644 --- a/ceph-mon/values.yaml +++ b/ceph-mon/values.yaml @@ -179,6 +179,7 @@ conf: storage: mon: directory: /var/lib/openstack-helm/ceph/mon + log_directory: /var/log/ceph dependencies: dynamic: diff --git a/ceph-osd/templates/daemonset-osd.yaml b/ceph-osd/templates/daemonset-osd.yaml index 70180cde6..e1e3c4fe6 100644 --- a/ceph-osd/templates/daemonset-osd.yaml +++ b/ceph-osd/templates/daemonset-osd.yaml @@ -261,7 +261,7 @@ spec: emptyDir: {} - name: pod-var-log hostPath: - path: /var/log/ceph + path: {{ .Values.conf.storage.osd_log_directory }} - name: pod-run emptyDir: medium: "Memory" diff --git a/ceph-osd/values.yaml b/ceph-osd/values.yaml index 537a98ed9..ba5886e50 100644 --- a/ceph-osd/values.yaml +++ b/ceph-osd/values.yaml @@ -104,6 +104,7 @@ conf: osd_mount_options_xfs: "rw,noatime,largeio,inode64,swalloc,logbufs=8,logbsize=256k,allocsize=4M" storage: + osd_log_directory: /var/log/ceph # NOTE(portdirect): for homogeneous clusters the `osd` key can be used to # define OSD pods that will be deployed across the cluster. osd: