I need to move my filebeat to other namespace, but I must keep registry , I mean that:
# data folder stores a registry of read status for all files, so we don't send everything again on a Filebeat pod restart
- name: data
hostPath:
path: /var/lib/filebeat-data
type: DirectoryOrCreate
Can you tell me how can I copy that in kubernetes
Just to check my assumptions:
Because the data
folder is mounted from the host directly - if you apply the same DaemonSet in a new Namespace, it will mount the same location into the container. So there's no need to copy any files around.