I have created a redis deployment and a headless service. How do I access the same? I have an ingress deployment which am able to route traffic thro’ nodeport (it works fine when am not experimenting with headless).
The endpoints seem to be fine.
root@curl:/# curl default-http-backend.ingress-nginx.svc.cluster.local root@curl:/# curl redis-commander.default.svc.cluster.local curl: (7) Failed to connect to redis-commander.default.svc.cluster.local port 80: Connection refused
curl to the endpoint works fine.
kubectl describe svc/redis-commander Name: redis-commander Namespace: default Labels: name=redis-commander Annotations: <none> Selector: name=redis-commander Type: ClusterIP IP: None Port: <unset> 8080/TCP TargetPort: 8081/TCP Endpoints: 10.244.0.144:8081,10.244.1.4:8081,10.244.1.84:8081 Session Affinity: None Events: <none>
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!