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,520 points
3,147 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,350 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,854 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,456 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 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,350 points
703 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