Kubernetes cannot access cassandra database
How did you configure your endpoint? Generally, all services and pods in a Kubernetes cluster are discoverable through a standard DNS notation. It looks like this:
<service-name>.<namespace>.svc.cluster.local # or<pod-name>.<namespace>.svc.cluster.local # or<pod-name>.<subdomain>.<namespace>.svc.cluster.local
If you are within the same namespace this would work too:
<service-name><pod-name><pod-name>.<subdomain>
I would also check either core-dns
or kube-dns
are running and ready:
kubectl -n kube-system get pods | grep dns