Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
we have a one master, two worker node setup, where we have deployed a basic apache server image which hosts a simple html file for learning purpose.
so we used hostpath to use pvc as we do not have CCM setup yet. so for that, we created a folder (/tmp/data) on the first worker node which has couple of files. now we have a Deployment with two replicas of the apache server. so for the pod, which is deployed on first worker node, the pvc is working as expected. but for the 2nd pod, which is deployed on the 2nd worker node, the pvc is not working and we cannot see the two files inside the pod as ideally the files exist on the first node and not on the 2nd node.
So where are we wrong here? is it for hostpath we can have only single worker node setup ?
or any other way we can achieve mentioned above ?
Kubernetes version:
Cloud being used: AWS
Installation method: kubeadm
Host OS: CentOS
CNI and version:
CRI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.