mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 06:10:22 +00:00
rbd: provide host-path for rbd-nbd logging
Problem: -------- 1. rbd-nbd by default logs to /var/log/ceph/ceph-client.admin.log, Unfortunately, container doesn't have /var/log/ceph directory hence rbd-nbd is not logging now. 2. Rbd-nbd logs are not persistent across nodeplugin restarts. Solution: -------- Provide a host path so that log directory is made available, and the logs persist on the hostnode across container restarts. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
parent
18f4a51a15
commit
0be7024726
@ -124,6 +124,8 @@ spec:
|
|||||||
mountPropagation: "Bidirectional"
|
mountPropagation: "Bidirectional"
|
||||||
- name: keys-tmp-dir
|
- name: keys-tmp-dir
|
||||||
mountPath: /tmp/csi/keys
|
mountPath: /tmp/csi/keys
|
||||||
|
- name: ceph-logdir
|
||||||
|
mountPath: /var/log/ceph
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
||||||
{{- if .Values.nodeplugin.httpMetrics.enabled }}
|
{{- if .Values.nodeplugin.httpMetrics.enabled }}
|
||||||
@ -169,6 +171,10 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.kubeletDir }}/pods
|
path: {{ .Values.kubeletDir }}/pods
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
- name: ceph-logdir
|
||||||
|
hostPath:
|
||||||
|
path: /var/log/ceph
|
||||||
|
type: DirectoryOrCreate
|
||||||
- name: host-dev
|
- name: host-dev
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev
|
path: /dev
|
||||||
|
@ -42,6 +42,8 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- pathPrefix: '/lib/modules'
|
- pathPrefix: '/lib/modules'
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- pathPrefix: '/var/log/ceph'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '{{ .Values.kubeletDir }}'
|
- pathPrefix: '{{ .Values.kubeletDir }}'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -38,6 +38,8 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- pathPrefix: '/var/lib/kubelet/pods'
|
- pathPrefix: '/var/lib/kubelet/pods'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- pathPrefix: '/var/log/ceph'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '/var/lib/kubelet/plugins/rbd.csi.ceph.com'
|
- pathPrefix: '/var/lib/kubelet/plugins/rbd.csi.ceph.com'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- pathPrefix: '/var/lib/kubelet/plugins_registry'
|
- pathPrefix: '/var/lib/kubelet/plugins_registry'
|
||||||
|
@ -111,6 +111,8 @@ spec:
|
|||||||
mountPropagation: "Bidirectional"
|
mountPropagation: "Bidirectional"
|
||||||
- name: keys-tmp-dir
|
- name: keys-tmp-dir
|
||||||
mountPath: /tmp/csi/keys
|
mountPath: /tmp/csi/keys
|
||||||
|
- name: ceph-logdir
|
||||||
|
mountPath: /var/log/ceph
|
||||||
- name: liveness-prometheus
|
- name: liveness-prometheus
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -146,6 +148,10 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/pods
|
path: /var/lib/kubelet/pods
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
- name: ceph-logdir
|
||||||
|
hostPath:
|
||||||
|
path: /var/log/ceph
|
||||||
|
type: DirectoryOrCreate
|
||||||
- name: registration-dir
|
- name: registration-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/plugins_registry/
|
path: /var/lib/kubelet/plugins_registry/
|
||||||
|
Loading…
Reference in New Issue
Block a user