I have a configmap for 3 files that are going to be mounted in "fluentd/etc/" and the respective files are fluent.conf, Kubernetes.conf, systemd.conf, configmap in deployment.yaml is like this:
volumeMounts:
name: fluentd
mountPath: /fluentd/etc/
name: varlog
mountPath: /var/log
name: container1
mountPath: /var/lib/docker/containers
readOnly: true
securityContext:
privileged: true
terminationGracePeriodSeconds: 30
volumes:
name: varlog
hostPath:
path: /var/log
name: container1
hostPath:
path: /var/lib/docker/containers
name: fluentd
configMap:
name: fluentd-config
During deployment I am getting an error of mount as read-only, which is effecting fluent to read some of the mentioned sources in the configmap. How can I avoid this read-only error?