Is possible to have same k8s service for multiple pods

0 votes
I have 9 pods running with 9 diff apps. Is possible to have same k8s service for multiple pods such that I can access them by different ports, but the same IP of service?
Jul 20, 2018 in Kubernetes by Hannah
• 18,540 points
3,118 views

1 answer to this question.

0 votes
Reserve a static IP and then assign the same IP to multiple services ( Different service.yaml files ) and change the ports for the backend. Like one Load Balancer (service) with a static IP is pointing to a backend service and the same Load balancer with the same IP ( different service file ) is pointing to other service on different port.

This worked fine for me
answered Jul 20, 2018 by Kalgi
• 52,360 points

Related Questions In Kubernetes

0 votes
1 answer

Is it possible for containers within a pod to communicate with each other?

Yes, it is possible for containers to ...READ MORE

answered Jul 12, 2019 in Kubernetes by Sirajul
• 59,230 points
3,765 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,336 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,951 views
0 votes
1 answer
0 votes
1 answer

Is it possible to access GCP resources using api without a user interaction.?

yes that's totally possible. You'd have to create ...READ MORE

answered Sep 19, 2018 in Kubernetes by Kalgi
• 52,360 points
640 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP