I have tried to add below parameters in deployment manifest but getting “Read-only file system” error in pods logs.
volumeMounts:
- name: hivemq-volume-2
mountPath: /opt/hivemq/conf/config.xml
subPath: config.xml
volumes:
- name: hivemq-volume-2
configMap:
name: hivemq-config
Getting below error in hivemq pod logs after deployment.
Getting bind address from container hostname
set bind address from container hostname to 10.47.0.1
chown: changing ownership of ‘/opt/hivemq/conf/config.xml’: Read-only file system