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
• 14,080 points
23 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 36,220 points

Related Questions In Kubernetes

+5 votes
2 answers

Redirecting host to service path in kubernetes

What you are trying to do is ...READ MORE

answered Mar 27, 2018 in Kubernetes by DragonLord999
• 8,360 points
53 views
0 votes
1 answer

Getting the pod's ip address for the container inside of it

You can make sure that the replication ...READ MORE

answered Aug 24, 2018 in Kubernetes by DareDev
• 6,670 points
31 views
0 votes
2 answers
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
683 views
+3 votes
1 answer
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
• 36,220 points
23 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.