Open kevinpz opened 6 years ago
I'm not sure what's going on there. Can you resolve cluster names from the kubernetes hosts themselves?
@kevinpz I think that this problem has relation with this kubernetes issue https://github.com/kubernetes/kubernetes/issues/42306 Is for that reason that I'm using IP svc agains svc name
Hi @jenciso you're right. That's the same issue. So it's more a K8S issue than a gluster one?
The problem seems to be that the heketi container's resolv.conf is searching 8.8.4.4 instead of your kubernetes dns.
Hi guys,
I have a little issue to use the GlusterFS storage class. I'm trying to add it with the DNS name inside the K8S cluster, but it seems that it doesn't work.
Here is my storage class creation file:
If I try to reach the domain name from a CentOS pod, it works well:
But, when I try to deploy a nginx pod, with a storage class:
With this kind of volume reservation:
The deployment of the pod fails with the following error:
If in my storage class, I replace
resturl: "http://heketi.default.svc.cluster.local:8080"
with the corresponding IP addressresturl: "http://10.104.17.233:8080"
it works well.Do you have any idea on why the PVC doesn't resolve the domain name inside the K8S cluster, but try to resolve it on internet?
Thanks!