Data Volume for k8s

Hi, I'm running Elastic on K8S and Docker, all my container running fine.

But I'm specifying data volume during deployment Vol "/xyz/data0" . but it's not storing data on this location its storing on default location "/var/lib/docker" .

Any help will be appreciated.

Sadeek M.

I have changed docker and Kubelet configuration file and added below entry and it worked

Docker :
cat /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -D --data-root /data/docker

Kubelet :
cat /etc/sysconfig/kubelet

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.